-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow python activator to be relocate-able
Signed-off-by: Bernat Gabor <[email protected]>
- Loading branch information
1 parent
272056b
commit eb64b9f
Showing
11 changed files
with
294 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +0,0 @@ | ||
from __future__ import absolute_import, unicode_literals | ||
|
||
import os | ||
|
||
import pytest | ||
from pathlib2 import Path | ||
|
||
from virtualenv.run import run_via_cli | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def activation_python(tmp_path_factory): | ||
path = tmp_path_factory.mktemp("activation-test-env") | ||
prev_cwd = os.getcwd() | ||
try: | ||
os.chdir(str(path)) | ||
session = run_via_cli([str(path), "--seeder", "none"]) | ||
pydoc_test = Path(session.creator.site_packages[0]) / "pydoc_test.py" | ||
pydoc_test.write_text('"""This is pydoc_test.py"""') | ||
yield session, pydoc_test | ||
finally: | ||
os.chdir(str(prev_cwd)) | ||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.