summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_contains.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-05-22 16:52:54 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2007-05-22 16:52:54 (GMT)
commit1f5947b30a870008ebd2367b2f4f9a5897f657c9 (patch)
tree2a881cb9b9dcfeaa1e96dc0905f0a9b56993caca /Lib/test/test_contains.py
parent02427050c187ba54649c7ad16b35370c31a0b238 (diff)
downloadcpython-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_contains.py')
-rw-r--r--Lib/test/test_contains.py32
1 files changed, 1 insertions, 31 deletions
diff --git a/Lib/test/test_contains.py b/Lib/test/test_contains.py
index f3287bf..7cae480 100644
--- a/Lib/test/test_contains.py
+++ b/Lib/test/test_contains.py
@@ -1,4 +1,4 @@
-from test.test_support import TestFailed, have_unicode
+from test.test_support import TestFailed
class base_set:
@@ -55,36 +55,6 @@ except TypeError:
pass
-if have_unicode:
-
- # Test char in Unicode
-
- check('c' in str('abc'), "'c' not in u'abc'")
- check('d' not in str('abc'), "'d' in u'abc'")
-
- check('' in str(''), "'' not in u''")
- check(str('') in '', "u'' not in ''")
- check(str('') in str(''), "u'' not in u''")
- check('' in str('abc'), "'' not in u'abc'")
- check(str('') in 'abc', "u'' not in 'abc'")
- check(str('') in str('abc'), "u'' not in u'abc'")
-
- try:
- None in str('abc')
- check(0, "None in u'abc' did not raise error")
- except TypeError:
- pass
-
- # Test Unicode char in Unicode
-
- check(str('c') in str('abc'), "u'c' not in u'abc'")
- check(str('d') not in str('abc'), "u'd' in u'abc'")
-
- # Test Unicode char in string
-
- check(str('c') in 'abc', "u'c' not in 'abc'")
- check(str('d') not in 'abc', "u'd' in 'abc'")
-
# A collection of tests on builtin sequence types
a = list(range(10))
for i in a: