1. Ronny Pfannschmidt
  2. pip-patches

Commits

Ronny Pfannschmidt  committed ac7dbf5

clean up the userbase test patch

  • Participants
  • Parent commits c7bf6a2
  • Branches default

Comments (0)

Files changed (1)

File custom-userbase

View file
 # HG changeset patch
-# Parent dec82745fec19c89edd75bf0cebc6f14794a030f
+# Parent 0502ad712448e51a759d665258330b6cca306355
 use a cusom PYTHONUSERBASE for testing --user
 
 diff --git a/tests/test_basic.py b/tests/test_basic.py
 --- a/tests/test_basic.py
 +++ b/tests/test_basic.py
-@@ -277,6 +277,18 @@ def test_install_curdir():
+@@ -277,6 +277,17 @@ def test_install_curdir():
      assert fspkg_folder in result.files_created, str(result.stdout)
      assert egg_info_folder in result.files_created, str(result)
  
 +    fspkg_folder = env.site_packages/'fspkg'
 +    egg_info_folder = env.user_site/'FSPkg-0.1dev-py%s.egg-info' % pyversion
 +    assert fspkg_folder in result.files_created, str(result.stdout)
-+    print fspkg_folder in result.files_created, str(result.stdout)
 +    assert egg_info_folder in result.files_created, str(result)
  
  def test_install_pardir():
 diff --git a/tests/test_pip.py b/tests/test_pip.py
 --- a/tests/test_pip.py
 +++ b/tests/test_pip.py
-@@ -258,7 +258,7 @@ class TestPipEnvironment(TestFileEnviron
-         self.scratch_path = self.root_path / self.scratch
- 
-         self.venv_path = self.root_path / self.venv
--
-+        
-         if not environ:
-             environ = os.environ.copy()
-             environ = clear_environ(environ)
 @@ -289,6 +289,11 @@ class TestPipEnvironment(TestFileEnviron
          assert self.venv == TestPipEnvironment.venv # sanity check