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