diff options
Diffstat (limited to 'Lib/test')
-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") |