File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
tests/integrations/threading Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 13
13
original_run = Thread .run
14
14
15
15
16
+ @pytest .mark .filterwarnings ("ignore:.*:pytest.PytestUnhandledThreadExceptionWarning" )
16
17
@pytest .mark .parametrize ("integrations" , [[ThreadingIntegration ()], []])
17
18
def test_handles_exceptions (sentry_init , capture_events , integrations ):
18
19
sentry_init (default_integrations = False , integrations = integrations )
@@ -36,6 +37,7 @@ def crash():
36
37
assert not events
37
38
38
39
40
+ @pytest .mark .filterwarnings ("ignore:.*:pytest.PytestUnhandledThreadExceptionWarning" )
39
41
@pytest .mark .parametrize ("propagate_hub" , (True , False ))
40
42
def test_propagates_hub (sentry_init , capture_events , propagate_hub ):
41
43
sentry_init (
@@ -125,6 +127,7 @@ def run(self):
125
127
assert unreachable_objects == 0
126
128
127
129
130
+ @pytest .mark .filterwarnings ("ignore:.*:pytest.PytestUnhandledThreadExceptionWarning" )
128
131
def test_double_patching (sentry_init , capture_events ):
129
132
sentry_init (default_integrations = False , integrations = [ThreadingIntegration ()])
130
133
events = capture_events ()
You can’t perform that action at this time.
0 commit comments