diff options
author | Tim Peters <tim.peters@gmail.com> | 2000-11-14 21:36:07 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2000-11-14 21:36:07 +0000 |
commit | eab5c2ff20920f1af9d7caf795f2c431fab5524a (patch) | |
tree | c665c460106a2444674b154b2317c3dbbab37ba5 /Lib/test/test_array.py | |
parent | c4c1cbdfb1d076ad4675bd2852846294d7ee1201 (diff) | |
download | cpython-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-x | Lib/test/test_array.py | 5 |
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: |