py2.6 support for testing

fix/24-output-to-filename
Thomas Tanner 2014-04-23 14:06:30 +02:00
parent 0d88a282ee
commit 6b7fe3467d
1 changed files with 2 additions and 2 deletions

View File

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