Skip to content

Commit f18f7e4

Browse files
committed
switching to path to try and solve windows issue
1 parent 0c27875 commit f18f7e4

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

sqlmesh/core/context.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2809,15 +2809,13 @@ def _filter_preloaded_tests(
28092809
for test in tests:
28102810
if "::" in test:
28112811
filename, test_name = test.split("::", maxsplit=1)
2812+
test_path = Path(filename)
28122813
filtered_tests.extend(
2813-
[
2814-
t
2815-
for t in test_meta
2816-
if str(t.path) == filename and t.test_name == test_name
2817-
]
2814+
[t for t in test_meta if t.path == test_path and t.test_name == test_name]
28182815
)
28192816
else:
2820-
filtered_tests.extend([t for t in test_meta if str(t.path) == test])
2817+
test_path = Path(test)
2818+
filtered_tests.extend([t for t in test_meta if t.path == test_path])
28212819
test_meta = filtered_tests
28222820

28232821
if patterns:

0 commit comments

Comments
 (0)