summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_venv.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2012-05-26 19:36:12 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2012-05-26 19:36:12 (GMT)
commit42211426eb9771424b9e5153d12f8c2c0c538d34 (patch)
tree3b4e48b2a151ddf75d0c350e4acb6e26e4dcbab6 /Lib/test/test_venv.py
parent072b1e1485e50b3698c9147ef6dd5b657c100978 (diff)
downloadcpython-42211426eb9771424b9e5153d12f8c2c0c538d34.zip
cpython-42211426eb9771424b9e5153d12f8c2c0c538d34.tar.gz
cpython-42211426eb9771424b9e5153d12f8c2c0c538d34.tar.bz2
Addressed some buildbot errors and comments on the checkin by Antoine on python-dev.
Diffstat (limited to 'Lib/test/test_venv.py')
-rw-r--r--Lib/test/test_venv.py27
1 files changed, 5 insertions, 22 deletions
diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py
index fae62ed..8e41a47 100644
--- a/Lib/test/test_venv.py
+++ b/Lib/test/test_venv.py
@@ -1,24 +1,7 @@
-#!/usr/bin/env python
-#
-# Copyright 2011 by Vinay Sajip. All Rights Reserved.
-#
-# Permission to use, copy, modify, and distribute this software and its
-# documentation for any purpose and without fee is hereby granted,
-# provided that the above copyright notice appear in all copies and that
-# both that copyright notice and this permission notice appear in
-# supporting documentation, and that the name of Vinay Sajip
-# not be used in advertising or publicity pertaining to distribution
-# of the software without specific, written prior permission.
-# VINAY SAJIP DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
-# ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
-# VINAY SAJIP BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
-# ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
-# IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
-# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
-"""Test harness for the venv module. Run all tests.
-
-Copyright (C) 2011 Vinay Sajip. All Rights Reserved.
+"""
+Test harness for the venv module.
+
+Copyright (C) 2011-2012 Vinay Sajip.
"""
import os
@@ -93,7 +76,7 @@ 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))
+ self.assertTrue(os.path.exists(fn), 'File %r exists' % fn)
def test_overwrite_existing(self):
"""