Improve testing comments and code of issue 2985 (symlink in pyargs).
This commit is contained in:
parent
b62fd79c0c
commit
dc19624248
|
@ -681,17 +681,17 @@ class TestInvocationVariants(object):
|
||||||
# The structure of the test directory is now:
|
# The structure of the test directory is now:
|
||||||
# .
|
# .
|
||||||
# ├── local
|
# ├── local
|
||||||
# │ └── lib -> ../world
|
# │ └── lib -> ../lib
|
||||||
# └── lib
|
# └── lib
|
||||||
# └── foo
|
# └── foo
|
||||||
# ├── __init__.py
|
# ├── __init__.py
|
||||||
# └── bar
|
# └── bar
|
||||||
# ├── __init__.py
|
# ├── __init__.py
|
||||||
# ├── conftest.py
|
# ├── conftest.py
|
||||||
# └── test_world.py
|
# └── test_bar.py
|
||||||
|
|
||||||
def join_pythonpath(*dirs):
|
def join_pythonpath(*dirs):
|
||||||
cur = py.std.os.environ.get('PYTHONPATH')
|
cur = os.getenv('PYTHONPATH')
|
||||||
if cur:
|
if cur:
|
||||||
dirs += (cur,)
|
dirs += (cur,)
|
||||||
return os.pathsep.join(str(p) for p in dirs)
|
return os.pathsep.join(str(p) for p in dirs)
|
||||||
|
|
Loading…
Reference in New Issue