py2.6 support for testing
parent
0d88a282ee
commit
6b7fe3467d
|
@ -47,8 +47,8 @@ import tempfile
|
||||||
## these dependencies require Python>=2.6 in order to have proper SSL support.
|
## these dependencies require Python>=2.6 in order to have proper SSL support.
|
||||||
##
|
##
|
||||||
## Use unittest2 if we're on Python2.6 or less:
|
## Use unittest2 if we're on Python2.6 or less:
|
||||||
if sys.version_info.major == 2 and sys.version_info.minor <= 6:
|
if sys.version_info[0] == 2 and sys.version_info[1] <= 6:
|
||||||
unittest = __import__(unittest2)
|
import unittest2 as unittest
|
||||||
else:
|
else:
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue