Author: Armin Rigo <ar...@tunes.org> Branch: py3.5-noninherit Changeset: r86599:8b236943d106 Date: 2016-08-27 15:27 +0200 http://bitbucket.org/pypy/pypy/changeset/8b236943d106/
Log: fix test diff --git a/pypy/module/_io/test/test_fileio.py b/pypy/module/_io/test/test_fileio.py --- a/pypy/module/_io/test/test_fileio.py +++ b/pypy/module/_io/test/test_fileio.py @@ -252,14 +252,15 @@ assert posix.get_inheritable(f.fileno()) == False f.close() - def test_FileIO_fd_does_change_inheritable(self): + def test_FileIO_fd_does_not_change_inheritable(self): import _io, posix fd1, fd2 = posix.pipe() posix.set_inheritable(fd1, True) + posix.set_inheritable(fd2, False) f1 = _io.FileIO(fd1, 'r') f2 = _io.FileIO(fd2, 'w') - assert posix.get_inheritable(fd1) == False - assert posix.get_inheritable(fd2) == True + assert posix.get_inheritable(fd1) == True + assert posix.get_inheritable(fd2) == False f1.close() f2.close() _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit