This repository has been archived by the owner on May 23, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use relocatable again, add regression test
- Loading branch information
Buck Golemon
committed
Nov 19, 2014
1 parent
aa997b4
commit 6e05a15
Showing
3 changed files
with
25 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from py._path.local import LocalPath as Path | ||
|
||
from testing import get_scenario, run, venv_update | ||
|
||
|
||
def test_is_relocatable(tmpdir): | ||
tmpdir.chdir() | ||
get_scenario('trivial') | ||
venv_update() | ||
|
||
Path('virtualenv_run').rename('relocated') | ||
|
||
pip = 'relocated/bin/pip' | ||
assert Path(pip).exists() | ||
run(pip, '--version') |
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