[Python-checkins] cpython: Try to fix buildbot failures from #13193

eric.araujo python-checkins at python.org
Sat Nov 5 17:52:03 CET 2011


http://hg.python.org/cpython/rev/4eee9dd61147
changeset:   73376:4eee9dd61147
user:        Éric Araujo <merwok at netwok.org>
date:        Sat Nov 05 17:51:52 2011 +0100
summary:
  Try to fix buildbot failures from #13193

files:
  Lib/packaging/tests/test_command_install_data.py |  2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Lib/packaging/tests/test_command_install_data.py b/Lib/packaging/tests/test_command_install_data.py
--- a/Lib/packaging/tests/test_command_install_data.py
+++ b/Lib/packaging/tests/test_command_install_data.py
@@ -99,7 +99,9 @@
         self.write_file('spamd', '# Python script')
         sysconfig._SCHEMES.set(_get_default_scheme(), 'scripts', scripts_dir)
         sys.path.insert(0, install_dir)
+        packaging.database.disable_cache()
         self.addCleanup(sys.path.remove, install_dir)
+        self.addCleanup(packaging.database.enable_cache)
 
         cmd = install_dist(dist)
         cmd.outputs = ['spamd']

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list