Skip to content

Commit

Permalink
extension
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkf committed Jun 30, 2024
1 parent 1b65773 commit 1f1316b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def assertUnsafeExtension(self, ext=None):
def my_exit(self_, exc_type, exc_val, exc_tb):
did_raise = orig_exit(exc_type, exc_val, exc_tb)
if did_raise and assert_raises.ext is not None:
self.assertEqual(assert_raises.ext, assert_raises.exception.ext, 'Unsafe extension not as unexpected')
self.assertEqual(assert_raises.ext, assert_raises.exception.extension, 'Unsafe extension not as unexpected')
return did_raise

assert_raises.__exit__ = types.MethodType(my_exit, assert_raises)
Expand Down

0 comments on commit 1f1316b

Please sign in to comment.