diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-05-18 16:50:52 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-05-18 16:50:52 (GMT) |
commit | 4e618b75185d73a761c15b2c01d50d6ff944a618 (patch) | |
tree | d818fac6b1bdaf7b96e488c1940814ac3fb45b74 | |
parent | d2034310d66b9d387b252972852537c0b592f141 (diff) | |
download | cpython-4e618b75185d73a761c15b2c01d50d6ff944a618.zip cpython-4e618b75185d73a761c15b2c01d50d6ff944a618.tar.gz cpython-4e618b75185d73a761c15b2c01d50d6ff944a618.tar.bz2 |
Fix test: u prefixes are gone now. Test 'a' and b'a' instead.
-rw-r--r-- | Lib/test/test_unary.py | 3 |
1 files changed, 1 insertions, 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") |