mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Revise tests to support str(<long int object>) not appending "L".
This commit is contained in:
parent
b06007a3ba
commit
db1bd5c230
3 changed files with 21 additions and 15 deletions
|
@ -209,7 +209,7 @@ if sys.spam != 1: raise TestFailed, 'setattr(sys, \'spam\', 1)'
|
|||
print 'str'
|
||||
if str('') <> '': raise TestFailed, 'str(\'\')'
|
||||
if str(0) <> '0': raise TestFailed, 'str(0)'
|
||||
if str(0L) <> '0L': raise TestFailed, 'str(0L)'
|
||||
if str(0L) <> '0': raise TestFailed, 'str(0L)'
|
||||
if str(()) <> '()': raise TestFailed, 'str(())'
|
||||
if str([]) <> '[]': raise TestFailed, 'str([])'
|
||||
if str({}) <> '{}': raise TestFailed, 'str({})'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue