use binary mode

This commit is contained in:
Benjamin Peterson 2011-07-19 22:45:27 -05:00
parent 8b866aa065
commit 22335acd09
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ class TestRewriteOnImport:
sub.join("test_readonly.py").write("""
def test_rewritten():
assert "@py_builtins" in globals()
""")
""", "wb")
sub.chmod(320)
assert testdir.runpytest().ret == 0