@@ -768,49 +768,6 @@ def foo(event, hint):
768768 sentry_sdk .scope .global_event_processors = old_processors
769769
770770
771- @pytest .mark .tests_internal_exceptions
772- def test_event_processor_exception_drops_event_and_records_client_report (
773- sentry_init , capture_events , capture_record_lost_event_calls
774- ):
775- sentry_init (default_integrations = False )
776- events = capture_events ()
777- record_lost_event_calls = capture_record_lost_event_calls ()
778-
779- scope = sentry_sdk .get_isolation_scope ()
780-
781- @scope .add_event_processor
782- def bad_processor (event , hint ):
783- raise ValueError ("processor error" )
784-
785- capture_message ("should be dropped" )
786-
787- assert len (events ) == 0
788- assert ("event_processor" , "error" , None , 1 ) in record_lost_event_calls
789-
790-
791- @pytest .mark .tests_internal_exceptions
792- def test_error_processor_exception_drops_event (
793- sentry_init , capture_events , capture_record_lost_event_calls
794- ):
795- sentry_init (default_integrations = False )
796- events = capture_events ()
797- record_lost_event_calls = capture_record_lost_event_calls ()
798-
799- scope = sentry_sdk .get_isolation_scope ()
800-
801- @scope .add_error_processor
802- def bad_error_processor (event , exc_info ):
803- raise ValueError ("error processor error" )
804-
805- try :
806- raise ValueError ("original error" )
807- except Exception :
808- capture_exception ()
809-
810- assert len (events ) == 0
811- assert ("event_processor" , "error" , None , 1 ) in record_lost_event_calls
812-
813-
814771@pytest .mark .tests_internal_exceptions
815772def test_before_send_exception_records_callback_error (
816773 sentry_init , capture_events , capture_record_lost_event_calls
0 commit comments