[pypy-commit] pypy default: Obscure one-time crash of the test: maybe the file descriptor 42 was in use?
arigo
noreply at buildbot.pypy.org
Thu Nov 20 14:26:34 CET 2014
Author: Armin Rigo <arigo at 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
More information about the pypy-commit
mailing list