We were monkey patching mock's `_copy_func_details` function to work around a bug ultimately caused by unguarded attempts to access the __name__ attribute, which may not exist for partial functions. However, this has not been an issue since bpo-28919 [1] which reworked the function to guard all attribute accesses [2]. That change was included in Python 3.6, which means our monkey patched function has been a no-op since then. We can therefore remove it. [1] https://bugs.python.org/issue28919 [2] https://hg.python.org/cpython/rev/bbdfde7958a8 Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Change-Id: Ie6148d9607c7f5ab7b97125dbaccef99f032ad55
oslotest -- OpenStack Testing Framework and Utilities
The Oslo Test framework provides common fixtures, support for debugging, and better support for mocking results.
- Free software: Apache license
- Documentation: https://docs.openstack.org/oslotest/latest/
- Source: https://opendev.org/openstack/oslotest
- Bugs: https://bugs.launchpad.net/oslotest
- Release notes: https://docs.openstack.org/releasenotes/oslotest
Description
Languages
Python
97.9%
Shell
2.1%