mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-15 15:09:23 +01:00
Merge pull request #1098 from GLolol/tests/use-internal-mock
tests: Use internal mock from Python 3.3+ if available
This commit is contained in:
commit
758dc6d57f
@ -38,9 +38,12 @@ else:
|
||||
skipif = lambda x, y: lambda z:None
|
||||
|
||||
try:
|
||||
import mock
|
||||
from unittest import mock # Python 3.3+
|
||||
except ImportError:
|
||||
mock=None
|
||||
try:
|
||||
import mock # Everything else, an external 'mock' library
|
||||
except ImportError:
|
||||
mock = None
|
||||
|
||||
# so complicated construction because I want to
|
||||
# gain the string 'y' instead of the character 'y'
|
||||
|
Loading…
Reference in New Issue
Block a user