Author: Armin Rigo <[email protected]>
Branch: py3.6
Changeset: r95086:6be2fb2a8b03
Date: 2018-09-10 10:07 +0200
http://bitbucket.org/pypy/pypy/changeset/6be2fb2a8b03/
Log: Test for issue #2884
diff --git a/pypy/interpreter/astcompiler/test/test_compiler.py
b/pypy/interpreter/astcompiler/test/test_compiler.py
--- a/pypy/interpreter/astcompiler/test/test_compiler.py
+++ b/pypy/interpreter/astcompiler/test/test_compiler.py
@@ -1526,4 +1526,8 @@
assert counts[ops.BUILD_MAP] == 1 # the empty dict
assert counts[ops.BUILD_CONST_KEY_MAP] == 2
-
+ def test_annotation_issue2884(self):
+ source = """def f():
+ a: list = [j for j in range(10)]
+ """
+ generate_function_code(source, self.space)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit