Skip to content

Commit 007caf6

Browse files
Update tests/functional/test_exclude_newer.py
Co-authored-by: Richard Si <sichard26@gmail.com>
1 parent 181a7ca commit 007caf6

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tests/functional/test_exclude_newer.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,8 @@ def test_exclude_newer_than_invalid_date(
1414
self, script: PipTestEnvironment, data: TestData
1515
) -> None:
1616
"""Test that --exclude-newer-than fails with invalid date format."""
17-
result = script.pip(
18-
"install",
19-
"--no-index",
20-
"-f",
21-
data.packages,
22-
"--exclude-newer-than=invalid-date",
23-
"simple",
24-
expect_error=True,
17+
result = script.pip_install_local(
18+
"--exclude-newer-than=invalid-date", "simple", expect_error=True
2519
)
2620

2721
# Should fail with date parsing error

0 commit comments

Comments
 (0)