Improve testing comments and code of issue 2985 (symlink in pyargs).

This commit is contained in:
Henk-Jaap Wagenaar 2017-12-12 08:26:40 +00:00
parent b62fd79c0c
commit dc19624248
1 changed files with 3 additions and 3 deletions

View File

@ -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)