Added
- (flags) Added
absl.flags.override_valuefunction to provideFlagHolderwith a construct to modify values. The new interface parallelsabsl.flags.FlagValues.__setattr__but checks that the provided value conforms to the flag's expected type. - (testing) Added a new method
absltest.TestCase.assertDataclassEqualthat tests equality ofdataclass.dataclassobjects with better error messages when the assert fails.
Changed
- (flags)
absl.flags.argparse_flags.ArgumentParsernow correctly inherits an empty instance ofFlagValuesto ensure that absl flags, such as--flagfile,--undefokare supported. - (testing) Do not exit 5 if tests were skipped on Python 3.12. This follows the CPython change in python/cpython#113856.
Fixed
- (flags) The flag
foono longer retains the valuebarafterFLAGS.foo = barfails due to a validation error. - (testing) Fixed an issue caused by this Python 3.12.1 change where the test reporter crashes when all tests are skipped.