[Python-checkins] r82817 - python/branches/py3k/Lib/test/test_ast.py

benjamin.peterson python-checkins at python.org
Sun Jul 11 14:59:25 CEST 2010


Author: benjamin.peterson
Date: Sun Jul 11 14:59:24 2010
New Revision: 82817

Log:
test for set literals

Modified:
   python/branches/py3k/Lib/test/test_ast.py

Modified: python/branches/py3k/Lib/test/test_ast.py
==============================================================================
--- python/branches/py3k/Lib/test/test_ast.py	(original)
+++ python/branches/py3k/Lib/test/test_ast.py	Sun Jul 11 14:59:24 2010
@@ -285,6 +285,7 @@
         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):


More information about the Python-checkins mailing list