mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +01:00
tests: Use internal mock from Python 3.3+ if available
Closes ProgVal/Limnoria#1088.
This commit is contained in:
parent
a7b1e65bd9
commit
6d20183abf
@ -38,7 +38,10 @@ else:
|
||||
skipif = lambda x, y: lambda z:None
|
||||
|
||||
try:
|
||||
import mock
|
||||
from unittest import mock # Python 3.3+
|
||||
except ImportError:
|
||||
try:
|
||||
import mock # Everything else, an external 'mock' library
|
||||
except ImportError:
|
||||
mock = None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user