]> granicus.if.org Git - python/commitdiff
Verify that str(a) and repr(a) don't blow up (part of SF patch 102068).
authorTim Peters <tim.peters@gmail.com>
Tue, 14 Nov 2000 21:36:07 +0000 (21:36 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 14 Nov 2000 21:36:07 +0000 (21:36 +0000)
Lib/test/test_array.py

index 4a64bd63ea41aa576acfdf6f07e6b7b2757e3f4a..087e65b555473c7a73550b0db9394c72fb74d742 100755 (executable)
@@ -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: