Skip to content

Commit

Permalink
close but need to convert yield tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iskandr committed Jan 23, 2024
1 parent 581fcef commit ac5e9d1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,8 @@ def expect_effect(
format_string = "Expected %s='%s' but got '%s'"
assert actual_value == expected_value, format_string % (field, expected_value, actual_value)

def eq_(x, y):
assert x == y, "%s != %s" % (x, y)
def eq_(x, y, s=None):
if s is None:
assert x == y, "%s != %s" % (x, y)
else:
assert x == y, s

0 comments on commit ac5e9d1

Please sign in to comment.