diff Lib/test/test_array.py @ 41434:f390793e75de

Make array().tofile() work with a new I/O object.
author Guido van Rossum <guido@python.org>
date Wed, 11 Apr 2007 17:08:28 +0000
parents f340cb045bf9
children 06145fbc7ab9
line wrap: on
line diff
--- a/Lib/test/test_array.py	Wed Apr 11 16:32:43 2007 +0000
+++ b/Lib/test/test_array.py	Wed Apr 11 17:08:28 2007 +0000
@@ -147,7 +147,7 @@
     def test_tofromfile(self):
         a = array.array(self.typecode, 2*self.example)
         self.assertRaises(TypeError, a.tofile)
-        self.assertRaises(TypeError, a.tofile, cStringIO.StringIO())
+        ##self.assertRaises(TypeError, a.tofile, cStringIO.StringIO())
         f = open(test_support.TESTFN, 'wb')
         try:
             a.tofile(f)