@@ -335,17 +335,17 @@ def _suitable_minimum_unit(min_unit, suppress):
335335 If not suppressed, return the same unit:
336336
337337 >>> from humanize.time import _suitable_minimum_unit, Unit
338- >>> _suitable_minimum_unit(Unit.HOURS, [])
339- <Unit. HOURS: 4>
338+ >>> _suitable_minimum_unit(Unit.HOURS, []).name
339+ ' HOURS'
340340
341341 But if suppressed, find a unit greather than the original one that is not
342342 suppressed:
343343
344- >>> _suitable_minimum_unit(Unit.HOURS, [Unit.HOURS])
345- <Unit. DAYS: 5>
344+ >>> _suitable_minimum_unit(Unit.HOURS, [Unit.HOURS]).name
345+ ' DAYS'
346346
347- >>> _suitable_minimum_unit(Unit.HOURS, [Unit.HOURS, Unit.DAYS])
348- <Unit. MONTHS: 6>
347+ >>> _suitable_minimum_unit(Unit.HOURS, [Unit.HOURS, Unit.DAYS]).name
348+ ' MONTHS'
349349 """
350350 if min_unit in suppress :
351351 for unit in Unit :
@@ -363,8 +363,8 @@ def _suppress_lower_units(min_unit, suppress):
363363 """Extend suppressed units (if any) with all units lower than the minimum unit.
364364
365365 >>> from humanize.time import _suppress_lower_units, Unit
366- >>> list( sorted(_suppress_lower_units(Unit.SECONDS, [Unit.DAYS])))
367- [<Unit. MICROSECONDS: 0>, <Unit. MILLISECONDS: 1>, <Unit. DAYS: 5> ]
366+ >>> [x.name for x in sorted(_suppress_lower_units(Unit.SECONDS, [Unit.DAYS]))]
367+ [' MICROSECONDS', ' MILLISECONDS', ' DAYS' ]
368368 """
369369 suppress = set (suppress )
370370 for u in Unit :
0 commit comments