[pypy-commit] pypy default: fix test, now raises cpython compatible IOError
mattip
noreply at buildbot.pypy.org
Thu Apr 3 20:43:27 CEST 2014
Author: Matti Picus <matti.picus at gmail.com>
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
More information about the pypy-commit
mailing list