hdl._ir: Remove support for non-Elaboratable elaboratables.
Fixes #1216.
This commit is contained in:
parent
2569886464
commit
8c65a79cdd
3 changed files with 7 additions and 14 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue