You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2018/11/18 08:17:00 UTC
[jira] [Created] (SPARK-26105) Clean unittest2 imports up added
Python 2.6 before
Hyukjin Kwon created SPARK-26105:
------------------------------------
Summary: Clean unittest2 imports up added Python 2.6 before
Key: SPARK-26105
URL: https://issues.apache.org/jira/browse/SPARK-26105
Project: Spark
Issue Type: Test
Components: PySpark
Affects Versions: 3.0.0
Reporter: Hyukjin Kwon
Currently, PySpark tests sill assume the tests could be ran in Python 2.6 by importing {{unittest2}}. For instance:
{code}
if sys.version_info[:2] <= (2, 6):
try:
import unittest2 as unittest
except ImportError:
sys.stderr.write('Please install unittest2 to test with Python 2.6 or earlier')
sys.exit(1)
else:
import unittest
{code}
We officially dropped Python 2.6 support a while ago and started to discuss about Python 2 drop. It's better to remove them out.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org