hdl._ir: Remove support for non-Elaboratable elaboratables.

Fixes #1216.
This commit is contained in:
Wanda 2024-03-19 22:23:30 +01:00 committed by Catherine
parent 2569886464
commit 8c65a79cdd
3 changed files with 7 additions and 14 deletions

View file

@ -23,14 +23,14 @@ class ElaboratesToSelf(Elaboratable):
class FragmentGetTestCase(FHDLTestCase):
def test_get_wrong_none(self):
with self.assertRaisesRegex(AttributeError,
r"^Object None cannot be elaborated$"):
with self.assertRaisesRegex(TypeError,
r"^Object None is not an 'Elaboratable' nor 'Fragment'$"):
Fragment.get(None, platform=None)
with self.assertWarnsRegex(UserWarning,
r"^\.elaborate\(\) returned None; missing return statement\?$"):
with self.assertRaisesRegex(AttributeError,
r"^Object None cannot be elaborated$"):
with self.assertRaisesRegex(TypeError,
r"^Object None is not an 'Elaboratable' nor 'Fragment'$"):
Fragment.get(ElaboratesToNone(), platform=None)
def test_get_wrong_self(self):