summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_array.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-04-11 17:08:28 (GMT)
committerGuido van Rossum <guido@python.org>2007-04-11 17:08:28 (GMT)
commitb5ddcfd2a203336f3ba7bb1111cda462333c9e1f (patch)
tree43ff7e83daded1ea92c4a30a948adfc500dbd3ad /Lib/test/test_array.py
parentd0712817ac7139505a38613bb244a66115c24f52 (diff)
downloadcpython-b5ddcfd2a203336f3ba7bb1111cda462333c9e1f.zip
cpython-b5ddcfd2a203336f3ba7bb1111cda462333c9e1f.tar.gz
cpython-b5ddcfd2a203336f3ba7bb1111cda462333c9e1f.tar.bz2
Make array().tofile() work with a new I/O object.
Diffstat (limited to 'Lib/test/test_array.py')
-rwxr-xr-xLib/test/test_array.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py
index 692760c..ae7156b 100755
--- a/Lib/test/test_array.py
+++ b/Lib/test/test_array.py
@@ -147,7 +147,7 @@ class BaseTest(unittest.TestCase):
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)