]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - python/patches/00101-lib64-regex.patch
python: Update to 2.7.5.
[people/ms/ipfire-3.x.git] / python / patches / 00101-lib64-regex.patch
CommitLineData
48d9a6a0
MT
1diff -up Python-2.7.3/Lib/test/test_re.py.lib64-regex Python-2.7.3/Lib/test/test_re.py
2--- Python-2.7.3/Lib/test/test_re.py.lib64-regex 2012-04-09 19:07:32.000000000 -0400
3+++ Python-2.7.3/Lib/test/test_re.py 2013-02-19 13:53:57.624033102 -0500
4@@ -757,6 +757,15 @@ class ReTests(unittest.TestCase):
5 self.assertRaises(TypeError, re.finditer, "a", {})
6 self.assertRaises(OverflowError, _sre.compile, "abc", 0, [long_overflow])
7
8+ def test_bug_931848(self):
9+ try:
10+ unicode
11+ except NameError:
12+ pass
13+ pattern = eval('u"[\u002E\u3002\uFF0E\uFF61]"')
14+ self.assertEqual(re.compile(pattern).split("a.b.c"),
15+ ['a','b','c'])
16+
17 def run_re_tests():
18 from test.re_tests import tests, SUCCEED, FAIL, SYNTAX_ERROR
19 if verbose: