Use unittest2 where available, to support python <2.7

This commit is contained in:
sneakypete81 2013-05-11 18:11:42 +01:00
parent 7668deba43
commit 658e3ca9f1
8 changed files with 32 additions and 8 deletions

View file

@ -1,4 +1,7 @@
import unittest
try:
import unittest2 as unittest
except ImportError:
import unittest
import logging
import openphoto
import test_base