Author: Brian Kearns <[email protected]>
Branch: stdlib-2.7.8
Changeset: r73098:358436365bce
Date: 2014-08-27 13:59 -0400
http://bitbucket.org/pypy/pypy/changeset/358436365bce/
Log: enhance this test
diff --git a/pypy/module/posix/test/test_posix2.py
b/pypy/module/posix/test/test_posix2.py
--- a/pypy/module/posix/test/test_posix2.py
+++ b/pypy/module/posix/test/test_posix2.py
@@ -320,7 +320,8 @@
path = self.path
posix = self.posix
fd = posix.open(path, posix.O_RDONLY)
- raises(OSError, posix.fdopen, fd, 'w')
+ exc = raises(OSError, posix.fdopen, fd, 'w')
+ assert str(exc.value) == "[Errno 22] Invalid argument"
posix.close(fd) # fd should not be closed
def test_getcwd(self):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit