Skip to content

Commit 48462d1

Browse files
committed
fix a test cannot run correctly in windows
1 parent 3a89561 commit 48462d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_record_queries.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from __future__ import annotations
22

3+
import os
4+
35
import pytest
46
import sqlalchemy as sa
57
from flask import Flask
@@ -24,5 +26,5 @@ class Example(db.Model):
2426
assert "FROM example" in info.statement
2527
assert info.parameters[0][0] == 5
2628
assert info.duration == info.end_time - info.start_time
27-
assert "tests/test_record_queries.py:" in info.location
29+
assert os.path.join("tests", "test_record_queries.py:") in info.location
2830
assert "(test_query_info)" in info.location

0 commit comments

Comments
 (0)