Skip to content

Commit

Permalink
Loosen up test. Ref #74.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed Dec 13, 2023
1 parent 1e5a2e6 commit 04dc542
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_pickle_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ def test_install(clear_dispatch_table, how, protocol):
else:
raise AssertionError

expected_format_exception = ''.join(format_exception(type(exc), exc, exc.__traceback__))
expected_format_exception = ''.join(format_exception(type(exc), exc, exc.__traceback__)).replace(
'~~^~~',
'^^^^^^^^^^^^^^^^^',
)

print(expected_format_exception)
# Populate Exception.__dict__, which is used in some cases
exc.x = 1
Expand Down

0 comments on commit 04dc542

Please sign in to comment.