Author: Amaury Forgeot d'Arc <[email protected]>
Branch: 
Changeset: r78065:48213fa62b6d
Date: 2015-06-13 00:16 +0200
http://bitbucket.org/pypy/pypy/changeset/48213fa62b6d/

Log:    It is TypeError.

diff --git a/lib-python/2.7/test/test_fileio.py 
b/lib-python/2.7/test/test_fileio.py
--- a/lib-python/2.7/test/test_fileio.py
+++ b/lib-python/2.7/test/test_fileio.py
@@ -145,11 +145,11 @@
         self.assertRaises(ValueError, self.f.write, 0)
         self.assertRaises(ValueError, self.f.seek, 0)
 
-        self.assertRaises(ValueError, self.f.readinto) # XXX should be 
TypeError?
+        self.assertRaises(TypeError, self.f.readinto)
         self.assertRaises(ValueError, self.f.readinto, bytearray(1))
-        self.assertRaises(ValueError, self.f.seek)
+        self.assertRaises(TypeError, self.f.seek)
         self.assertRaises(ValueError, self.f.seek, 0)
-        self.assertRaises(ValueError, self.f.write)
+        self.assertRaises(TypeError, self.f.write)
         self.assertRaises(ValueError, self.f.write, b'')
         self.assertRaises(TypeError, self.f.writelines)
         self.assertRaises(ValueError, self.f.writelines, b'')
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to