Skip to content

Commit ebe9889

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>
1 parent 98d7564 commit ebe9889

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

chaoslib/hypothesis.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,10 +336,7 @@ 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:
339+
if expect_one_of is not None:
343340
result = values == expect_one_of
344341

345342
if result is False:

0 commit comments

Comments
 (0)