Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#71066 - [python-pytest-mock] missing dependency python-mock
Attached to Project:
Community Packages
Opened by George Rawlinson (rawlinsong) - Monday, 31 May 2021, 01:20 GMT
Opened by George Rawlinson (rawlinsong) - Monday, 31 May 2021, 01:20 GMT
|
DetailsDescription: If mock_use_standalone_module is set to true in pytest.ini, pytest fails with module not found error.
Additional info: * Upstream documentation: https://github.com/pytest-dev/pytest-mock/#use-standalone-mock-package Steps to reproduce: * Set mock_use_standalone_module = true in pytest.ini and watch it all burn down. Possible solution: Set python-mock as a runtime dependency, OR an optional dependency. |
This task depends upon

This should be an optdepends at best, but also IMO nothing should ever use mock_use_standalone_module. There's no benefit to it...

ansible-test unfortunately does, it’s how I discovered this.

Does everything work if you patch it out? :D If so, it may be worth opening an upstream ticket to use the stdlib...