now fix py3...

This commit is contained in:
Benjamin Peterson 2011-07-19 22:56:34 -05:00
parent 22335acd09
commit f86c8469f5
1 changed files with 3 additions and 2 deletions

View File

@ -285,10 +285,11 @@ class TestRewriteOnImport:
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