Skip to content

Commit ac0b59b

Browse files
committed
Remove one use of os.path in a test
1 parent b222e74 commit ac0b59b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_is_package_file(path: str, result: str) -> None:
3636
def test_found_module() -> None:
3737
found_module = common.FoundModule("spam", "ham")
3838
assert found_module.modname == "spam"
39-
assert found_module.filename == os.path.realpath("ham")
39+
assert found_module.filename == str(Path("ham").resolve())
4040
assert found_module.locations == []
4141

4242

0 commit comments

Comments
 (0)