Skip to content

Commit

Permalink
fix FileNotFoundError
Browse files Browse the repository at this point in the history
  • Loading branch information
lidong committed Jun 4, 2024
1 parent c01c41e commit 2be4296
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ def test_pip_install_target():
import six

assert "mock_dir" not in six.__file__
except ImportError:
except (ImportError, FileNotFoundError):
pass
# hit md5 cache, force=False, sys_path ignored
start_time = time.time()
Expand All @@ -742,7 +742,7 @@ def test_pip_install_target():
import six

assert "mock_dir" not in six.__file__
except ImportError:
except (ImportError, FileNotFoundError):
pass
# test force=True, sys_path=0 worked
start_time = time.time()
Expand Down

0 comments on commit 2be4296

Please sign in to comment.