Skip to content

Commit f46b7b2

Browse files
authored
Merge pull request #28 from tomviner/pytest-help-broken
fixes #23
2 parents c1acab7 + d8b52a2 commit f46b7b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/py_pglite/pytest_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def pytest_configure(config: pytest.Config) -> None:
6767
def _should_disable_django_plugin(config: pytest.Config) -> bool:
6868
"""Determine if Django plugin should be disabled for better isolation."""
6969
# Check if we're running pure SQLAlchemy tests
70-
test_paths = getattr(config.option, "file_or_dir", [])
70+
test_paths = getattr(config.option, "file_or_dir", []) or []
7171
if any(
7272
"sqlalchemy" in str(path) and "django" not in str(path) for path in test_paths
7373
):

0 commit comments

Comments
 (0)