Improve test added in 29fee01f
to not leak warnings.
This commit is contained in:
parent
ee03eab52f
commit
ab5426ce74
|
@ -18,6 +18,8 @@ class FragmentGetTestCase(FHDLTestCase):
|
||||||
msg="Object 'None' cannot be elaborated"):
|
msg="Object 'None' cannot be elaborated"):
|
||||||
Fragment.get(None, platform=None)
|
Fragment.get(None, platform=None)
|
||||||
|
|
||||||
|
with self.assertWarns(UserWarning,
|
||||||
|
msg=".elaborate() returned None; missing return statement?"):
|
||||||
with self.assertRaises(AttributeError,
|
with self.assertRaises(AttributeError,
|
||||||
msg="Object 'None' cannot be elaborated"):
|
msg="Object 'None' cannot be elaborated"):
|
||||||
Fragment.get(BadElaboratable(), platform=None)
|
Fragment.get(BadElaboratable(), platform=None)
|
||||||
|
|
Loading…
Reference in a new issue