Skip to content

Commit 58f9381

Browse files
committed
Use raw strings for regex
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent c9c5ba0 commit 58f9381

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/satosa/micro_services/test_attribute_modifications.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def test_shibmdscope_match_value_filter_with_idp_md_with_single_regexp_scope(sel
303303
resp.auth_info.issuer = idp_entityid
304304

305305
mdstore = MetadataStore(None, Config())
306-
mdstore.imp(self.create_idp_metadata_conf_with_shibmd_scopes(idp_entityid, ["[^.]*\.foo\.bar$"]))
306+
mdstore.imp(self.create_idp_metadata_conf_with_shibmd_scopes(idp_entityid, [r"[^.]*\.foo\.bar$"]))
307307
# mark scope as regexp (cannot be done via pysaml2 YAML config)
308308
mdstore[idp_entityid]['idpsso_descriptor'][0]['extensions']['extension_elements'][0]['regexp'] = 'true'
309309
ctx = Context()

0 commit comments

Comments
 (0)