From 5996b61e9919e83276b4028aa0d8a19a28f90524 Mon Sep 17 00:00:00 2001 From: Jason Manuel Date: Fri, 26 May 2023 18:39:27 -0700 Subject: [PATCH] Resolve module path in test For Linux, having '..' in the path doesn't work for import paths, and so the test fails on Linux. --- concat/tests/test_execute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/concat/tests/test_execute.py b/concat/tests/test_execute.py index 87c679d..e5ee526 100644 --- a/concat/tests/test_execute.py +++ b/concat/tests/test_execute.py @@ -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( '',