Added
- (testing) Added a new method
absltest.TestCase.assertMappingEqual
that tests equality of Mapping objects not requiring them to be dicts. Similar toassertSequenceEqual
but for mappings. - (testing) Added a new method
absltest.assertDictContainsSubset
that checks that a dictionary contains a subset of keys and values. Similar to a removed methodunittest.assertDictContainsSubset
(existed until Python 3.11). - Added type annotations that are compliant with MyPy.
Changed
- Removed support for Python 3.7.
Fixed
- (testing) Fixed an issue where the test reporter crashes with exceptions with no string representation, starting with Python 3.11.
(The change log also includes changes in 2.2.0
and 2.2.1
.)