From 3e7428995f9d09493640326104c70a26c7cdab07 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 11 Jul 2010 12:59:24 +0000 Subject: test for set literals --- Lib/test/test_ast.py | 1 + 1 file changed, 1 insertion(+) 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): -- cgit v0.12