summary refs log tree commit diff stats
path: root/testing
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2020-04-17 14:25:21 -0300
committerSoniEx2 <endermoneymod@gmail.com>2020-04-17 14:26:01 -0300
commitb259b179f5ceba60a1d04fef07559c0b01720c31 (patch)
treea0315c67fddc7919e6d6892e8d1eb15f328057a6 /testing
parent3f9f66712aaa071bd3bb32c46e1e4dc1fed13378 (diff)
Fix bugs with empty and predicate-only matches
Also clarified the behaviour of empty matches, which match anything,
but only once. This behaviour is required for consistency with the
rest of the matching rules.
Diffstat (limited to 'testing')
-rw-r--r--testing/test_abdl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/test_abdl.py b/testing/test_abdl.py
index 65549ed..cbdcd9d 100644
--- a/testing/test_abdl.py
+++ b/testing/test_abdl.py
@@ -281,7 +281,7 @@ def test_multi_key_predicate(foo, pat):
 @hypothesis.given(objtree, st.just(abdl.compile("")))
 def test_empty(foo, pat):
     def deep(foo):
-        yield from ()
+        yield {}
     assert all(LogAndCompare(pat.match(foo), deep(foo)))
 
 # FIXME