diff options
author | ptmcg <ptmcg@austin.rr.com> | 2020-06-27 08:26:16 -0500 |
---|---|---|
committer | ptmcg <ptmcg@austin.rr.com> | 2020-06-27 08:26:16 -0500 |
commit | 20dfaac6b80ad42851d82f9d2be376e098f0a5ba (patch) | |
tree | 2cf9ef8ceee535a069a05399575ef763b2a6e066 /tests/test_examples.py | |
parent | b3edef08a38b45c3a5fe74968e3589996761660c (diff) | |
download | pyparsing-git-20dfaac6b80ad42851d82f9d2be376e098f0a5ba.tar.gz |
Add make_diagram.py to examples to demonstrate creating railroad diags for selected examples
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") |