Author: Matti Picus <[email protected]>
Branch:
Changeset: r70423:50dedcdbad50
Date: 2014-04-03 21:39 +0300
http://bitbucket.org/pypy/pypy/changeset/50dedcdbad50/
Log: fix test, now raises cpython compatible IOError
diff --git a/pypy/module/_file/test/test_file_extra.py
b/pypy/module/_file/test/test_file_extra.py
--- a/pypy/module/_file/test/test_file_extra.py
+++ b/pypy/module/_file/test/test_file_extra.py
@@ -528,7 +528,7 @@
f = open(fn)
exc = raises(EnvironmentError, f.truncate, 3)
if sys.platform == 'win32':
- assert exc.value.winerror == 5 # ERROR_ACCESS_DENIED
+ assert exc.value.errno == 5 # ERROR_ACCESS_DENIED
else:
# CPython explicitely checks the file mode
# PyPy relies on the libc to raise the error
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit