From fc7a76e2f351d8a1cf1cefdc7263a0891af06761 Mon Sep 17 00:00:00 2001 From: matejcik Date: Tue, 2 Oct 2018 16:58:50 +0200 Subject: [PATCH] tests: use stdlib mock instead of the third-party one --- requirements-dev.txt | 1 - setup.cfg | 2 +- trezorlib/tests/unit_tests/test_transport.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 11e0a245c8..8086112adb 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,7 +1,6 @@ -r requirements.txt -r requirements-optional.txt pytest>=3.2.5 -mock>=2.0.0 flake8 protobuf isort diff --git a/setup.cfg b/setup.cfg index 5c301c9d67..779c34de0b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -33,4 +33,4 @@ line_length = 88 not_skip=__init__.py known_first_party=trezorlib known_third_party=hidapi, rlp, ethjsonrpc, ecdsa, mnemonic, requests, click, pyblake2, \ - usb, construct, pytest, mock + usb, construct, pytest diff --git a/trezorlib/tests/unit_tests/test_transport.py b/trezorlib/tests/unit_tests/test_transport.py index 62f00fbb48..beb8dbee44 100644 --- a/trezorlib/tests/unit_tests/test_transport.py +++ b/trezorlib/tests/unit_tests/test_transport.py @@ -14,7 +14,7 @@ # You should have received a copy of the License along with this library. # If not, see . -import mock +from unittest import mock from trezorlib.transport import all_transports