mirror of
https://github.com/python/cpython.git
synced 2025-08-28 12:45:07 +00:00
Verify that str(a) and repr(a) don't blow up (part of SF patch 102068).
This commit is contained in:
parent
102e457a01
commit
cc78e47bcd
1 changed files with 5 additions and 0 deletions
|
@ -84,8 +84,13 @@ def testtype(type, example):
|
|||
f = open(TESTFN, 'w')
|
||||
a.tofile(f)
|
||||
f.close()
|
||||
|
||||
# This block is just to verify that the operations don't blow up.
|
||||
a.tolist()
|
||||
a.tostring()
|
||||
repr(a)
|
||||
str(a)
|
||||
|
||||
if verbose:
|
||||
print 'array of %s converted to a list: ' % a.typecode, a.tolist()
|
||||
if verbose:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue