diff options
Diffstat (limited to 'tests/test_examples.py')
-rw-r--r-- | tests/test_examples.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_examples.py b/tests/test_examples.py index d18309a..0886950 100644 --- a/tests/test_examples.py +++ b/tests/test_examples.py @@ -7,7 +7,8 @@ import unittest class TestExamples(unittest.TestCase): def _run(self, name): - import_module("examples." + name) + mod = import_module("examples." + name) + getattr(mod, 'main', lambda *args, **kwargs: None)() def test_numerics(self): self._run("numerics") |