Skip to content

Commit

Permalink
Fix Path usage in executable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BlankSpruce committed Jul 15, 2024
1 parent 7a454e7 commit 6f5594d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/test_executable.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,8 +817,8 @@ def gersemi_(*args, **kwargs):

def test_check_project_with_conflicting_command_definitions():
with temporary_dir_copy(TESTS / "conflicting_definitions") as copy:
foo1 = Path(copy) / "foo1.cmake"
foo2 = Path(copy) / "foo2.cmake"
foo1 = (Path(copy) / "foo1.cmake").resolve()
foo2 = (Path(copy) / "foo2.cmake").resolve()
completed_process = gersemi("--check", copy, "--definitions", copy)
assert completed_process.returncode == 0
assert completed_process.stdout == ""
Expand All @@ -835,8 +835,8 @@ def test_check_project_with_conflicting_command_definitions():

def test_format_file_with_conflicting_command_definitions():
with temporary_dir_copy(TESTS / "conflicting_definitions") as copy:
foo1 = Path(copy) / "foo1.cmake"
foo2 = Path(copy) / "foo2.cmake"
foo1 = (Path(copy) / "foo1.cmake").resolve()
foo2 = (Path(copy) / "foo2.cmake").resolve()
completed_process = gersemi(
f"{copy}/CMakeLists.txt",
"--definitions",
Expand Down Expand Up @@ -934,12 +934,12 @@ def test_warn_about_unknown_commands(tmpdir, args):
assert (
without_definition.stderr
== f"""Warning: unknown command 'watch_nolan_movies' used at:
{str(cmakelists)}:3:1
{str(cmakelists)}:8:5
{str(cmakelists.resolve())}:3:1
{str(cmakelists.resolve())}:8:5
Warning: unknown command 'watch_tarantino_movies' used at:
{str(cmakelists)}:6:5
{str(cmakelists)}:11:1
{str(cmakelists.resolve())}:6:5
{str(cmakelists.resolve())}:11:1
"""
), without_definition.stderr
Expand Down

0 comments on commit 6f5594d

Please sign in to comment.