Use unittest.mock if is only aviable
from Python 3.3 is mock part of python standard library in unittest namespace
This commit is contained in:
parent
2137e2b15b
commit
cd07c4d4ff
|
@ -1,6 +1,9 @@
|
|||
"""Reproduces issue #3774"""
|
||||
|
||||
try:
|
||||
import mock
|
||||
except ImportError:
|
||||
import unittest.mock as mock
|
||||
|
||||
import pytest
|
||||
|
||||
|
|
Loading…
Reference in New Issue