diff --git a/coconut/_pyparsing.py b/coconut/_pyparsing.py index 6f290d3cb..54790c18b 100644 --- a/coconut/_pyparsing.py +++ b/coconut/_pyparsing.py @@ -28,7 +28,6 @@ from collections import defaultdict from coconut.constants import ( - PYPY, PURE_PYTHON, use_fast_pyparsing_reprs, use_packrat_parser, @@ -187,7 +186,8 @@ def enableIncremental(*args, **kwargs): use_computation_graph_env_var, default=( not MODERN_PYPARSING # not yet supported - and not PYPY # experimentally determined + # commented out to minimize memory footprint when running tests: + # and not PYPY # experimentally determined ), ) diff --git a/coconut/tests/src/cocotest/agnostic/primary_2.coco b/coconut/tests/src/cocotest/agnostic/primary_2.coco index 9c589e99e..3f9d63a65 100644 --- a/coconut/tests/src/cocotest/agnostic/primary_2.coco +++ b/coconut/tests/src/cocotest/agnostic/primary_2.coco @@ -377,12 +377,16 @@ def primary_test_2() -> bool: assert list(py_xs) == [] if sys.version_info >= (3,) else [4, 6] for xs in [ zip((x for x in range(5)), (x for x in range(10))), - py_zip((x for x in range(5)), (x for x in range(10))), map((,), (x for x in range(5)), (x for x in range(10))), - py_map((,), (x for x in range(5)), (x for x in range(10))), ]: # type: ignore assert list(xs) == list(zip(range(5), range(5))) assert list(xs) == [] + for xs in [ + py_zip((x for x in range(5)), (x for x in range(10))), + py_map((,), (x for x in range(5)), (x for x in range(10))), + ]: # type: ignore + assert list(xs) == list(zip(range(5), range(5))) + assert list(xs) == [] if sys.version_info >= (3,) else list(zip(range(5), range(5))) xs = map((.+1), range(5)) py_xs = py_map((.+1), range(5)) assert list(xs) == list(range(1, 6)) == list(xs)