]> granicus.if.org Git - python/commit
Stop trying to write into the stdlib during packaging tests (#12331).
authorÉric Araujo <merwok@netwok.org>
Sun, 31 Jul 2011 18:47:47 +0000 (20:47 +0200)
committerÉric Araujo <merwok@netwok.org>
Sun, 31 Jul 2011 18:47:47 +0000 (20:47 +0200)
commitb85b966de6aa1b5b5584c294656a7f574f492cc0
treebf614bfd67ce1d2acba29db775b12f23ac80e6f2
parent56ec5fe950da9903ec9fc614e8d0a9b4b7f6f95f
Stop trying to write into the stdlib during packaging tests (#12331).

This prevents tests from failing when run from a Python installed in a
read-only directory.  The code is a bit uglier; shutil.copytree calls
copystat on directories behind our back, so I had to add an os.walk
with os.chmod (*and* os.path.join!) calls.  shutil, I am disappoint.

This changeset is dedicated to the hundreds of neurons that were lost
while I was debugging this on an otherwise fine afternoon.
Lib/packaging/tests/test_database.py
Misc/NEWS