[ 
https://issues.apache.org/jira/browse/SPARK-60148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Lu updated SPARK-60148:
-------------------------------
    Summary: Cover first_spark_call from the shell entry point  (was: Add unit 
tests for pyspark.traceback_utils)

> Cover first_spark_call from the shell entry point
> -------------------------------------------------
>
>                 Key: SPARK-60148
>                 URL: https://issues.apache.org/jira/browse/SPARK-60148
>             Project: Spark
>          Issue Type: Test
>          Components: PySpark
>    Affects Versions: 4.4.0
>            Reporter: Nicolas Lu
>            Priority: Minor
>              Labels: pull-request-available
>
> Lines 41-42 of pyspark/traceback_utils.py (when first_spark_frame == 0 in 
> first_spark_call()) are not exercised by existing tests because the test 
> runner is normally at the bottom of the call stack.
> This ticket adds test_shell_reports_where_the_active_context_was_created to 
> SparkSubmitTests in python/pyspark/tests/test_appsubmit.py to exercise the 
> first_spark_frame == 0 branch via the real PySpark shell entry point 
> (bin/pyspark -> shell.py) without mocks.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to