[py-svn] commit/pytest: gutworth: use binary mode

Bitbucket commits-noreply at bitbucket.org
Wed Jul 20 05:45:29 CEST 2011


1 new changeset in pytest:

http://bitbucket.org/hpk42/pytest/changeset/b1d57e5d8c04/
changeset:   b1d57e5d8c04
user:        gutworth
date:        2011-07-20 05:45:27
summary:     use binary mode
affected #:  1 file (6 bytes)

--- a/testing/test_assertrewrite.py	Tue Jul 19 22:41:58 2011 -0500
+++ b/testing/test_assertrewrite.py	Tue Jul 19 22:45:27 2011 -0500
@@ -288,7 +288,7 @@
         sub.join("test_readonly.py").write("""
 def test_rewritten():
     assert "@py_builtins" in globals()
-""")
+""", "wb")
         sub.chmod(320)
         assert testdir.runpytest().ret == 0

Repository URL: https://bitbucket.org/hpk42/pytest/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the pytest-commit mailing list