Merge pull request #3858 from mimi1vx/test_mock

Use unittest.mock if is only aviable
This commit is contained in:
Bruno Oliveira 2018-08-23 19:02:39 -03:00 committed by GitHub
commit d10d59c013
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

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