Author: Armin Rigo <[email protected]>
Branch:
Changeset: r83665:c957e8268d73
Date: 2016-04-14 09:39 +0200
http://bitbucket.org/pypy/pypy/changeset/c957e8268d73/
Log: "fix"
diff --git a/rpython/rlib/test/test_rfile.py b/rpython/rlib/test/test_rfile.py
--- a/rpython/rlib/test/test_rfile.py
+++ b/rpython/rlib/test/test_rfile.py
@@ -267,7 +267,6 @@
self.interpret(f, [])
def test_seek(self):
- from sys import platform
fname = str(self.tmpdir.join('file_4'))
def f():
@@ -283,12 +282,14 @@
f.seek(2)
f.seek(-1, 1)
assert f.read() == "bcdef"
- try:
- f.seek(0, 42)
- except IOError as e:
- assert e.errno == errno.EINVAL
- else:
- assert platform == 'win32'
+ #---is the following behavior interesting in RPython?
+ #---I claim not, and it doesn't work on Windows
+ #try:
+ # f.seek(0, 42)
+ #except IOError as e:
+ # assert e.errno == errno.EINVAL
+ #else:
+ # assert False
f.close()
f()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit