From 22335acd0909c2e5bcdd6497b98be4c1fba3f7aa Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 19 Jul 2011 22:45:27 -0500 Subject: [PATCH] use binary mode --- testing/test_assertrewrite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test_assertrewrite.py b/testing/test_assertrewrite.py index 2501ec16b..0e9d7c264 100644 --- a/testing/test_assertrewrite.py +++ b/testing/test_assertrewrite.py @@ -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