fix tests for python 2.6, importing unittest2 if necessary
This commit is contained in:
@@ -2,7 +2,11 @@
|
||||
# -*- coding:utf-8 -*-
|
||||
|
||||
import os
|
||||
import unittest
|
||||
|
||||
try:
|
||||
import unittest2 as unittest
|
||||
except ImportError:
|
||||
import unittest
|
||||
|
||||
from sigal.gallery import Gallery, get_metadata
|
||||
from sigal.settings import read_settings
|
||||
|
||||
@@ -2,7 +2,11 @@
|
||||
# -*- coding:utf-8 -*-
|
||||
|
||||
import os
|
||||
import unittest
|
||||
|
||||
try:
|
||||
import unittest2 as unittest
|
||||
except ImportError:
|
||||
import unittest
|
||||
|
||||
from sigal.settings import read_settings, get_size
|
||||
|
||||
|
||||
Reference in New Issue
Block a user