From 424d556bbad1390d3669832db890607b9c0d6eb5 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 3 Sep 2023 06:00:12 -0500 Subject: [PATCH] chore(ruff): Manual fix for test_ls --- tests/cli/test_ls.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/cli/test_ls.py b/tests/cli/test_ls.py index fa3c08d0d0..89579d7093 100644 --- a/tests/cli/test_ls.py +++ b/tests/cli/test_ls.py @@ -1,5 +1,4 @@ import contextlib -import os import pathlib import pytest @@ -28,7 +27,7 @@ def test_ls_cli( # - directories should be ignored # - extensions not covered in VALID_WORKSPACE_DIR_FILE_EXTENSIONS ignored_filenames = [".git/", ".gitignore/", "session_4.txt"] - stems = [os.path.splitext(f)[0] for f in filenames if f not in ignored_filenames] + stems = [pathlib.Path(f).stem for f in filenames if f not in ignored_filenames] for filename in filenames: location = tmp_path / f".tmuxp/{filename}"