mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Python 3.3 got mock
This commit is contained in:
parent
cb82e48636
commit
9657071301
1 changed files with 4 additions and 1 deletions
|
|
@ -3,7 +3,10 @@ from __future__ import unicode_literals
|
|||
|
||||
import os
|
||||
from codecs import open
|
||||
from mock import MagicMock
|
||||
try:
|
||||
from unittest.mock import MagicMock
|
||||
except ImportError:
|
||||
from mock import MagicMock
|
||||
from shutil import rmtree
|
||||
from tempfile import mkdtemp
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue