diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2019-11-27 22:12:51 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2020-01-22 19:46:23 -0300 |
commit | ee305066b729a8859cbbc038425d2e4d5623fefb (patch) | |
tree | 157745c4a42bb2f05945beb6ba9fbe5d8aa6b12a /testing | |
parent | 39df4a049ce23e9fd50e6e390d84c2f63564fcf5 (diff) |
Tweaked key matching syntax
Diffstat (limited to 'testing')
-rw-r--r-- | testing/test_abdl.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/testing/test_abdl.py b/testing/test_abdl.py index 9317643..080ab3f 100644 --- a/testing/test_abdl.py +++ b/testing/test_abdl.py @@ -11,6 +11,9 @@ import re import traceback + +abdl.DeprecationError.enable_key_match_compat = False + # use abdl's _pairs for consistency. pairs = abdl._pairs @@ -156,7 +159,7 @@ def test_multi_type_with_validation_errors(foo, pat): raise abdl.ValidationError assert all(LogAndCompare(pat.match(foo), deep(foo))) -@hypothesis.given(st.dictionaries(st.frozensets(st.text()), st.text()), st.just(abdl.compile("->(:?$sets->A)->D", {'sets': collections.abc.Set}))) +@hypothesis.given(st.dictionaries(st.frozensets(st.text()), st.text()), st.just(abdl.compile("->[:?$sets->A]->D", {'sets': collections.abc.Set}))) def test_subtree_partial(foo, pat): def deep(foo): for x in pairs(foo): |