summaryrefslogtreecommitdiff
path: root/Lib/test/test_contains.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-05-02 19:09:54 +0000
committerGuido van Rossum <guido@python.org>2007-05-02 19:09:54 +0000
commitef87d6ed94780fe00250a551031023aeb2898365 (patch)
tree1f8989aaaec7ec5f8b2f26498317f2022bf85531 /Lib/test/test_contains.py
parent572dbf8f1320c0b34b9c786e5c30ba4a4b61b292 (diff)
downloadcpython-git-ef87d6ed94780fe00250a551031023aeb2898365.tar.gz
Rip out all the u"..." literals and calls to unicode().
Diffstat (limited to 'Lib/test/test_contains.py')
-rw-r--r--Lib/test/test_contains.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/Lib/test/test_contains.py b/Lib/test/test_contains.py
index e6f5cf7272..c902421806 100644
--- a/Lib/test/test_contains.py
+++ b/Lib/test/test_contains.py
@@ -59,31 +59,31 @@ if have_unicode:
# Test char in Unicode
- check('c' in unicode('abc'), "'c' not in u'abc'")
- check('d' not in unicode('abc'), "'d' in u'abc'")
+ check('c' in str('abc'), "'c' not in u'abc'")
+ check('d' not in str('abc'), "'d' in u'abc'")
- check('' in unicode(''), "'' not in u''")
- check(unicode('') in '', "u'' not in ''")
- check(unicode('') in unicode(''), "u'' not in u''")
- check('' in unicode('abc'), "'' not in u'abc'")
- check(unicode('') in 'abc', "u'' not in 'abc'")
- check(unicode('') in unicode('abc'), "u'' not 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 unicode('abc')
+ None in str('abc')
check(0, "None in u'abc' did not raise error")
except TypeError:
pass
# Test Unicode char in Unicode
- check(unicode('c') in unicode('abc'), "u'c' not in u'abc'")
- check(unicode('d') not in unicode('abc'), "u'd' in u'abc'")
+ 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(unicode('c') in 'abc', "u'c' not in 'abc'")
- check(unicode('d') not in 'abc', "u'd' in 'abc'")
+ 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 = range(10)