From 4e618b75185d73a761c15b2c01d50d6ff944a618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Fri, 18 May 2007 16:50:52 +0000 Subject: Fix test: u prefixes are gone now. Test 'a' and b'a' instead. --- Lib/test/test_unary.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/test/test_unary.py b/Lib/test/test_unary.py index 1e07c15..fa467ba 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") -- cgit v0.12