Added
- (flags) Added
absl.flags.override_value
function to provideFlagHolder
with 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.assertDataclassEqual
that tests equality ofdataclass.dataclass
objects with better error messages when the assert fails.
Changed
- (flags)
absl.flags.argparse_flags.ArgumentParser
now correctly inherits an empty instance ofFlagValues
to ensure that absl flags, such as--flagfile
,--undefok
are 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
foo
no longer retains the valuebar
afterFLAGS.foo = bar
fails 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.