summaryrefslogtreecommitdiff
path: root/tests/run
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2018-09-16 15:50:56 +0200
committerStefan Behnel <stefan_ml@behnel.de>2018-09-16 15:50:56 +0200
commit5407899f49c927df82e5d0c92977d7634d39a94c (patch)
tree62ebf484fecefa78c04091f53914c99ee2add5a9 /tests/run
parentc8e6f375dab5589ea2441775e193d650119dc9b2 (diff)
downloadcython-5407899f49c927df82e5d0c92977d7634d39a94c.tar.gz
Support a direct "language_level" argument in "cython.inline()", and fix a test by using it.
Diffstat (limited to 'tests/run')
-rw-r--r--tests/run/test_coroutines_pep492.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run/test_coroutines_pep492.pyx b/tests/run/test_coroutines_pep492.pyx
index 07c01a695..09a3853d5 100644
--- a/tests/run/test_coroutines_pep492.pyx
+++ b/tests/run/test_coroutines_pep492.pyx
@@ -76,7 +76,7 @@ def exec(code_string, l, g):
old_stderr = sys.stderr
try:
sys.stderr = StringIO()
- ns = inline(code_string, locals=l, globals=g, lib_dir=os.path.dirname(__file__))
+ ns = inline(code_string, locals=l, globals=g, lib_dir=os.path.dirname(__file__), language_level=3)
finally:
sys.stderr = old_stderr
g.update(ns)