Skip to content

Commit

Permalink
Make test run the same on all OSes
Browse files Browse the repository at this point in the history
Use posixpath

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
  • Loading branch information
pombredanne committed Dec 8, 2022
1 parent f4ce171 commit 2beed88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/pip_requirements_parser_tests/unit/test_req.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# SPDX-License-Identifier: MIT

import os
import posixpath
import shutil
import sys
import tempfile
Expand Down Expand Up @@ -245,7 +246,7 @@ def test_extras_for_editable_url_requirement(self) -> None:
assert req.extras == {"ex1", "ex2"}

def test_unexisting_path(self) -> None:
result = build_install_req(os.path.join("this", "path", "does", "not", "exist"))
result = build_install_req(posixpath.join("this", "path", "does", "not", "exist"))
assert result.link.url == "this/path/does/not/exist"

def test_single_equal_sign(self) -> None:
Expand Down

0 comments on commit 2beed88

Please sign in to comment.