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'.
This commit is contained in:
xixu-me committed 2025-10-03 22:05:22 +08:00
1 parent e5ad0336f3
commit 2cb2b9eaa7
1 file changed
+1 -1
+1 -1
View File
@@ -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")