cpython/Lib/unittest
Christian Klein 1d4d677d1c
gh-100690: Raise an AttributeError when the assert_ prefix is forgotten when using Mock (#100691)
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.
2023-01-06 18:38:50 +00:00
..
__init__.py Revert "bpo-45162: Revert "Remove many old deprecated unittest features"" (GH-92556) 2022-06-26 10:18:06 +03:00
__main__.py
_log.py
async_case.py gh-97837: Change deprecation warning message in unittest (#97838) 2022-10-04 17:29:18 -07:00
case.py gh-99645: Fix a bug in handling class cleanups in unittest.TestCase (GH-99646) 2022-11-22 17:49:37 +02:00
loader.py gh-99482: remove jython compatibility parts from stdlib and tests (#99484) 2022-12-23 14:17:24 -06:00
main.py bpo-46421: Fix unittest filename evaluation when called as a module (GH-30654) 2022-03-17 16:37:52 -07:00
mock.py gh-100690: Raise an AttributeError when the assert_ prefix is forgotten when using Mock (#100691) 2023-01-06 18:38:50 +00:00
result.py gh-98458: unittest: bugfix for infinite loop while handling chained exceptions that contain cycles (#98459) 2022-12-04 11:37:55 -08:00
runner.py Revert "bpo-45162: Revert "Remove many old deprecated unittest features"" (GH-92556) 2022-06-26 10:18:06 +03:00
signals.py
suite.py bpo-43913: Fix bugs in cleaning up classes and modules in unittest. (GH-28006) 2021-08-30 18:25:59 +02:00
util.py