Fix tests for Python 2.

This commit is contained in:
Valentin Lorentz 2015-12-27 12:43:35 +01:00
parent b42437c711
commit 857027a26f
1 changed files with 1 additions and 1 deletions

View File

@ -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 ""')