- move the try/except dance in support.py

- use relative . imports in test files
- remove the "future with import", since python < 2.6 is not supported
This commit is contained in:
Andrea Crotti 2012-03-18 21:08:43 +00:00
commit ff5921a469
7 changed files with 24 additions and 31 deletions

View file

@ -1,13 +1,10 @@
# -*- coding: utf-8 -*-
try:
import unittest2 as unittest
except ImportError, e:
import unittest # NOQA
from mock import MagicMock
from pelican.generators import ArticlesGenerator
from pelican.settings import _DEFAULT_CONFIG
from mock import MagicMock
from .support import unittest
class TestArticlesGenerator(unittest.TestCase):