summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_builtin.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-05-08 18:51:25 (GMT)
committerGuido van Rossum <guido@python.org>2007-05-08 18:51:25 (GMT)
commite5e80b8c561de3a13154fa45eafcb32b8695eea7 (patch)
treeb15c4dd163c4661926e85dd63a5ef09734110a9c /Lib/test/test_builtin.py
parentb8142c3e6403cdcff38b808b3d881b6e8da064d8 (diff)
downloadcpython-e5e80b8c561de3a13154fa45eafcb32b8695eea7.zip
cpython-e5e80b8c561de3a13154fa45eafcb32b8695eea7.tar.gz
cpython-e5e80b8c561de3a13154fa45eafcb32b8695eea7.tar.bz2
Kill u"..." string quotes. Thought I already did that.
Diffstat (limited to 'Lib/test/test_builtin.py')
-rw-r--r--Lib/test/test_builtin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py
index 3ea8ffb..58cb29b 100644
--- a/Lib/test/test_builtin.py
+++ b/Lib/test/test_builtin.py
@@ -220,7 +220,7 @@ class BuiltinTest(unittest.TestCase):
self.assertRaises(TypeError, compile, 'pass', '?', 'exec',
mode='eval', source='0', filename='tmp')
if have_unicode:
- compile('print(u"\xe5")\n', '', 'exec')
+ compile('print("\xe5")\n', '', 'exec')
self.assertRaises(TypeError, compile, chr(0), 'f', 'exec')
self.assertRaises(ValueError, compile, str('a = 1'), 'f', 'bad')
@@ -340,7 +340,7 @@ class BuiltinTest(unittest.TestCase):
self.assertEqual(eval(str('c'), globals, locals), 300)
## bom = b'\xef\xbb\xbf'
## self.assertEqual(eval(bom + b'a', globals, locals), 1)
- self.assertEqual(eval('u"\xe5"', globals), u"\xe5")
+ self.assertEqual(eval('"\xe5"', globals), "\xe5")
self.assertRaises(TypeError, eval)
self.assertRaises(TypeError, eval, ())