msg="Object 'None' cannot be elaborated"):
Fragment.get(None, platform=None)
- with self.assertRaises(AttributeError,
- msg="Object 'None' cannot be elaborated"):
- Fragment.get(BadElaboratable(), platform=None)
+ with self.assertWarns(UserWarning,
+ msg=".elaborate() returned None; missing return statement?"):
+ with self.assertRaises(AttributeError,
+ msg="Object 'None' cannot be elaborated"):
+ Fragment.get(BadElaboratable(), platform=None)
class FragmentGeneratedTestCase(FHDLTestCase):