summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2017-09-19 08:33:11 +1000
committerMartin Schwenke <martins@samba.org>2017-09-19 05:32:22 +0200
commit68c3ea773bb22e811139900e425e01a3df8cb375 (patch)
tree88d251a3a9c625d2a7e24b3323f92e9cd84469e8 /python
parentb0244d46b58231c5c89131bddd2f967596f1238e (diff)
downloadsamba-68c3ea773bb22e811139900e425e01a3df8cb375.tar.gz
selftest: Avoid a build started just before midnight failing
It looks like commit 070f24bc9d2 was incomplete because it doesn't match on the trailing fullstop and newline. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Tue Sep 19 05:32:22 CEST 2017 on sn-devel-144
Diffstat (limited to 'python')
-rw-r--r--python/samba/tests/pam_winbind_warn_pwd_expire.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/tests/pam_winbind_warn_pwd_expire.py b/python/samba/tests/pam_winbind_warn_pwd_expire.py
index 2567f98c6d4..b3d2a9fd11e 100644
--- a/python/samba/tests/pam_winbind_warn_pwd_expire.py
+++ b/python/samba/tests/pam_winbind_warn_pwd_expire.py
@@ -38,7 +38,7 @@ class PasswordExpirePamTests(samba.tests.TestCase):
elif warn_pwd_expire == 50:
# This is needed as otherwise a build started just before
# midnight can fail
- if (res.info[0] != u"Your password will expire in 41 days"):
+ if (res.info[0] != u"Your password will expire in 41 days.\n"):
self.assertEqual(res.info[0], u"Your password will expire in 42 days.\n")
else:
self.assertEqual(warn_pwd_expire, 0)