Remove have_unicode checks and merge those tests into the
normal code (or drop them if they only repeat previous
tests).
diff --git a/Lib/test/test_complex.py b/Lib/test/test_complex.py
index 43a57c8..af495fb 100644
--- a/Lib/test/test_complex.py
+++ b/Lib/test/test_complex.py
@@ -226,8 +226,6 @@
self.assertRaises(TypeError, complex, 1, "1")
self.assertEqual(complex(" 3.14+J "), 3.14+1j)
- if test_support.have_unicode:
- self.assertEqual(complex(str(" 3.14+J ")), 3.14+1j)
# SF bug 543840: complex(string) accepts strings with \0
# Fixed in 2.3.
@@ -250,9 +248,8 @@
self.assertRaises(ValueError, complex, "1+2j)")
self.assertRaises(ValueError, complex, "1+(2j)")
self.assertRaises(ValueError, complex, "(1+2j)123")
- if test_support.have_unicode:
- self.assertRaises(ValueError, complex, str("1"*500))
- self.assertRaises(ValueError, complex, str("x"))
+ self.assertRaises(ValueError, complex, "1"*500)
+ self.assertRaises(ValueError, complex, "x")
class EvilExc(Exception):
pass