summaryrefslogtreecommitdiff
path: root/Lib/test/test_array.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2000-11-14 21:36:07 +0000
committerTim Peters <tim.peters@gmail.com>2000-11-14 21:36:07 +0000
commiteab5c2ff20920f1af9d7caf795f2c431fab5524a (patch)
treec665c460106a2444674b154b2317c3dbbab37ba5 /Lib/test/test_array.py
parentc4c1cbdfb1d076ad4675bd2852846294d7ee1201 (diff)
downloadcpython-eab5c2ff20920f1af9d7caf795f2c431fab5524a.tar.gz
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 4a64bd63ea..087e65b555 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: