Author: Matti Picus <[email protected]>
Branch: win32-cleanup2
Changeset: r54767:19263abaa526
Date: 2012-04-26 21:19 +0300
http://bitbucket.org/pypy/pypy/changeset/19263abaa526/

Log:    simplify test (amaury_)

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
@@ -265,10 +265,6 @@
 
         if option.runappdirect:
             py.test.skip("works with internals of _file impl on py.py")
-        if os.name=='nt':
-            mode = 'rb'
-        else:
-            mode = 'r'
         state = [0]
         def read(fd, n=None):
             if fd != 42:
@@ -282,7 +278,7 @@
             return ''
         os.read = read
         stdin = W_File(cls.space)
-        stdin.file_fdopen(42, mode, 1)
+        stdin.file_fdopen(42, 'rb', 1)
         stdin.name = '<stdin>'
         cls.w_stream = stdin
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to