Skip to content

Commit 2f2fef5

Browse files
Fix unraisablehook tests
1 parent 1efdd0c commit 2f2fef5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/integrations/unraisablehook/test_unraisablehook.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def test_unraisablehook(tmpdir, options, transport):
2424
dedent(
2525
"""
2626
from sentry_sdk import init, transport
27+
from sentry_sdk.integrations.unraisablehook import UnraisablehookIntegration
2728
2829
class Undeletable:
2930
def __del__(self):
@@ -37,7 +38,7 @@ def capture_envelope(self, envelope):
3738
3839
transport.{transport}.capture_envelope = capture_envelope
3940
40-
init("http://foobar@localhost/123", {options})
41+
init("http://foobar@localhost/123", integrations=[UnraisablehookIntegration()], {options})
4142
4243
undeletable = Undeletable()
4344
del undeletable

0 commit comments

Comments
 (0)