title: Visual studio code using pytest for Pyspark getting stuck at SparkSession Creation
body: <p>I am trying to run a pyspark unit test in Visual studio code on my local windows machine. when i debug the test it gets stuck at  line where I am creating a sparksession. It doesn't show any error/failure but status bar just shows &quot;Running Tests&quot; . Once it work, i can refactor my test to create sparksession as part of test fixture, but presently my test is getting stuck at sparksession creation.</p>
  <p>Do i have to install/configure on my local machine for sparksession to  work?</p>
  <p>i tried a simple test with assert 'a' == 'b' and i can debug and test run succsfully, so i assume my pytest configurations are correct. Issue i am facing is with creating sparksession.</p>
  <pre class="lang-py prettyprint-override"><code># test code
  
  from pyspark.sql import SparkSession, Row, DataFrame
  
  import pytest
  
  def test_poc():
     spark_session = SparkSession.builder.master('local[2]').getOrCreate()  #this line never returns when debugging test.
     spark_session.createDataFrame(data,schema) #data and schema not shown here.
  </code></pre>
  <p>Thanks</p>