test_build_res: fix after commit 3e2ecdf2.
authorwhitequark <whitequark@whitequark.org>
Fri, 7 Feb 2020 00:07:19 +0000 (00:07 +0000)
committerwhitequark <whitequark@whitequark.org>
Fri, 7 Feb 2020 00:07:19 +0000 (00:07 +0000)
nmigen/test/test_build_res.py

index 5f79fdbc0cee8fb52276d6990d872615c753a6be..3b3a9d5e9af3b88b7534a74d7a0b121ef8d305dd 100644 (file)
@@ -196,15 +196,15 @@ class ResourceManagerTestCase(FHDLTestCase):
         clk50 = self.cm.request("clk50", 0, dir="i")
         clk100_port_p, clk100_port_n, clk50_port = self.cm.iter_ports()
         self.assertEqual(list(self.cm.iter_clock_constraints()), [
-            (clk100.i, 100e6),
-            (clk50.i, 50e6)
+            (clk100.i, clk100_port_p, 100e6),
+            (clk50.i, clk50_port, 50e6)
         ])
 
     def test_add_clock(self):
         i2c = self.cm.request("i2c")
         self.cm.add_clock_constraint(i2c.scl.o, 100e3)
         self.assertEqual(list(self.cm.iter_clock_constraints()), [
-            (i2c.scl.o, 100e3)
+            (i2c.scl.o, None, 100e3)
         ])
 
     def test_wrong_resources(self):