diff options
Diffstat (limited to 'simple_unit_tests.py')
-rw-r--r-- | simple_unit_tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/simple_unit_tests.py b/simple_unit_tests.py index d2795b5..a1a4572 100644 --- a/simple_unit_tests.py +++ b/simple_unit_tests.py @@ -157,4 +157,9 @@ class TestParseAction(PyparsingExpressionTestCase): if __name__ == '__main__': + # we use unittest features that are in Py3 only, bail out if run on Py2 + import sys + if sys.version_info[0] < 3: + sys.exit(0) + unittest.main()
\ No newline at end of file |