summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_array.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2000-11-14 21:36:07 (GMT)
committerTim Peters <tim.peters@gmail.com>2000-11-14 21:36:07 (GMT)
commitcc78e47bcd8fe1ce6d07407202e83f9132ff9e9d (patch)
treee6d0a2e6946c4715b4933ba36ec75ffc4f520417 /Lib/test/test_array.py
parent102e457a01bb10d3724c20464b919704ea30744d (diff)
downloadcpython-cc78e47bcd8fe1ce6d07407202e83f9132ff9e9d.zip
cpython-cc78e47bcd8fe1ce6d07407202e83f9132ff9e9d.tar.gz
cpython-cc78e47bcd8fe1ce6d07407202e83f9132ff9e9d.tar.bz2
Verify that str(a) and repr(a) don't blow up (part of SF patch 102068).
Diffstat (limited to 'Lib/test/test_array.py')
-rwxr-xr-xLib/test/test_array.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py
index 4a64bd6..087e65b 100755
--- a/Lib/test/test_array.py
+++ b/Lib/test/test_array.py
@@ -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: