From 857027a26ff96a6c0ee029ee59e0bb563de3db8f Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 27 Dec 2015 12:43:35 +0100 Subject: [PATCH] Fix tests for Python 2. --- plugins/Unix/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Unix/test.py b/plugins/Unix/test.py index c95b5fc07..029ed285e 100644 --- a/plugins/Unix/test.py +++ b/plugins/Unix/test.py @@ -60,7 +60,7 @@ class UnixConfigTestCase(ChannelPluginTestCase): 'foo bar') self.assertRegexp('config channel plugins.Unix.fortune.files ' '"-foo bar"', - 'Error:.*dash.*not \'-foo\'') + 'Error:.*dash.*not u?\'-foo\'') # The u is for Python 2 self.assertNotError('config channel plugins.Unix.fortune.files ""')