From 8ba26e108bddc9807039c3c91d6fe3b6c44c4ea1 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Tue, 30 May 2023 21:08:07 +0200 Subject: [PATCH] Use unittest for mock instead of the mock module The unittest module has a mock object library since 3.3 --- parameterized/test.py | 3 +-- tox.ini | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/parameterized/test.py b/parameterized/test.py index 6c71f79..646d695 100644 --- a/parameterized/test.py +++ b/parameterized/test.py @@ -2,9 +2,8 @@ import inspect import sys -import mock from functools import wraps -from unittest import TestCase +from unittest import mock, TestCase try: from nose.tools import assert_equal, assert_raises except ImportError: diff --git a/tox.ini b/tox.ini index f109b95..79d5ea5 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,6 @@ envlist=pypy3-{nose,nose2,pytest3,unit,unit2},py{37,38,39}-{nose,nose2,pytest3,u [testenv] deps= nose - mock nose2: nose2 pytest2: pytest>=2,<3 pytest3: pytest>=3,<4 @@ -18,4 +17,4 @@ commands= pytest3: py.test parameterized/test.py #pytest4: py.test parameterized/test.py unit: python -m unittest parameterized.test - unit2: unit2 parameterized.test \ No newline at end of file + unit2: unit2 parameterized.test