diff --git a/test/test_filefilter.py b/test/test_filefilter.py
index e7a4119d4..57310fd2a 100644
--- a/test/test_filefilter.py
+++ b/test/test_filefilter.py
@@ -137,7 +137,7 @@ class FileFilterPluginTest(unittest.TestCase, ImportHelper):
# Global options
def test_import_global(self):
- config['filefilter']['path'] = '.*track_1.*\.mp3'
+ config['filefilter']['path'] = '.*track_1.*\\.mp3'
self.__run([
'Album: %s' % displayable_path(self.artist_path),
' %s' % displayable_path(self.artist_paths[0]),
@@ -151,7 +151,7 @@ class FileFilterPluginTest(unittest.TestCase, ImportHelper):
# Album options
def test_import_album(self):
- config['filefilter']['album_path'] = '.*track_1.*\.mp3'
+ config['filefilter']['album_path'] = '.*track_1.*\\.mp3'
self.__run([
'Album: %s' % displayable_path(self.artist_path),
' %s' % displayable_path(self.artist_paths[0]),
@@ -169,7 +169,7 @@ class FileFilterPluginTest(unittest.TestCase, ImportHelper):
# Singleton options
def test_import_singleton(self):
- config['filefilter']['singleton_path'] = '.*track_1.*\.mp3'
+ config['filefilter']['singleton_path'] = '.*track_1.*\\.mp3'
self.__run([
'Singleton: %s' % displayable_path(self.artist_paths[0]),
'Singleton: %s' % displayable_path(self.misc_paths[0])
@@ -188,8 +188,8 @@ class FileFilterPluginTest(unittest.TestCase, ImportHelper):
# Album and singleton options
def test_import_both(self):
- config['filefilter']['album_path'] = '.*track_1.*\.mp3'
- config['filefilter']['singleton_path'] = '.*track_2.*\.mp3'
+ config['filefilter']['album_path'] = '.*track_1.*\\.mp3'
+ config['filefilter']['singleton_path'] = '.*track_2.*\\.mp3'
self.__run([
'Album: %s' % displayable_path(self.artist_path),
' %s' % displayable_path(self.artist_paths[0]),
diff --git a/test/test_lyrics.py b/test/test_lyrics.py
index 398314ba6..4d48ed9ed 100644
--- a/test/test_lyrics.py
+++ b/test/test_lyrics.py
@@ -165,7 +165,7 @@ class LyricsPluginTest(unittest.TestCase):
one
two !
-
+
"""
self.assertEqual(lyrics._scrape_strip_cruft(text, True),
"one\ntwo !\n\nfour")
diff --git a/test/test_player.py b/test/test_player.py
index 0a576f0ba..523a39d1b 100644
--- a/test/test_player.py
+++ b/test/test_player.py
@@ -60,7 +60,7 @@ class CommandParseTest(unittest.TestCase):
def test_backslash_in_arg(self):
s = r'command "hello \\ there"'
c = bpd.Command(s)
- self.assertEqual(c.args, [u'hello \ there'])
+ self.assertEqual(c.args, [u'hello \\ there'])
def suite():
diff --git a/test/test_the.py b/test/test_the.py
index 72e9bf161..263446b92 100644
--- a/test/test_the.py
+++ b/test/test_the.py
@@ -50,7 +50,7 @@ class ThePluginTest(_common.TestCase):
self.assertEqual(ThePlugin().the_template_func(u'An A'), u'A, An')
def test_custom_pattern(self):
- config['the']['patterns'] = [u'^test\s']
+ config['the']['patterns'] = [u'^test\\s']
config['the']['format'] = FORMAT
self.assertEqual(ThePlugin().the_template_func(u'test passed'),
u'passed, test')