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:
Ondřej Súkup 2018-08-22 23:49:40 +02:00
parent 2137e2b15b
commit cd07c4d4ff
No known key found for this signature in database
GPG Key ID: 18E6D11A219AF3B7
1 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,9 @@
"""Reproduces issue #3774""" """Reproduces issue #3774"""
try:
import mock import mock
except ImportError:
import unittest.mock as mock
import pytest import pytest