Change unit test to ignore deprecation Warning on using *.txt extension with RF 3.1.
@@ -36,7 +36,8 @@ class ProcessUnicodeTestCase(unittest.TestCase):
'2 critical tests, 1 passed, 1 failed\n2 tests total, 1 passed, 1 failed\n'
'==============================================================================\n'),
msg=repr(output))
- self.assertEqual(errors.replace('\r', ''), u'[ WARN ] this passes\n')
+ # Because of deprecation messages in RF 3.1, from Equal to RegexpMatches
+ self.assertRegexpMatches(errors.replace('\r', ''), u'.*\[ WARN \] this passes\n')
def _run_small_test(self):
p = Process(datafilereader.SMALL_TEST_PATH)
