Skip to content

Commit bb27f97

Browse files
committed
test(locks): resolve code-quality bot nits — single openkb import style
Drop the unused 'import openkb' and derive the package dir from locks.__file__ instead, so the test module uses one import style for openkb (github-code-quality bot). The unused 'import portalocker' was already removed in the prior commit.
1 parent 20420b3 commit bb27f97

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/test_cross_platform_locks.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import sys
1515
from pathlib import Path
1616

17-
import openkb
1817
from openkb import locks
1918

2019

@@ -31,7 +30,7 @@ def _module_level_imports_fcntl(path: Path) -> bool:
3130

3231
def test_openkb_modules_do_not_hard_import_fcntl():
3332
"""Guards issue #93: OpenKB's own modules must import on Windows (no bare fcntl)."""
34-
pkg_dir = Path(openkb.__file__).parent
33+
pkg_dir = Path(locks.__file__).parent # locks.py lives in the openkb package
3534
offenders = [
3635
str(py.relative_to(pkg_dir))
3736
for py in pkg_dir.rglob("*.py")

0 commit comments

Comments
 (0)