diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-05-27 17:30:09 +0100 |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2012-05-27 17:30:09 +0100 |
commit | 7e203498d1d90e943bc322b82a2e9a8e50da25c6 (patch) | |
tree | 40c6fd14cee307b195a991d638fd0620eda47efe /Lib/test/test_venv.py | |
parent | 0b43bcf5287d9494e3332b391350fcd32fe93f2c (diff) | |
download | cpython-git-7e203498d1d90e943bc322b82a2e9a8e50da25c6.tar.gz |
Fixed _sys_home computation and added diagnostics for Windows buildbot failures.
Diffstat (limited to 'Lib/test/test_venv.py')
-rw-r--r-- | Lib/test/test_venv.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py index 8e41a47fd0..2f2558f3f6 100644 --- a/Lib/test/test_venv.py +++ b/Lib/test/test_venv.py @@ -76,7 +76,10 @@ class BasicTest(BaseTest): data = self.get_text_file_contents(self.bindir, self.ps3name) self.assertTrue(data.startswith('#!%s%s' % (self.env_dir, os.sep))) fn = self.get_env_file(self.bindir, self.exe) - self.assertTrue(os.path.exists(fn), 'File %r exists' % fn) + if not os.path.exists(fn): # diagnostics for Windows buildbot failures + print('Contents of %r:' % self.bindir) + print(' %r' % os.listdir(self.bindir)) + self.assertTrue(os.path.exists(fn), 'File %r should exist.' % fn) def test_overwrite_existing(self): """ |