diff options
author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2020-02-10 20:49:07 +0200 |
---|---|---|
committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2020-02-10 22:46:47 +0200 |
commit | 79f5fad58854a731bf24dcb48ff07e248cb6b42a (patch) | |
tree | 7228519e4479b3f56b784842838782cfee88031d /tests | |
parent | ca27122dab1b1649c3ec8451e493a484355afac8 (diff) | |
download | pysaml2-79f5fad58854a731bf24dcb48ff07e248cb6b42a.tar.gz |
Fix compile warnings
Test for compile warning using:
find src/ -iname '*.py' | xargs -P 4 -I{} python -Wall -m py_compile {}
find tests/ -iname '*.py' | xargs -P 4 -I{} python -Wall -m py_compile {}
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_20_assertion.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_20_assertion.py b/tests/test_20_assertion.py index eeb8dea8..bb4dbb73 100644 --- a/tests/test_20_assertion.py +++ b/tests/test_20_assertion.py @@ -151,7 +151,7 @@ def test_lifetime_1(): "attribute_restrictions": { "givenName": None, "surName": None, - "mail": [".*@.*\.umu\.se"], + "mail": [r".*@.*\.umu\.se"], } }} @@ -173,7 +173,7 @@ def test_lifetime_2(): "attribute_restrictions": { "givenName": None, "surName": None, - "mail": [".*@.*\.umu\.se"], + "mail": [r".*@.*\.umu\.se"], } }} @@ -195,7 +195,7 @@ def test_ava_filter_1(): "attribute_restrictions": { "givenName": None, "surName": None, - "mail": [".*@.*\.umu\.se"], + "mail": [r".*@.*\.umu\.se"], } }} @@ -225,7 +225,7 @@ def test_ava_filter_2(): "attribute_restrictions": { "givenName": None, "sn": None, - "mail": [".*@.*\.umu\.se"], + "mail": [r".*@.*\.umu\.se"], } }} @@ -261,7 +261,7 @@ def test_ava_filter_dont_fail(): "attribute_restrictions": { "givenName": None, "surName": None, - "mail": [".*@.*\.umu\.se"], + "mail": [r".*@.*\.umu\.se"], }, "fail_on_missing_requested": False }} @@ -688,7 +688,7 @@ def test_filter_ava_3(): "urn:mace:example.com:saml:roland:sp": { "lifetime": {"minutes": 5}, "attribute_restrictions": { - "mail": [".*@example\.com$"], + "mail": [r".*@example\.com$"], } }}) @@ -712,7 +712,7 @@ def test_filter_ava_4(): "urn:mace:example.com:saml:roland:sp": { "lifetime": {"minutes": 5}, "attribute_restrictions": { - "mail": [".*@example\.com$"], + "mail": [r".*@example\.com$"], } }}) |