Description: Make the tmpdir created in the tests removable
Author: Simon Chopin <chopin.simon@gmail.com>
Last-Update: 2013-05-15
Bug-Debian: http://bugs.debian.org/702121

--- a/testing/test_assertrewrite.py
+++ b/testing/test_assertrewrite.py
@@ -347,7 +347,9 @@
     assert "@py_builtins" in globals()
 """).encode("utf-8"), "wb")
         sub.chmod(320)
-        assert testdir.runpytest().ret == 0
+        ret = testdir.runpytest().ret
+        sub.chmod(700)
+        assert ret == 0
 
     def test_dont_write_bytecode(self, testdir, monkeypatch):
         testdir.makepyfile("""
