Merge pull request #3612 from mimi1vx/patch-1
Prefer unittest.mock before mock
This commit is contained in:
commit
42b3125783
1
AUTHORS
1
AUTHORS
|
@ -157,6 +157,7 @@ Oleg Sushchenko
|
|||
Oliver Bestwalter
|
||||
Omar Kohl
|
||||
Omer Hadari
|
||||
Ondřej Súkup
|
||||
Patrick Hayes
|
||||
Paweł Adamczak
|
||||
Pedro Algarvio
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
from __future__ import absolute_import, division, print_function
|
||||
import os
|
||||
import sys
|
||||
import mock
|
||||
|
||||
try:
|
||||
import mock
|
||||
except ImportError:
|
||||
import unittest.mock as mock
|
||||
import pytest
|
||||
from _pytest.mark import (
|
||||
MarkGenerator as Mark,
|
||||
|
|
Loading…
Reference in New Issue