fix: python3.11 now supports Possessive Quantifiers regex

This commit is contained in:
Tagadda 2023-05-13 14:37:32 +00:00
parent f617287eb2
commit 691ce5eace

View file

@ -202,10 +202,6 @@ def test_normalize_permission_path_with_bad_regex():
) )
# Full Regex # Full Regex
with pytest.raises(YunohostError):
_validate_and_sanitize_permission_url(
"re:" + maindomain + "/yolo?+/", maindomain + "/path", "test_permission"
)
with pytest.raises(YunohostError): with pytest.raises(YunohostError):
_validate_and_sanitize_permission_url( _validate_and_sanitize_permission_url(
"re:" + maindomain + "/yolo[1-9]**/", "re:" + maindomain + "/yolo[1-9]**/",