File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -841,8 +841,14 @@ def test_precisedelta_bogus_call() -> None:
841841def test_precisedelta_negative () -> None :
842842 # regression: negative timedeltas must keep their sign
843843 # https://github.com/python-humanize/humanize/issues/379
844- assert humanize .precisedelta (dt .timedelta (seconds = - 3661 )) == "-1 hour, 1 minute and 1 second"
845- assert humanize .precisedelta (dt .timedelta (seconds = 3661 )) == "1 hour, 1 minute and 1 second"
844+ assert (
845+ humanize .precisedelta (dt .timedelta (seconds = - 3661 ))
846+ == "-1 hour, 1 minute and 1 second"
847+ )
848+ assert (
849+ humanize .precisedelta (dt .timedelta (seconds = 3661 ))
850+ == "1 hour, 1 minute and 1 second"
851+ )
846852 assert (
847853 humanize .precisedelta (dt .timedelta (seconds = - 3661 ), minimum_unit = "minutes" )
848854 == "-1 hour and 1.02 minutes"
You can’t perform that action at this time.
0 commit comments