summaryrefslogtreecommitdiff
path: root/tests/unit/test_util.py
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2013-08-22 04:00:30 -0400
committerDonald Stufft <donald@stufft.io>2013-08-22 04:19:58 -0400
commit08247973b67b6de065ca247424e86673e5d1439a (patch)
tree11d5e4a8ce8e31bd816861281ed32c85d8e4fb3d /tests/unit/test_util.py
parent7975431d2dd71772ca1eee6981d22d68245d08fc (diff)
downloadpip-08247973b67b6de065ca247424e86673e5d1439a.tar.gz
Fix the Python 3.3 issue, it only seems to happen on Travis
Diffstat (limited to 'tests/unit/test_util.py')
-rw-r--r--tests/unit/test_util.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unit/test_util.py b/tests/unit/test_util.py
index b2c73abe9..602c128df 100644
--- a/tests/unit/test_util.py
+++ b/tests/unit/test_util.py
@@ -203,12 +203,15 @@ class Tests_get_installed_distributions:
assert len(dists) == 3
-def test_find_command_folder_in_path():
+def test_find_command_folder_in_path(monkeypatch):
"""
If a folder named e.g. 'git' is in PATH, and find_command is looking for
the 'git' executable, it should not match the folder, but rather keep
looking.
"""
+ # Why in the world is this needed?
+ monkeypatch.setattr(shutil, "_use_fd_functions", False, raising=False)
+
script = reset_env()
script.scratch_path.join("path_one").mkdir()
path_one = script.scratch_path/'path_one'