| 1 |
Description: Remove mock depends |
| 2 |
Author: Thomas Goirand <[email protected]> |
| 3 |
Bug-Debian: https://bugs.debian.org/1060095 |
| 4 |
Forwarded: no |
| 5 |
Last-Update: 2024-02-19 |
| 6 |
|
| 7 |
Index: python-sure/sure/core.py |
| 8 |
=================================================================== |
| 9 |
--- python-sure.orig/sure/core.py |
| 10 |
+++ python-sure/sure/core.py |
| 11 |
@@ -19,7 +19,7 @@ from __future__ import unicode_literals |
| 12 |
import os |
| 13 |
|
| 14 |
try: |
| 15 |
|
| 16 |
+ from unittest.mock import _CallList |
| 17 |
except ImportError: |
| 18 |
from mock.mock import _CallList |
| 19 |
|
| 20 |
Index: python-sure/tests/test_assertion_builder.py |
| 21 |
=================================================================== |
| 22 |
--- python-sure.orig/tests/test_assertion_builder.py |
| 23 |
+++ python-sure/tests/test_assertion_builder.py |
| 24 |
@@ -17,7 +17,7 @@ |
| 25 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 26 |
from __future__ import unicode_literals |
| 27 |
import re |
| 28 |
|
| 29 |
+from unittest import mock |
| 30 |
from collections import OrderedDict |
| 31 |
|
| 32 |
from datetime import datetime, timedelta |
| 33 |
Index: python-sure/setup.py |
| 34 |
=================================================================== |
| 35 |
--- python-sure.orig/setup.py |
| 36 |
+++ python-sure/setup.py |
| 37 |
@@ -81,7 +81,7 @@ def read_readme(): |
| 38 |
return __doc__ |
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
+install_requires = ["six"] |
| 43 |
tests_require = ["nose"] |
| 44 |
version = read_version() |
| 45 |
|