From f762f7bb7acb8ecb79a0cde13afc9e439135dbfa Mon Sep 17 00:00:00 2001 From: seyoon-lim Date: Sat, 10 Aug 2024 17:04:53 +0900 Subject: [PATCH] Mod: removed useless code line --- tests/integrations/spark/test_spark.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/integrations/spark/test_spark.py b/tests/integrations/spark/test_spark.py index 9ad54a1f1b..5a166cfedc 100644 --- a/tests/integrations/spark/test_spark.py +++ b/tests/integrations/spark/test_spark.py @@ -30,8 +30,7 @@ def sentry_init_with_reset(sentry_init): @pytest.fixture(scope="function") def create_spark_context(): yield lambda: SparkContext(appName="Testing123") - if SparkContext._active_spark_context: - SparkContext._active_spark_context.stop() + SparkContext._active_spark_context.stop() def test_set_app_properties(create_spark_context):