File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
tests/integrations/threading Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ def _run_old_run_func():
120120 # type: () -> Any
121121 try :
122122 self = current_thread ()
123- return old_run_func (self , * a , ** kw )
123+ return old_run_func (self , * a [ 1 :] , ** kw )
124124 except Exception :
125125 reraise (* _capture_exception ())
126126
Original file line number Diff line number Diff line change 1313original_run = Thread .run
1414
1515
16+ @pytest .mark .filterwarnings ("ignore:.*:pytest.PytestUnhandledThreadExceptionWarning" )
1617@pytest .mark .parametrize ("integrations" , [[ThreadingIntegration ()], []])
1718def test_handles_exceptions (sentry_init , capture_events , integrations ):
1819 sentry_init (default_integrations = False , integrations = integrations )
@@ -36,6 +37,7 @@ def crash():
3637 assert not events
3738
3839
40+ @pytest .mark .filterwarnings ("ignore:.*:pytest.PytestUnhandledThreadExceptionWarning" )
3941@pytest .mark .parametrize ("propagate_hub" , (True , False ))
4042def test_propagates_hub (sentry_init , capture_events , propagate_hub ):
4143 sentry_init (
@@ -125,6 +127,7 @@ def run(self):
125127 assert unreachable_objects == 0
126128
127129
130+ @pytest .mark .filterwarnings ("ignore:.*:pytest.PytestUnhandledThreadExceptionWarning" )
128131def test_double_patching (sentry_init , capture_events ):
129132 sentry_init (default_integrations = False , integrations = [ThreadingIntegration ()])
130133 events = capture_events ()
You can’t perform that action at this time.
0 commit comments