Skip to content

Commit 61a8cd5

Browse files
committed
chore(ruff): Manual fix for test_ls
1 parent 461deb1 commit 61a8cd5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/cli/test_ls.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import contextlib
2-
import os
32
import pathlib
43

54
import pytest
@@ -28,7 +27,7 @@ def test_ls_cli(
2827
# - directories should be ignored
2928
# - extensions not covered in VALID_WORKSPACE_DIR_FILE_EXTENSIONS
3029
ignored_filenames = [".git/", ".gitignore/", "session_4.txt"]
31-
stems = [os.path.splitext(f)[0] for f in filenames if f not in ignored_filenames]
30+
stems = [pathlib.Path(f).stem for f in filenames if f not in ignored_filenames]
3231

3332
for filename in filenames:
3433
location = tmp_path / f".tmuxp/{filename}"

0 commit comments

Comments
 (0)