forked from github/pelican
- 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:
parent
7fcfea647f
commit
ff5921a469
7 changed files with 24 additions and 31 deletions
|
|
@ -1,9 +1,20 @@
|
|||
__all__ = [
|
||||
'temporary_folder',
|
||||
'get_article',
|
||||
'unittest',
|
||||
]
|
||||
|
||||
from contextlib import contextmanager
|
||||
from tempfile import mkdtemp
|
||||
from shutil import rmtree
|
||||
|
||||
from pelican.contents import Article
|
||||
|
||||
try:
|
||||
import unittest2 as unittest
|
||||
except ImportError:
|
||||
import unittest
|
||||
|
||||
|
||||
@contextmanager
|
||||
def temporary_folder():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue