DDG: Fix regexp escape in test

9bcb21389a added it to the wrong string
This commit is contained in:
Valentin Lorentz 2024-05-29 07:26:34 +02:00
parent 5b2b38ab37
commit dcd95d3a77

View File

@ -39,7 +39,7 @@ class DDGTestCase(PluginTestCase):
def testSearch(self): def testSearch(self):
self.assertRegexp( self.assertRegexp(
r'ddg search wikipedia', 'Wikipedia.*? - .*?https?\:\/\/') 'ddg search wikipedia', r'Wikipedia.*? - .*?https?\:\/\/')
self.assertRegexp( self.assertRegexp(
'ddg search en.wikipedia.org', 'ddg search en.wikipedia.org',
'Wikipedia, the free encyclopedia\x02 - ' 'Wikipedia, the free encyclopedia\x02 - '