From a22ad7e3cb208d8593abb4c44191b657ddd11ab3 Mon Sep 17 00:00:00 2001 From: Bodo Graumann Date: Thu, 26 Jan 2017 23:08:20 +0100 Subject: [PATCH] tests: Allow running tests with en_GB locale --- tests/base.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/base.py b/tests/base.py index 67d453f..a961afc 100644 --- a/tests/base.py +++ b/tests/base.py @@ -148,11 +148,12 @@ class IntegrationTest(object): elif not any([scriptfile in line for line in scriptnames]): return False - # Assert only note about Bram being maintainer is in messages + # Assert only note about Bram or Mike being maintainer is in messages bramline = u'Messages maintainer: Bram Moolenaar ' + mikeline = u'Messages maintainer: Mike Williams ' if not soft: - assert self.client.command('messages') == bramline - elif not self.client.command('messages') == bramline: + assert self.client.command('messages') in (bramline, mikeline) + elif self.client.command('messages') not in (bramline, mikeline): return False # Assert that TW and cache objects exist