undo a wording change

This commit is contained in:
meejah 2020-11-13 22:57:44 -07:00
parent 0af033beb7
commit 15e33f8b35
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ class Abbreviate(unittest.TestCase):
def test_abbrev_time_future_5_minutes(self):
diff = timedelta(minutes=-5)
s = abbreviate.abbreviate_time(diff)
self.assertEqual('5 minutes from now', s)
self.assertEqual('5 minutes in the future', s)
def test_abbrev_time_hours(self):
diff = timedelta(hours=4)

View File

@ -40,7 +40,7 @@ def abbreviate_time(s):
if s >= 0.0:
postfix = ' ago'
else:
postfix = ' from now'
postfix = ' in the future'
s = -s
def _plural(count, unit):
count = int(count)