We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57d2e48 commit 93822a3Copy full SHA for 93822a3
3 files changed
CHANGELOG.rst
@@ -1,3 +1,10 @@
1
+v7.0.3 (2026-03-05)
2
+===================
3
+
4
+- Fix ``DeprecationWarning`` when creating an autospec mock with
5
+ ``@cachedmethod`` decorations.
6
7
8
v7.0.2 (2026-03-02)
9
===================
10
src/cachetools/__init__.py
@@ -12,7 +12,7 @@
12
"cachedmethod",
13
)
14
15
-__version__ = "7.0.2"
+__version__ = "7.0.3"
16
17
import collections
18
import collections.abc
tests/test_cachedmethod.py
@@ -681,7 +681,5 @@ def test_autospec_no_warnings(self):
681
682
with warnings.catch_warnings(record=True) as w:
683
warnings.simplefilter("always")
684
-
685
- _ = unittest.mock.create_autospec(Cached, instance=True)
686
+ unittest.mock.create_autospec(Cached, instance=True)
687
self.assertEqual(len(w), 0)
0 commit comments