now fix py3...
This commit is contained in:
parent
22335acd09
commit
f86c8469f5
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue