Added
- (flags) Added a new
absl.flags.set_default
function that updates the flag
default for a providedFlagHolder
. This parallels the
absl.flags.FlagValues.set_default
interface which takes a flag name. - (flags) The following functions now also accept
FlagHolder
instance(s) in
addition to flag name(s) as their first positional argument:flags.register_validator
flags.validator
flags.register_multi_flags_validator
flags.multi_flags_validator
flags.mark_flag_as_required
flags.mark_flags_as_required
flags.mark_flags_as_mutual_exclusive
flags.mark_bool_flags_as_mutual_exclusive
flags.declare_key_flag
Changed
- (testing) Assertions
assertRaisesWithPredicateMatch
and
assertRaisesWithLiteralMatch
now capture the raisedException
for
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_name
arguments in the following functions
is deprecated. This parameter will be renamed in a future 2.0.0 release.flags.register_validator
flags.validator
flags.register_multi_flags_validator
flags.multi_flags_validator
flags.mark_flag_as_required
flags.mark_flags_as_required
flags.mark_flags_as_mutual_exclusive
flags.mark_bool_flags_as_mutual_exclusive
flags.declare_key_flag