]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Restrict use of Mock objects as specs (GH-31090)
authorMatthew Suozzo <msuozzo@google.com>
Thu, 3 Feb 2022 08:41:19 +0000 (03:41 -0500)
committerGitHub <noreply@github.com>
Thu, 3 Feb 2022 08:41:19 +0000 (00:41 -0800)
commit6394e981adaca2c0daa36c8701611e250d74024c
treee045af3b3a17ab2bfa72e44aa711ad046c8ba4bb
parent8726067ace98a27557e9fdf1a8e1c509c37cfcfc
Restrict use of Mock objects as specs (GH-31090)

Follow-on to https://github.com/python/cpython/pull/25326

This covers cases where mock objects are passed directly to spec.
Lib/unittest/mock.py
Lib/unittest/test/testmock/testmock.py
Lib/unittest/test/testmock/testwith.py
Misc/NEWS.d/next/Tests/2022-02-03-00-21-32.bpo-43478.0nfcam.rst [new file with mode: 0644]