Skip to content

test(ci): drop duplicate pathlib import - #300

Open
kurok wants to merge 1 commit into
mainfrom
test/drop-duplicate-pathlib-import
Open

kurok wants to merge 1 commit into
mainfrom
test/drop-duplicate-pathlib-import

Conversation

@kurok

@kurok kurok commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

Fixes code-scanning alert #132 (CodeQL py/import-and-import-from). tests/test_ci.py imported pathlib both as import pathlib and as from pathlib import Path.

This removes import pathlib and changes the four pathlib.Path uses to Path, which the file already imports. Only this test file changes, and test behaviour stays the same.

Testing

  • ruff check and ruff format --check pass
  • pytest tests/test_ci.py: 70 passed

tests/test_ci.py imported pathlib both as a module and via
'from pathlib import Path' (CodeQL py/import-and-import-from, alert #132).
Use Path throughout.

Signed-off-by: kurok <22548029+kurok@users.noreply.github.com>
@codecov

codecov Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant