From 2cb2b9eaa7e550d2cc3d9b09f19ecd5ac77ab65a Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Fri, 3 Oct 2025 22:05:22 +0800 Subject: [PATCH] Fix regex in compression level validation test Updated the regex pattern in the compression level validation test to escape the dot character, ensuring correct matching of invalid input '1.5'. --- tests/cli/test_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cli/test_cli.py b/tests/cli/test_cli.py index 8c7a3ab..31c3e88 100644 --- a/tests/cli/test_cli.py +++ b/tests/cli/test_cli.py @@ -96,7 +96,7 @@ class TestUtilityFunctions: validate_compression_level("abc") with pytest.raises( - argparse.ArgumentTypeError, match="Invalid compression level: '1.5'" + argparse.ArgumentTypeError, match=r"Invalid compression level: '1\\.5'" ): validate_compression_level("1.5")