Commit 3d254358 authored by Stefan Behnel's avatar Stefan Behnel

less intrusive test change

parent 36b75ecd
...@@ -87,4 +87,4 @@ def get_in_condition(dict d, key, expected_result): ...@@ -87,4 +87,4 @@ def get_in_condition(dict d, key, expected_result):
>>> get_in_condition(d, 'a', 1) >>> get_in_condition(d, 'a', 1)
True True
""" """
return d.get(key) == expected_result return d.get(key) == expected_result or d.get(key) == expected_result
...@@ -36,4 +36,4 @@ def getitem_in_condition(dict d, key, expected_result): ...@@ -36,4 +36,4 @@ def getitem_in_condition(dict d, key, expected_result):
>>> getitem_in_condition(d, 'a', 1) >>> getitem_in_condition(d, 'a', 1)
True True
""" """
return d[key] == expected_result return d[key] is expected_result or d[key] == expected_result
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment