Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r74613:21763edebb42 Date: 2014-11-20 14:26 +0100 http://bitbucket.org/pypy/pypy/changeset/21763edebb42/
Log: Obscure one-time crash of the test: maybe the file descriptor 42 was in use? diff --git a/pypy/module/_file/test/test_file.py b/pypy/module/_file/test/test_file.py --- a/pypy/module/_file/test/test_file.py +++ b/pypy/module/_file/test/test_file.py @@ -304,7 +304,7 @@ py.test.skip("works with internals of _file impl on py.py") state = [0] def read(fd, n=None): - if fd != 42: + if fd != 424242: return cls.old_read(fd, n) if state[0] == 0: state[0] += 1 @@ -315,7 +315,7 @@ return '' os.read = read stdin = W_File(cls.space) - stdin.file_fdopen(42, 'rb', 1) + stdin.file_fdopen(424242, 'rb', 1) stdin.name = '<stdin>' cls.w_stream = stdin _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit