You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2018/11/19 00:56:00 UTC
[jira] [Assigned] (SPARK-26105) Clean unittest2 imports up added
Python 2.6 before
[ https://issues.apache.org/jira/browse/SPARK-26105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-26105:
------------------------------------
Assignee: Apache Spark
> 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
> Assignee: Apache Spark
> Priority: Major
>
> 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