mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
import unittest if cannot found unittest2
This commit is contained in:
parent
d1d82db4f7
commit
e78372f338
4 changed files with 17 additions and 6 deletions
|
|
@ -1,5 +1,8 @@
|
|||
from __future__ import with_statement
|
||||
from unittest2 import TestCase
|
||||
try:
|
||||
from unittest2 import TestCase
|
||||
except ImportError, e:
|
||||
from unittest import TestCase
|
||||
|
||||
from pelican.contents import Page
|
||||
from pelican.settings import _DEFAULT_CONFIG
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue