test for set literals

This commit is contained in:
Benjamin Peterson 2010-07-11 12:59:24 +00:00
parent 1ac745b5c5
commit 3e7428995f
1 changed files with 1 additions and 0 deletions

View File

@ -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):