mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +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')
|
f = open(TESTFN, 'w')
|
||||||
a.tofile(f)
|
a.tofile(f)
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
# This block is just to verify that the operations don't blow up.
|
||||||
a.tolist()
|
a.tolist()
|
||||||
a.tostring()
|
a.tostring()
|
||||||
|
repr(a)
|
||||||
|
str(a)
|
||||||
|
|
||||||
if verbose:
|
if verbose:
|
||||||
print 'array of %s converted to a list: ' % a.typecode, a.tolist()
|
print 'array of %s converted to a list: ' % a.typecode, a.tolist()
|
||||||
if verbose:
|
if verbose:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue