| |
@@ -0,0 +1,44 @@
|
| |
+ From ad281e93a4148c1fea8d53d9343a6a1fa3b1c8be Mon Sep 17 00:00:00 2001
|
| |
+ From: Sandro Bonazzola <sbonazzo@redhat.com>
|
| |
+ Date: Wed, 24 Nov 2021 18:03:24 +0100
|
| |
+ Subject: [PATCH] test: move from mock to unittest.mock
|
| |
+
|
| |
+ Dropped python-mock, mock is part of unittest in the standard library
|
| |
+ since Python 3.3.
|
| |
+
|
| |
+ Using the unittest module from the standard library instead.
|
| |
+
|
| |
+ Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
|
| |
+ ---
|
| |
+ setup.py | 1 -
|
| |
+ tests/time.py | 2 +-
|
| |
+ 2 files changed, 1 insertion(+), 2 deletions(-)
|
| |
+
|
| |
+ diff --git a/setup.py b/setup.py
|
| |
+ index 327388d..4f59508 100644
|
| |
+ --- a/setup.py
|
| |
+ +++ b/setup.py
|
| |
+ @@ -36,7 +36,6 @@ setup(
|
| |
+ include_package_data=True,
|
| |
+ zip_safe=False,
|
| |
+ test_suite="tests",
|
| |
+ - tests_require=['mock'],
|
| |
+ install_requires=[
|
| |
+ # -*- Extra requirements: -*-
|
| |
+ ],
|
| |
+ diff --git a/tests/time.py b/tests/time.py
|
| |
+ index 7747c87..16cab49 100644
|
| |
+ --- a/tests/time.py
|
| |
+ +++ b/tests/time.py
|
| |
+ @@ -3,7 +3,7 @@
|
| |
+
|
| |
+ """Tests for time humanizing."""
|
| |
+
|
| |
+ -from mock import patch
|
| |
+ +from unittest.mock import patch
|
| |
+
|
| |
+ from humanize import time
|
| |
+ from datetime import date, datetime, timedelta
|
| |
+ --
|
| |
+ 2.27.0
|
| |
+
|
| |
test: move from mock to unittest.mock
Dropped python-mock, mock is part of unittest in the standard library
since Python 3.3.
Using the unittest module from the standard library instead.