Browse Source

fix tests for python 2.6, importing unittest2 if necessary

pull/9/merge
Simon 14 years ago
parent
commit
4ffe0701fa
  1. 6
      tests/test_gallery.py
  2. 6
      tests/test_settings.py

6
tests/test_gallery.py

@ -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

6
tests/test_settings.py

@ -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

Loading…
Cancel
Save