Skip to content

Commit b655717

Browse files
authored
using preexisting base exception
For python 3.5- compatibility.
1 parent 556d1c3 commit b655717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_templates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def test_user_module_imported(pygen_output_dir):
311311
c1 = EClass('MyClass')
312312
rootpkg.eClassifiers.append(c1)
313313

314-
with pytest.raises(ModuleNotFoundError) as ex:
314+
with pytest.raises(ImportError) as ex:
315315
mm = generate_meta_model(rootpkg, pygen_output_dir, user_module='some_module')
316316
assert 'some_module' in ex.message
317317

0 commit comments

Comments
 (0)