Skip to content

Commit 365680c

Browse files
committed
Changed to syntax RustPython supports.
1 parent 81a9e69 commit 365680c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/snippets/testutils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def assert_raises(exc_type, expr, msg=None):
1414
except exc_type:
1515
pass
1616
else:
17-
failmsg = '%s was not raised' % exc_type.__name__
17+
failmsg = '{!s} was not raised'.format(exc_type.__name__)
1818
if msg is not None:
19-
failmsg += ': %s' % msg
19+
failmsg += ': {!s}'.formt(msg)
2020
assert False, failmsg

0 commit comments

Comments
 (0)