Skip to content

Commit d7d5e20

Browse files
changes based on feedback
Signed-off-by: saravanan palanisamy <saravanan30erd@gmail.com> changes based on feedback Signed-off-by: saravanan palanisamy <saravanan30erd@gmail.com> changes based on feedback Signed-off-by: saravanan palanisamy <saravanan30erd@gmail.com>
1 parent 98d7564 commit d7d5e20

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

chaoslib/hypothesis.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -336,11 +336,8 @@ def _(tolerance: dict, value: Any, configuration: Configuration = None, #noqa:
336336

337337
if "expect" in tolerance and result is False:
338338
expect_one_of = tolerance.get("expect_one_of")
339-
if "expect_one_of" in tolerance:
340-
if not isinstance(expect_one_of, list):
341-
result = values == [expect_one_of]
342-
else:
343-
result = values == expect_one_of
339+
if expect_one_of is not None:
340+
result = values == expect_one_of
344341

345342
if result is False:
346343
if "expect" in tolerance and "expect_one_of" in tolerance:

0 commit comments

Comments
 (0)