diff Lib/test/test_array.py @ 15409:99ca419ca58b legacy-trunk

Verify that str(a) and repr(a) don't blow up (part of SF patch 102068).
author Tim Peters <tim.peters@gmail.com>
date Tue, 14 Nov 2000 21:36:07 +0000
parents 07f24261c6e6
children c1a8deb15f0e
line wrap: on
line diff
--- a/Lib/test/test_array.py	Tue Nov 14 20:44:53 2000 +0000
+++ b/Lib/test/test_array.py	Tue Nov 14 21:36:07 2000 +0000
@@ -84,8 +84,13 @@
     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: