cpython/Lib/test/test_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
..
testmock gh-100690: Raise an AttributeError when the assert_ prefix is forgotten when using Mock (#100691) 2023-01-06 18:38:50 +00:00
__init__.py
__main__.py
_test_warnings.py
dummy.py
support.py
test_assertions.py
test_async_case.py Add more details in test_unittest (GH-99626) 2022-11-21 13:57:30 +02:00
test_break.py
test_case.py gh-97837: Change deprecation warning message in unittest (#97838) 2022-10-04 17:29:18 -07:00
test_discovery.py
test_functiontestcase.py
test_loader.py
test_program.py
test_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
test_runner.py gh-99645: Fix a bug in handling class cleanups in unittest.TestCase (GH-99646) 2022-11-22 17:49:37 +02:00
test_setups.py
test_skipping.py
test_suite.py