Fix regex so that it works with Python 3.6. See . Copied from upstream bug report: https://bugs.launchpad.net/python-mox3/+bug/1665266 From 05064cdb6ea7a16450c6beae2b6f7c6074212a69 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 16 Feb 2017 00:24:10 -0800 Subject: [PATCH] RegexTest: python3.6 compatibility These fixes are backward-compatible with older python versions: * raw strings fix invalid escape sequences * flags=8 fixes ValueError: cannot use LOCALE flag with a str pattern --- mox3/tests/test_mox.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mox3/tests/test_mox.py b/mox3/tests/test_mox.py index 15ac565..3a1af17 100644 --- a/mox3/tests/test_mox.py +++ b/mox3/tests/test_mox.py @@ -312,12 +312,12 @@ class RegexTest(testtools.TestCase): def testReprWithoutFlags(self): """repr should return the regular expression pattern.""" self.assertTrue( - repr(mox.Regex(r"a\s+b")) == "") + repr(mox.Regex(r"a\s+b")) == r"") def testReprWithFlags(self): """repr should return the regular expression pattern and flags.""" - self.assertTrue(repr(mox.Regex(r"a\s+b", flags=4)) == - "") + self.assertTrue(repr(mox.Regex(r"a\s+b", flags=8)) == + r"") class IsTest(testtools.TestCase): -- 2.10.2 '/guix/log/gnu/packages/icu4c.scm'>
AgeCommit message (Expand)Author
2023-09-02gnu: Add icu4c-for-skia....* gnu/packages/icu4c.scm (icu4c-for-skia): New variable. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> Nicolas Graves
2023-05-07gnu: icu4c-70: Fix gexp in builder script for riscv64....As phases from icu4c is a gexp. * gnu/packages/icu4c.scm (icu4c-70)[arguments]: Use gexps. Christopher Baines
2022-09-27Merge branch 'staging' into core-updates...Conflicts resolved in: gnu/local.mk gnu/packages/cran.scm gnu/packages/gnome.scm gnu/packages/gtk.scm gnu/packages/icu4c.scm gnu/packages/java.scm gnu/packages/machine-learning.scm gnu/packages/tex.scm Maxim Cournoyer
2022-09-24gnu: Remove icu4c-67....* gnu/packages/icu4c.scm (icu4c-67): Remove variable. Efraim Flashner
2022-07-22Merge branch 'staging' into core-updatesMarius Bakke
2022-07-16gnu: mozjs: Build with ICU 69....* gnu/packages/icu4c.scm (icu4c-69): New variable. * gnu/packages/gnuzilla.scm (mozjs)[inputs]: Change from ICU4C to ICU4C-69. Marius Bakke
2022-07-11gnu: icu4c-70: Fix building on riscv64-linux....* gnu/packages/icu4c.scm (icu4c-70)[arguments]: When building for riscv64-linux replace the custom 'disable-failing-test phase to skip an additional test. Efraim Flashner
2022-06-30gnu: icu4c: Remove input labels....* gnu/packages/icu4c.scm (icu4c)[arguments]: Use G-expression. [native-inputs]: Remove labels. * gnu/packages/icu4c.scm (icu4c-build-root)[arguments]: Use gexp. Marius Bakke
2022-06-27gnu: icu4c: Update to 71.1....* gnu/packages/icu4c.scm (icu4c): Update to 71.1. (icu4c-71): Remove variable. * gnu/packages/chromium.scm (ungoogled-chromium)[inputs]: Change ICU4C-71 to ICU4C. Marius Bakke
2022-06-23gnu: icu4c: Add 71.1....* gnu/packages/icu4c.scm (icu4c-71): New variable. Marius Bakke