summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2017-05-30 13:53:07 -0700
committerDylan Baker <dylan@pnwbakers.com>2017-05-30 13:54:28 -0700
commitc3ef880ff0eccaa71a3e983830d06f7c54a60d32 (patch)
treed8d283772262ae851a3dd183af27df39d48c536c /tests
parentbc604269d54293dc0d438ca5d12fa162799c072a (diff)
tests/helper_test.py: Don't use GNU %P, which breaks non glibc platforms
Instead us %p, which differs only in the case of the am/pm. Fixes #1048
Diffstat (limited to 'tests')
-rw-r--r--tests/helper_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/helper_test.py b/tests/helper_test.py
index 9c783706..b0e799ca 100644
--- a/tests/helper_test.py
+++ b/tests/helper_test.py
@@ -243,7 +243,7 @@ class TestPrettyDatetime(unittest.TestCase):
@staticmethod
def _future_expected(test):
if test.strftime('%p'):
- expected = test.strftime('%I:%M%P').lower()
+ expected = test.strftime('%I:%M%p').lower()
else:
expected = test.strftime('%H:%M')
expected = expected.decode('utf-8')
@@ -276,8 +276,8 @@ class TestPrettyDatetime(unittest.TestCase):
def test_future_days(self):
def make_expected():
# Uses the hourfmt instead of the hourminfmt from pretty_datetime
- if test.strftime('%P'):
- expected = test.strftime('%I%P')
+ if test.strftime('%p'):
+ expected = test.strftime('%I%p')
else:
expected = test.strftime('%Hh')
expected = expected.decode('utf-8')