diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-07-11 12:59:24 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-07-11 12:59:24 (GMT) |
commit | 3e7428995f9d09493640326104c70a26c7cdab07 (patch) | |
tree | e34ba11174364be38df6181d59cc23a06d077f8c /Lib/test/test_ast.py | |
parent | 1ac745b5c52ab349e58f633d0a9d73cdb0e7b818 (diff) | |
download | cpython-3e7428995f9d09493640326104c70a26c7cdab07.zip cpython-3e7428995f9d09493640326104c70a26c7cdab07.tar.gz cpython-3e7428995f9d09493640326104c70a26c7cdab07.tar.bz2 |
test for set literals
Diffstat (limited to 'Lib/test/test_ast.py')
-rw-r--r-- | Lib/test/test_ast.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py index 07697ac..e050784 100644 --- a/Lib/test/test_ast.py +++ b/Lib/test/test_ast.py @@ -285,6 +285,7 @@ class ASTHelpers_Test(unittest.TestCase): self.assertEqual(ast.literal_eval('[1, 2, 3]'), [1, 2, 3]) self.assertEqual(ast.literal_eval('{"foo": 42}'), {"foo": 42}) self.assertEqual(ast.literal_eval('(True, False, None)'), (True, False, None)) + self.assertEqual(ast.literal_eval('{1, 2, 3}'), {1, 2, 3}) self.assertRaises(ValueError, ast.literal_eval, 'foo()') def test_literal_eval_issue4907(self): |