Skip to content

Commit

Permalink
Resolve module path in test
Browse files Browse the repository at this point in the history
For Linux, having '..' in the path doesn't work for import paths, and so
the test fails on Linux.
  • Loading branch information
jmanuel1 committed May 27, 2023
1 parent 78e8299 commit 5996b61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion concat/tests/test_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_preamble(self) -> None:

def test_import_resolution_location(self) -> None:
"""Test that imports are resolved from the given directory."""
test_module_path = pathlib.Path(__file__) / '../fixtures/'
test_module_path = (pathlib.Path(__file__) / '../fixtures/').resolve()
globals_dict: dict = {}
concat.execute.execute(
'<test>',
Expand Down

0 comments on commit 5996b61

Please sign in to comment.