Blame SOURCES/0004-test-drop-underqualified-identifier-in-unittest-s-2..patch

b8c11e
From 541e6184fca60a01ff7e8c1bba794c083ac4245f Mon Sep 17 00:00:00 2001
b8c11e
From: =?UTF-8?q?Jan=20Pokorn=C3=BD?= <jpokorny@redhat.com>
b8c11e
Date: Tue, 10 Jul 2018 19:25:34 +0200
b8c11e
Subject: [PATCH] test: drop underqualified identifier in unittest's 2.6 compat
b8c11e
 "polyfill"
b8c11e
MIME-Version: 1.0
b8c11e
Content-Type: text/plain; charset=UTF-8
b8c11e
Content-Transfer-Encoding: 8bit
b8c11e
b8c11e
Specifically, in supplemented unittest.TestCase.assertRegexpMatches
b8c11e
method.  In Python 2.7's implementation, there's no re.MULTILINE
b8c11e
modifier at that very place, either.
b8c11e
b8c11e
Not sure what the original purpose of introducing that with c1c47f5 was.
b8c11e
b8c11e
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
b8c11e
---
b8c11e
 test/assertions.py | 2 +-
b8c11e
 1 file changed, 1 insertion(+), 1 deletion(-)
b8c11e
b8c11e
diff --git a/test/assertions.py b/test/assertions.py
b8c11e
index 34333ca..fafb291 100644
b8c11e
--- a/test/assertions.py
b8c11e
+++ b/test/assertions.py
b8c11e
@@ -23,7 +23,7 @@ class BoothAssertions:
b8c11e
         """Fail the test unless the text matches the regular expression."""
b8c11e
         if isinstance(expected_regexp, str):
b8c11e
             expected_regexp = re.compile(expected_regexp)
b8c11e
-        if not expected_regexp.search(text, MULTILINE):
b8c11e
+        if not expected_regexp.search(text):
b8c11e
             msg = msg or "Regexp didn't match"
b8c11e
             msg = '%s: %r not found in %r' % (msg, expected_regexp.pattern, text)
b8c11e
             raise self.failureException(msg)
b8c11e
-- 
b8c11e
2.18.0.rc2
b8c11e