dependabot[bot] opened a new pull request, #25503: URL: https://github.com/apache/beam/pull/25503
Updates the requirements on [mock](https://github.com/testing-cabal/mock) to permit the latest version. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/testing-cabal/mock/blob/master/CHANGELOG.rst">mock's changelog</a>.</em></p> <blockquote> <h2>5.0.1</h2> <ul> <li> <p><a href="https://github-redirect.dependabot.com/testing-cabal/mock/issues/100740">gh-100740</a>: Fix <code>unittest.mock.Mock</code> not respecting the spec for attribute names prefixed with <code>assert</code>.</p> </li> <li> <p><a href="https://github-redirect.dependabot.com/testing-cabal/mock/issues/100690">gh-100690</a>: <code>Mock</code> objects which are not unsafe will now raise an <code>AttributeError</code> when accessing an attribute that matches the name of an assertion but without the prefix <code>assert_</code>, e.g. accessing <code>called_once</code> instead of <code>assert_called_once</code>. This is in addition to this already happening for accessing attributes with prefixes <code>assert</code>, <code>assret</code>, <code>asert</code>, <code>aseert</code>, and <code>assrt</code>.</p> </li> <li> <p><a href="https://github-redirect.dependabot.com/testing-cabal/mock/issues/96127">gh-96127</a>: <code>inspect.signature</code> was raising <code>TypeError</code> on call with mock objects. Now it correctly returns <code>(*args, **kwargs)</code> as infered signature.</p> </li> </ul> <h2>5.0.0</h2> <ul> <li> <p><a href="https://github-redirect.dependabot.com/testing-cabal/mock/issues/98624">gh-98624</a>: Add a mutex to unittest.mock.NonCallableMock to protect concurrent access to mock attributes.</p> </li> <li> <p>bpo-43478: Mocks can no longer be used as the specs for other Mocks. As a result, an already-mocked object cannot have an attribute mocked using <code>autospec=True</code> or be the subject of a <code>create_autospec(...)</code> call. This can uncover bugs in tests since these Mock-derived Mocks will always pass certain tests (e.g. isinstance) and builtin assert functions (e.g. assert_called_once_with) will unconditionally pass.</p> </li> <li> <p>bpo-45156: Fixes infinite loop on :func:<code>unittest.mock.seal</code> of mocks created by :func:<code>~unittest.create_autospec</code>.</p> </li> <li> <p>bpo-41403: Make :meth:<code>mock.patch</code> raise a :exc:<code>TypeError</code> with a relevant error message on invalid arg. Previously it allowed a cryptic :exc:<code>AttributeError</code> to escape.</p> </li> <li> <p><a href="https://github-redirect.dependabot.com/testing-cabal/mock/issues/91803">gh-91803</a>: Fix an error when using a method of objects mocked with :func:<code>unittest.mock.create_autospec</code> after it was sealed with :func:<code>unittest.mock.seal</code> function.</p> </li> <li> <p>bpo-41877: AttributeError for suspected misspellings of assertions on mocks are now pointing out that the cause are misspelled assertions and also what to do if the misspelling is actually an intended attribute name. The unittest.mock document is also updated to reflect the current set of recognised misspellings.</p> </li> <li> <p>bpo-43478: Mocks can no longer be provided as the specs for other Mocks. As a result, an already-mocked object cannot be passed to <code>mock.Mock()</code>. This can uncover bugs in tests since these Mock-derived Mocks will always</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/testing-cabal/mock/commit/921fad1bb3b781124bf27ee0187c6ce5d71652b0"><code>921fad1</code></a> Preparing for 5.0.1 release.</li> <li><a href="https://github.com/testing-cabal/mock/commit/696fb23e7279ee285df22f8f988e7ac18bb7b356"><code>696fb23</code></a> Backwards compatibility fix for 3.7 and earlier.</li> <li><a href="https://github.com/testing-cabal/mock/commit/296d856f36e218cabf79f76009650562528a0146"><code>296d856</code></a> latest sync point</li> <li><a href="https://github.com/testing-cabal/mock/commit/7df4d384393d9d8bf19ec6b89d0a35390b6f5435"><code>7df4d38</code></a> fix up mock tests coverage</li> <li><a href="https://github.com/testing-cabal/mock/commit/ee9744d2d17e67e9f28d485e51df84d3154bc8b8"><code>ee9744d</code></a> <a href="https://github-redirect.dependabot.com/testing-cabal/mock/issues/96127">gh-96127</a>: Fix <code>inspect.signature</code> call on mocks (<a href="https://github-redirect.dependabot.com/testing-cabal/mock/issues/96335">#96335</a>)</li> <li><a href="https://github.com/testing-cabal/mock/commit/521960196a665d6e53807277407cac9c9f933bdf"><code>5219601</code></a> Backwards compatibility fix for 3.8 and earlier.</li> <li><a href="https://github.com/testing-cabal/mock/commit/18046f149b60dee1a486778da347d0100083da7d"><code>18046f1</code></a> <a href="https://github-redirect.dependabot.com/testing-cabal/mock/issues/100690">gh-100690</a>: [mock] hide <code>ATTRIB_DENY_LIST</code> and make it immutable (<a href="https://github-redirect.dependabot.com/testing-cabal/mock/issues/100819">#100819</a>)</li> <li><a href="https://github.com/testing-cabal/mock/commit/21787a948cf1186f3bd38462d5b912784fa81218"><code>21787a9</code></a> <a href="https://github-redirect.dependabot.com/testing-cabal/mock/issues/100690">gh-100690</a>: Raise an AttributeError when the assert_ prefix is forgotten when ...</li> <li><a href="https://github.com/testing-cabal/mock/commit/aeca482230257d3a2a5eb5da9d1bd65359bcb0d6"><code>aeca482</code></a> <a href="https://github-redirect.dependabot.com/testing-cabal/mock/issues/100739">gh-100739</a>: Respect mock spec when checking for unsafe prefixes (<a href="https://github-redirect.dependabot.com/testing-cabal/mock/issues/100740">#100740</a>)</li> <li><a href="https://github.com/testing-cabal/mock/commit/135ca36adb30e9d87dde9098d3e043b2251cfb75"><code>135ca36</code></a> Update issue templates</li> <li>Additional commits viewable in <a href="https://github.com/testing-cabal/mock/compare/1.0.1...5.0.1">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
