[pypy-commit] pypy stdlib-2.7.8: enhance this test

bdkearns noreply at buildbot.pypy.org
Wed Aug 27 20:19:35 CEST 2014


Author: Brian Kearns <bdkearns at gmail.com>
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):


More information about the pypy-commit mailing list