diff options
author | ptmcg <ptmcg@austin.rr.com> | 2020-06-10 06:36:28 -0500 |
---|---|---|
committer | ptmcg <ptmcg@austin.rr.com> | 2020-06-10 06:36:28 -0500 |
commit | 788298ecece1fec3ebf06639db646dfa5b170bb8 (patch) | |
tree | 362988460eb0987894a59aff9d7fb37ab54364d6 /tests/test_unit.py | |
parent | 0a00334fb82f54e10b3aa1de072afb3609971b7c (diff) | |
download | pyparsing-git-788298ecece1fec3ebf06639db646dfa5b170bb8.tar.gz |
warn_on_assignment_to_Forward not working on PyPy - disable test for now if running on PyPy
Diffstat (limited to 'tests/test_unit.py')
-rw-r--r-- | tests/test_unit.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/test_unit.py b/tests/test_unit.py index cf27a5a..02449f7 100644 --- a/tests/test_unit.py +++ b/tests/test_unit.py @@ -24,10 +24,11 @@ ppc = pp.pyparsing_common ppt = pp.pyparsing_test # see which Python implementation we are running -CPYTHON_ENV = platform.python_implementation() == "CPython" -IRON_PYTHON_ENV = sys.platform == "cli" -JYTHON_ENV = sys.platform.startswith("java") -PYPY_ENV = platform.python_implementation() == "PyPy" +python_impl = platform.python_implementation() +CPYTHON_ENV = python_impl == "CPython" +IRON_PYTHON_ENV = python_impl == "IronPython" +JYTHON_ENV = python_impl == "Jython" +PYPY_ENV = python_impl == "PyPy" # simple utility for flattening nested lists |