summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-02-25 23:53:27 (GMT)
committerGitHub <noreply@github.com>2022-02-25 23:53:27 (GMT)
commit5ab745fc51e159ead28b523414e52f0bcc1ef353 (patch)
tree02cb9106f63ae34f86803f92b604587abd359314 /Lib/unittest
parent4060111f9dc44682f9d7bdafb4e7dacb96706ad3 (diff)
downloadcpython-5ab745fc51e159ead28b523414e52f0bcc1ef353.zip
cpython-5ab745fc51e159ead28b523414e52f0bcc1ef353.tar.gz
cpython-5ab745fc51e159ead28b523414e52f0bcc1ef353.tar.bz2
bpo-46852: Remove the float.__set_format__() method (GH-31585)
Remove the undocumented private float.__set_format__() method, previously known as float.__set_format__() in Python 3.7. Its docstring said: "You probably don't want to use this function. It exists mainly to be used in Python's test suite."
Diffstat (limited to 'Lib/unittest')
-rw-r--r--Lib/unittest/mock.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py
index 2719f74..8262b71 100644
--- a/Lib/unittest/mock.py
+++ b/Lib/unittest/mock.py
@@ -1943,7 +1943,7 @@ right = ' '.join('r%s' % n for n in numerics.split())
_non_defaults = {
'__get__', '__set__', '__delete__', '__reversed__', '__missing__',
'__reduce__', '__reduce_ex__', '__getinitargs__', '__getnewargs__',
- '__getstate__', '__setstate__', '__getformat__', '__setformat__',
+ '__getstate__', '__setstate__', '__getformat__',
'__repr__', '__dir__', '__subclasses__', '__format__',
'__getnewargs_ex__',
}