Skip to content

Commit 81a9e69

Browse files
committed
Changed syntax in testutils.py that is introduced in 3.6 to a backwards compatible version.
1 parent 852dd10 commit 81a9e69

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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 = f'{exc_type.__name__} was not raised'
17+
failmsg = '%s was not raised' % exc_type.__name__
1818
if msg is not None:
19-
failmsg += f': {msg}'
19+
failmsg += ': %s' % msg
2020
assert False, failmsg

0 commit comments

Comments
 (0)