Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/18521#discussion_r125386547
--- Diff: python/pyspark/sql/tests.py ---
@@ -30,6 +30,19 @@
import functools
import time
import datetime
+import traceback
+
+if sys.version_info[:2] <= (2, 6):
--- End diff --
Ah, hmm.. it should specifically check Python 2.6 <= as unittest2 is
unittest from Python 2.7. To check minor versions, I think we should "extract"
or compare with raw string `'2.6'`.
I will clean up inconsistency in another PR about this later if you are
okay as is.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]