From 6b04456c5525270a818d84a0a214f30938977545 Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 17 Dec 2019 22:32:53 +0200 Subject: [PATCH] Mock is part of stdlib in Python 3 --- README.md | 2 +- setup.py | 10 +--------- tests/unicode_test.py | 3 ++- tox.ini | 1 - 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index cb8d2de..3d6f32d 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ export PYLAST_API_SECRET=TODO_ENTER_YOURS_HERE To run all unit and integration tests: ```sh -pip install pytest flaky mock +pip install pytest flaky pytest ``` diff --git a/setup.py b/setup.py index 2c30a7c..dc413ed 100755 --- a/setup.py +++ b/setup.py @@ -20,15 +20,7 @@ setup( author="Amr Hassan and Contributors", author_email="amr.hassan@gmail.com", url="https://github.com/pylast/pylast", - tests_require=[ - "coverage", - "flaky", - "mock", - "pycodestyle", - "pyflakes", - "pytest", - "pyyaml", - ], + tests_require=["coverage", "flaky", "pycodestyle", "pyflakes", "pytest", "pyyaml"], python_requires=">=3.5", classifiers=[ "Development Status :: 5 - Production/Stable", diff --git a/tests/unicode_test.py b/tests/unicode_test.py index 416014e..7efcfea 100644 --- a/tests/unicode_test.py +++ b/tests/unicode_test.py @@ -1,4 +1,5 @@ -import mock +from unittest import mock + import pylast import pytest diff --git a/tox.ini b/tox.ini index b5b7dc1..ad7fbc8 100644 --- a/tox.ini +++ b/tox.ini @@ -11,7 +11,6 @@ setenv = deps = pyyaml pytest - mock ipdb pytest-cov pytest-random-order