Skip to content

Commit 2adea72

Browse files
committed
Use platform independent regex
1 parent 86a8a28 commit 2adea72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/test_req_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def test_recursive_relative_requirements_file(
403403
monkeypatch.setattr(os.path, "abspath", lambda x: x)
404404
with pytest.raises(
405405
pip._internal.exceptions.InstallationError,
406-
match=r"Could not open requirements file: \[Errno 36\] File name too long:",
406+
match="Could not open requirements file: .* File name too long:",
407407
):
408408
list(parse_requirements(filename=str(root_req_file), session=session))
409409

0 commit comments

Comments
 (0)