[py-svn] commit/pytest: gutworth: now fix py3...
Bitbucket
commits-noreply at bitbucket.org
Wed Jul 20 05:56:37 CEST 2011
1 new changeset in pytest:
http://bitbucket.org/hpk42/pytest/changeset/a559cbf91592/
changeset: a559cbf91592
user: gutworth
date: 2011-07-20 05:56:34
summary: now fix py3...
affected #: 1 file (45 bytes)
--- a/testing/test_assertrewrite.py Tue Jul 19 22:45:27 2011 -0500
+++ b/testing/test_assertrewrite.py Tue Jul 19 22:56:34 2011 -0500
@@ -285,10 +285,11 @@
def test_readonly(self, testdir):
sub = testdir.mkdir("testing")
- sub.join("test_readonly.py").write("""
+ sub.join("test_readonly.py").write(
+ py.builtin._totext("""
def test_rewritten():
assert "@py_builtins" in globals()
-""", "wb")
+""").encode("utf-8"), "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