mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Now that Marc-Andre has retracted unistr(), remove the tests.
This commit is contained in:
parent
48eb9cd62f
commit
0a5f91f1d9
2 changed files with 0 additions and 12 deletions
|
|
@ -45,7 +45,6 @@ repr
|
|||
round
|
||||
setattr
|
||||
str
|
||||
unistr
|
||||
tuple
|
||||
type
|
||||
vars
|
||||
|
|
|
|||
|
|
@ -214,17 +214,6 @@ if str(()) != '()': raise TestFailed, 'str(())'
|
|||
if str([]) != '[]': raise TestFailed, 'str([])'
|
||||
if str({}) != '{}': raise TestFailed, 'str({})'
|
||||
|
||||
print 'unistr'
|
||||
if unistr('') <> u'': raise TestFailed, 'unistr(\'\')'
|
||||
if unistr('a') <> u'a': raise TestFailed, 'unistr(\'a\')'
|
||||
if unistr(u'') <> u'': raise TestFailed, 'unistr(u\'\')'
|
||||
if unistr(u'a') <> u'a': raise TestFailed, 'unistr(u\'a\')'
|
||||
if unistr(0) <> u'0': raise TestFailed, 'unistr(0)'
|
||||
if unistr(0L) <> u'0': raise TestFailed, 'unistr(0L)'
|
||||
if unistr(()) <> u'()': raise TestFailed, 'unistr(())'
|
||||
if unistr([]) <> u'[]': raise TestFailed, 'unistr([])'
|
||||
if unistr({}) <> u'{}': raise TestFailed, 'unistr({})'
|
||||
|
||||
print 'tuple'
|
||||
if tuple(()) != (): raise TestFailed, 'tuple(())'
|
||||
if tuple((0, 1, 2, 3)) != (0, 1, 2, 3): raise TestFailed, 'tuple((0, 1, 2, 3))'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue