forked from pool/python-docformatter
* Merged pull requests:
+ chore(deps-dev): bump black from 22.12.0 to 24.3.0
+ chore(deps-dev): bump jinja2 from 3.1.4 to 3.1.6
+ chore(deps-dev): bump requests from 2.31.0 to 2.32.2
+ chore(deps-dev): bump virtualenv from 20.21.1 to 20.26.6
+ chore(deps-dev): bump zipp from 3.15.0 to 3.19.1
+ chore(deps-dev): bump urllib3 from 2.0.7 to 2.2.2
- from version 1.7.6
* Features
+ prefer new unittest.mock from the standard library #280
+ Handle abbreviation 'etc.' (et cetera) #273
* Bug Fixes
+ Do not double-process urls #284
* Merged pull requests:
+ Fix pre-commit syntax #266
+ Update version listed in documentation's Pre-Commit example #262
+ Add missing comma in requirements table #261
- Drop remove-mock.patch, merged upstream
- Drop support-python-312.patch, merged upstream
- Use Python 3.11 on SLE-15 by default
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docformatter?expand=0&rev=23
29 lines
781 B
Diff
29 lines
781 B
Diff
From ba56f8498a1ebed724316e3affcc2c98eeac4ca7 Mon Sep 17 00:00:00 2001
|
|
From: Alexandre Detiste <alexandre.detiste@gmail.com>
|
|
Date: Sat, 27 Apr 2024 13:44:08 +0200
|
|
Subject: [PATCH] prefer new unittest.mock from the standard library
|
|
|
|
---
|
|
tests/test_utility_functions.py | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/tests/test_utility_functions.py b/tests/test_utility_functions.py
|
|
index c9fffd3..e127f33 100644
|
|
--- a/tests/test_utility_functions.py
|
|
+++ b/tests/test_utility_functions.py
|
|
@@ -36,9 +36,13 @@
|
|
- is_some_sort_of_code()
|
|
"""
|
|
|
|
+try:
|
|
+ from unittest.mock import patch
|
|
+except ImportError:
|
|
+ from mock import patch
|
|
+
|
|
# Third Party Imports
|
|
import pytest
|
|
-from mock import patch
|
|
|
|
# docformatter Package Imports
|
|
import docformatter
|