tests.test_hdl_cd.ClockDomainTestCase.test_name: actually test domain with cd_ prefix
authorRobin Ole Heinemann <robin.ole.heinemann@gmail.com>
Tue, 18 May 2021 19:15:02 +0000 (21:15 +0200)
committerwhitequark <whitequark@whitequark.org>
Tue, 18 May 2021 20:18:55 +0000 (20:18 +0000)
tests/test_hdl_cd.py

index 4e93fbc5a9ed09340f79f2e021264d171abf65ab..51cf845e7b0f1fdd5a41029b7613e24c8d5107e9 100644 (file)
@@ -15,7 +15,7 @@ class ClockDomainTestCase(FHDLTestCase):
         self.assertEqual(pix.clk.name, "pix_clk")
         self.assertEqual(pix.rst.name, "pix_rst")
         cd_pix = ClockDomain()
-        self.assertEqual(pix.name, "pix")
+        self.assertEqual(cd_pix.name, "pix")
         dom = [ClockDomain("foo")][0]
         self.assertEqual(dom.name, "foo")
         with self.assertRaisesRegex(ValueError,