diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-05-22 16:52:54 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-05-22 16:52:54 (GMT) |
commit | 1f5947b30a870008ebd2367b2f4f9a5897f657c9 (patch) | |
tree | 2a881cb9b9dcfeaa1e96dc0905f0a9b56993caca /Lib/test/test_complex.py | |
parent | 02427050c187ba54649c7ad16b35370c31a0b238 (diff) | |
download | cpython-1f5947b30a870008ebd2367b2f4f9a5897f657c9.zip cpython-1f5947b30a870008ebd2367b2f4f9a5897f657c9.tar.gz cpython-1f5947b30a870008ebd2367b2f4f9a5897f657c9.tar.bz2 |
Remove have_unicode checks and merge those tests into the
normal code (or drop them if they only repeat previous
tests).
Diffstat (limited to 'Lib/test/test_complex.py')
-rw-r--r-- | Lib/test/test_complex.py | 7 |
1 files changed, 2 insertions, 5 deletions
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 @@ class ComplexTest(unittest.TestCase): 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 @@ class ComplexTest(unittest.TestCase): 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 |