Skip to content
Prev Previous commit
Fix unraisablehook tests
  • Loading branch information
alexander-alderman-webb committed Sep 3, 2025
commit 2f2fef5fdf294883739a1bb6e5af7d3079eab2cf
3 changes: 2 additions & 1 deletion tests/integrations/unraisablehook/test_unraisablehook.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def test_unraisablehook(tmpdir, options, transport):
dedent(
"""
from sentry_sdk import init, transport
from sentry_sdk.integrations.unraisablehook import UnraisablehookIntegration

class Undeletable:
def __del__(self):
Expand All @@ -37,7 +38,7 @@ def capture_envelope(self, envelope):

transport.{transport}.capture_envelope = capture_envelope

init("http://foobar@localhost/123", {options})
init("http://foobar@localhost/123", integrations=[UnraisablehookIntegration()], {options})

undeletable = Undeletable()
del undeletable
Expand Down