diff --git a/tests/test_basics.py b/tests/test_basics.py index 59c2521062..0bec698a35 100644 --- a/tests/test_basics.py +++ b/tests/test_basics.py @@ -22,6 +22,7 @@ last_event_id, add_breadcrumb, isolation_scope, + new_scope, Hub, Scope, ) @@ -606,14 +607,14 @@ def before_send(event, hint): sentry_init(debug=True, before_send=before_send) events = capture_events() - with push_scope() as scope: + with new_scope() as scope: @scope.add_event_processor def foo(event, hint): event["message"] += "foo" return event - with push_scope() as scope: + with new_scope() as scope: @scope.add_event_processor def bar(event, hint):