We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d72a30 commit f068eb5Copy full SHA for f068eb5
python/pyspark/mllib/tests.py
@@ -25,7 +25,11 @@
25
from numpy import array, array_equal
26
27
if sys.version_info[:2] <= (2, 6):
28
- import unittest2 as unittest
+ try:
29
+ import unittest2 as unittest
30
+ except ImportError:
31
+ sys.stderr.write('Please install unittest2 to test with Python 2.6 or earlier')
32
+ sys.exit(1)
33
else:
34
import unittest
35
python/pyspark/tests.py
@@ -34,7 +34,11 @@
from platform import python_implementation
36
37
38
39
40
41
42
43
44
0 commit comments