Skip to content

Commit

Permalink
Merge pull request pallets#1525 from hroncok/patch-1
Browse files Browse the repository at this point in the history
Tests: Make "Traceback did not match" an actual f-string
  • Loading branch information
davidism committed Nov 2, 2021
2 parents 15f02c4 + e32c985 commit f72597b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def assert_traceback_matches(self, callback, expected_tb):
m = re.search(expected_tb.strip(), "".join(tb))
assert (
m is not None
), "Traceback did not match:\n\n{''.join(tb)}\nexpected:\n{expected_tb}"
), f"Traceback did not match:\n\n{''.join(tb)}\nexpected:\n{expected_tb}"

def test_runtime_error(self, fs_env):
def test():
Expand Down

0 comments on commit f72597b

Please sign in to comment.