Added
- (flags) Added a new
absl.flags.set_defaultfunction that updates the flag
default for a providedFlagHolder. This parallels the
absl.flags.FlagValues.set_defaultinterface which takes a flag name. - (flags) The following functions now also accept
FlagHolderinstance(s) in
addition to flag name(s) as their first positional argument:flags.register_validatorflags.validatorflags.register_multi_flags_validatorflags.multi_flags_validatorflags.mark_flag_as_requiredflags.mark_flags_as_requiredflags.mark_flags_as_mutual_exclusiveflags.mark_bool_flags_as_mutual_exclusiveflags.declare_key_flag
Changed
- (testing) Assertions
assertRaisesWithPredicateMatchand
assertRaisesWithLiteralMatchnow capture the raisedExceptionfor
further analysis when used as a context manager. - (testing) TextAndXMLTestRunner now produces time duration values with
millisecond precision in XML test result output. - (flags) Keyword access to
flag_namearguments in the following functions
is deprecated. This parameter will be renamed in a future 2.0.0 release.flags.register_validatorflags.validatorflags.register_multi_flags_validatorflags.multi_flags_validatorflags.mark_flag_as_requiredflags.mark_flags_as_requiredflags.mark_flags_as_mutual_exclusiveflags.mark_bool_flags_as_mutual_exclusiveflags.declare_key_flag