Try to fix buildbot failures from #13193

This commit is contained in:
Éric Araujo 2011-11-05 17:51:52 +01:00
parent 88c2e45367
commit 03b0819389
1 changed files with 2 additions and 0 deletions

View File

@ -99,7 +99,9 @@ class InstallDataTestCase(support.TempdirManager,
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']