Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-26676

Make HiveContextSQLTests.test_unbounded_frames test compatible with Python 2 and PyPy

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • PySpark
    • None

    Description

      This particular test is being skipped at PyPy and Python 2.

      Skipped tests in pyspark.sql.tests.test_context with pypy:
          test_unbounded_frames (pyspark.sql.tests.test_context.HiveContextSQLTests) ... skipped "Unittest < 3.3 doesn't support mocking"
      
      Skipped tests in pyspark.sql.tests.test_context with python2.7:
          test_unbounded_frames (pyspark.sql.tests.test_context.HiveContextSQLTests) ... skipped "Unittest < 3.3 doesn't support mocking"
      

      We don't have to use unittest 3.3 module to mock. And looks the test itself isn't compatible with Python 2. We should fix it

      Attachments

        Issue Links

          Activity

            People

              gurwls223 Hyukjin Kwon
              gurwls223 Hyukjin Kwon
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: