From 81e3780e3425ea5ddb1eae987f69e66b25f3df6a Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Mon, 27 Jul 2026 11:08:27 +1000 Subject: [PATCH] Rename test_against_ls to _test_against_ls so pytest doesn't try to collect it --- tests/lscolors_test.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/lscolors_test.py b/tests/lscolors_test.py index a19f74b..64f2fb6 100755 --- a/tests/lscolors_test.py +++ b/tests/lscolors_test.py @@ -204,7 +204,7 @@ class ParseLsLineTestCase(unittest.TestCase): ("38;5;30", "hello")) -def test_against_ls(root_path, environment): +def _test_against_ls(root_path, environment): process = subprocess.run(["ls", "--color=always", "-R", root_path], stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=environment) color_codes = lscolors.get_color_codes(environment) @@ -234,6 +234,5 @@ RICH_COLOR_CODES = ( if __name__ == "__main__": unittest.main() - # root_path = "/" - # test_against_ls(root_path, {"LS_COLORS": RICH_COLOR_CODES}) - # test_against_ls(root_path, {}) # Test using default colors + # _test_against_ls(root_path, {"LS_COLORS": RICH_COLOR_CODES}) + # _test_against_ls(root_path, {}) # Test using default colors