void-packages/srcpkgs/python3-humanize/patches/use-python3-mock-on-tests.p...

26 lines
579 B
Diff

diff --git setup.py setup.py
index 327388d..4f59508 100644
--- setup.py
+++ 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 tests/time.py tests/time.py
index 7747c87..669d063 100644
--- tests/time.py
+++ 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