Commit Graph

1 Commits

Author SHA1 Message Date
Wang Mingyu
7b86dc79c0 python3-mock: upgrade 5.0.0 -> 5.0.1
Changelog:
==========
- gh-100740: Fix unittest.mock.Mock not respecting the spec for attribute names
  prefixed with assert.
- gh-100690: Mock objects which are not unsafe will now raise an AttributeError
  when accessing an attribute that matches the name of an assertion but without
  the prefix assert_, e.g. accessing called_once instead of assert_called_once.
  This is in addition to this already happening for accessing attributes with
  prefixes assert, assret, asert, aseert, and assrt.
- gh-96127: inspect.signature was raising TypeError on call with mock objects.
  Now it correctly returns (*args, **kwargs) as infered signature.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-17 01:05:53 -08:00