Merge pull request #3858 from mimi1vx/test_mock
Use unittest.mock if is only aviable
This commit is contained in:
commit
d10d59c013
|
@ -1,6 +1,9 @@
|
|||
"""Reproduces issue #3774"""
|
||||
|
||||
try:
|
||||
import mock
|
||||
except ImportError:
|
||||
import unittest.mock as mock
|
||||
|
||||
import pytest
|
||||
|
||||
|
|
Loading…
Reference in New Issue