Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

4 changes to `test_always_copy_option`:

1) let it run for windows;  should be harmless
2) confirm files and dirs are not links
3) create the tmp venvs in a *new* directory
4) if a symlink is found, report what it's linked to
  • Loading branch information...
commit 51198a2e5e00ca31a11f532cde01bab0c95fa385 1 parent 93d52c1
@qwcode qwcode authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 tests/test_virtualenv.py
View
9 tests/test_virtualenv.py
@@ -125,16 +125,15 @@ def test_install_python_bin():
def test_always_copy_option():
"""Should be no symlinks in directory tree"""
- if virtualenv.is_win:
- return # no symlinks on win32
tmp_virtualenv = tempfile.mkdtemp()
+ ve_path = os.path.join(tmp_virtualenv, 'venv')
try:
- virtualenv.create_environment(tmp_virtualenv, symlink=False)
+ virtualenv.create_environment(ve_path, symlink=False)
for root, dirs, files in os.walk(tmp_virtualenv):
- for f in files:
+ for f in files + dirs:
full_name = os.path.join(root, f)
assert not os.path.islink(full_name), "%s should not be a" \
- " symlink" % full_name
+ " symlink (to %s)" % (full_name, os.readlink(full_name))
finally:
shutil.rmtree(tmp_virtualenv)
Please sign in to comment.
Something went wrong with that request. Please try again.