Skip to content

Commit 74b15cc

Browse files
committed
Fix format string in assert_in()/assert_not_in()
1 parent 12b8337 commit 74b15cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ def assert_node(node, cls=None, **kwargs):
109109
except ImportError:
110110
def assert_in(x, thing, msg=''):
111111
if x not in thing:
112-
assert False, msg or '%r is not in %r%r' % (x, thing)
112+
assert False, msg or '%r is not in %r' % (x, thing)
113113
def assert_not_in(x, thing, msg=''):
114114
if x in thing:
115-
assert False, msg or '%r is in %r%r' % (x, thing)
115+
assert False, msg or '%r is in %r' % (x, thing)
116116

117117

118118
def skip_if(condition, msg=None):

0 commit comments

Comments
 (0)