Skip to content

Commit d10d59c

Browse files
authored
Merge pull request #3858 from mimi1vx/test_mock
Use unittest.mock if is only aviable
2 parents d54aa8c + cd07c4d commit d10d59c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

testing/example_scripts/acceptance/fixture_mock_integration.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
"""Reproduces issue #3774"""
22

3-
import mock
3+
try:
4+
import mock
5+
except ImportError:
6+
import unittest.mock as mock
47

58
import pytest
69

0 commit comments

Comments
 (0)