From: Walter Dörwald Date: Fri, 18 May 2007 16:50:52 +0000 (+0000) Subject: Fix test: u prefixes are gone now. Test 'a' and b'a' instead. X-Git-Tag: v3.0a1~925 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e618b75185d73a761c15b2c01d50d6ff944a618;p=thirdparty%2FPython%2Fcpython.git Fix test: u prefixes are gone now. Test 'a' and b'a' instead. --- diff --git a/Lib/test/test_unary.py b/Lib/test/test_unary.py index 1e07c1513959..fa467ba1317f 100644 --- a/Lib/test/test_unary.py +++ b/Lib/test/test_unary.py @@ -43,9 +43,8 @@ class UnaryOpTestCase(unittest.TestCase): def test_bad_types(self): for op in '+', '-', '~': + self.assertRaises(TypeError, eval, op + "b'a'") self.assertRaises(TypeError, eval, op + "'a'") - if have_unicode: - self.assertRaises(TypeError, eval, op + "u'a'") self.assertRaises(TypeError, eval, "~2j") self.assertRaises(TypeError, eval, "~2.0")