Skip to content

Commit

Permalink
test_pip_install_target test too fast...
Browse files Browse the repository at this point in the history
  • Loading branch information
lidong committed Jun 4, 2024
1 parent 726e2ec commit ff572b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ def test_pip_install_target():
assert pip_install_target(
"./mock_dir", ["six", "--no-cache-dir"], force=False, sys_path=None
)
assert time.time() - start_time > 0.5
assert time.time() - start_time > 0.1
sys.modules.pop("six", None)
import six

Expand All @@ -733,7 +733,7 @@ def test_pip_install_target():
assert not pip_install_target(
"./mock_dir", ["six", "--no-cache-dir"], force=False, sys_path=0
)
assert time.time() - start_time < 0.5
assert time.time() - start_time < 0.1
sys.modules.pop("six", None)
import six

Expand All @@ -743,7 +743,7 @@ def test_pip_install_target():
assert pip_install_target(
"./mock_dir", ["six", "--no-cache-dir"], force=True, sys_path=0
)
assert time.time() - start_time > 0.5
assert time.time() - start_time > 0.1
sys.modules.pop("six", None)
import six

Expand Down

0 comments on commit ff572b7

Please sign in to comment.