summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/tests/test_parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/lib2to3/tests/test_parser.py')
-rw-r--r--Lib/lib2to3/tests/test_parser.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/lib2to3/tests/test_parser.py b/Lib/lib2to3/tests/test_parser.py
index 3f7ab97..2efcb80 100644
--- a/Lib/lib2to3/tests/test_parser.py
+++ b/Lib/lib2to3/tests/test_parser.py
@@ -459,6 +459,13 @@ class TestLiterals(GrammarTest):
self.validate(s)
+class TestGeneratorExpressions(GrammarTest):
+
+ def test_trailing_comma_after_generator_expression_argument_works(self):
+ # BPO issue 27494
+ self.validate("set(x for x in [],)")
+
+
def diff(fn, result):
try:
with open('@', 'w') as f: