mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-02-06 00:27:27 -08:00
19 lines
652 B
Diff
19 lines
652 B
Diff
From: Zac Medico <zmedico@gentoo.org>
|
|
Subject: [PATCH] RegexTest: python3.6 compatibility
|
|
|
|
https://bugs.launchpad.net/python-mox3/+bug/1665266
|
|
|
|
--- mox3-0.12.0/mox3/tests/test_mox.py
|
|
+++ mox3-0.12.0/mox3/tests/test_mox.py
|
|
@@ -316,8 +316,8 @@
|
|
|
|
def testReprWithFlags(self):
|
|
"""repr should return the regular expression pattern and flags."""
|
|
- self.assertTrue(repr(mox.Regex(r"a\s+b", flags=4)) ==
|
|
- "<regular expression 'a\s+b', flags=4>")
|
|
+ self.assertTrue(repr(mox.Regex(r"a\s+b", flags=8)) ==
|
|
+ r"<regular expression 'a\s+b', flags=8>")
|
|
|
|
|
|
class IsTest(testtools.TestCase):
|