Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cc78e47

Browse files
committed
Verify that str(a) and repr(a) don't blow up (part of SF patch 102068).
1 parent 102e457 commit cc78e47

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lib/test/test_array.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,13 @@ def testtype(type, example):
8484
f = open(TESTFN, 'w')
8585
a.tofile(f)
8686
f.close()
87+
88+
# This block is just to verify that the operations don't blow up.
8789
a.tolist()
8890
a.tostring()
91+
repr(a)
92+
str(a)
93+
8994
if verbose:
9095
print 'array of %s converted to a list: ' % a.typecode, a.tolist()
9196
if verbose:

0 commit comments

Comments
 (0)