[Python-checkins] cpython (3.3): Issue #18224: Updated test.

vinay.sajip python-checkins at python.org
Sun Jun 30 23:12:13 CEST 2013


http://hg.python.org/cpython/rev/c17fa2cbad43
changeset:   84397:c17fa2cbad43
branch:      3.3
parent:      84395:af837bf390d0
user:        Vinay Sajip <vinay_sajip at yahoo.co.uk>
date:        Sun Jun 30 22:11:10 2013 +0100
summary:
  Issue #18224: Updated test.

files:
  Lib/test/test_venv.py |  4 ----
  1 files changed, 0 insertions(+), 4 deletions(-)


diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py
--- a/Lib/test/test_venv.py
+++ b/Lib/test/test_venv.py
@@ -23,12 +23,10 @@
         self.env_dir = os.path.realpath(tempfile.mkdtemp())
         if os.name == 'nt':
             self.bindir = 'Scripts'
-            self.pydocname = 'pydoc.py'
             self.lib = ('Lib',)
             self.include = 'Include'
         else:
             self.bindir = 'bin'
-            self.pydocname = 'pydoc'
             self.lib = ('lib', 'python%s' % sys.version[:3])
             self.include = 'include'
         if sys.platform == 'darwin' and '__PYVENV_LAUNCHER__' in os.environ:
@@ -78,8 +76,6 @@
             executable = sys.executable
         path = os.path.dirname(executable)
         self.assertIn('home = %s' % path, data)
-        data = self.get_text_file_contents(self.bindir, self.pydocname)
-        self.assertTrue(data.startswith('#!%s%s' % (self.env_dir, os.sep)))
         fn = self.get_env_file(self.bindir, self.exe)
         if not os.path.exists(fn):  # diagnostics for Windows buildbot failures
             bd = self.get_env_file(self.bindir)

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


More information about the Python-checkins mailing list