From 08247973b67b6de065ca247424e86673e5d1439a Mon Sep 17 00:00:00 2001 From: Donald Stufft Date: Thu, 22 Aug 2013 04:00:30 -0400 Subject: Fix the Python 3.3 issue, it only seems to happen on Travis --- tests/unit/test_util.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/unit/test_util.py') 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' -- cgit v1.2.1