Skip to content

Commit 2be4296

Browse files
author
lidong
committed
fix FileNotFoundError
1 parent c01c41e commit 2be4296

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ def test_pip_install_target():
729729
import six
730730

731731
assert "mock_dir" not in six.__file__
732-
except ImportError:
732+
except (ImportError, FileNotFoundError):
733733
pass
734734
# hit md5 cache, force=False, sys_path ignored
735735
start_time = time.time()
@@ -742,7 +742,7 @@ def test_pip_install_target():
742742
import six
743743

744744
assert "mock_dir" not in six.__file__
745-
except ImportError:
745+
except (ImportError, FileNotFoundError):
746746
pass
747747
# test force=True, sys_path=0 worked
748748
start_time = time.time()

0 commit comments

Comments
 (0)