summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_re.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | Issue #10182: The re module doesn't truncate indices to 32 bits anymore.Antoine Pitrou2012-12-021-1/+16
|\ \ | |/ | | | | Patch by Serhiy Storchaka.
| * Issue #10182: The re module doesn't truncate indices to 32 bits anymore.Antoine Pitrou2012-12-021-1/+16
| | | | | | | | Patch by Serhiy Storchaka.
* | Merge test from issue #1160.Antoine Pitrou2012-11-201-0/+6
|\ \ | |/
| * Issue #1160: Fix compiling large regular expressions on UCS2 builds.Antoine Pitrou2012-11-201-0/+6
| | | | | | | | Patch by Serhiy Storchaka.
* | #12759: merge with 3.2.Ezio Melotti2012-11-031-0/+20
|\ \ | |/
| * #12759: sre_parse now raises a proper error when the name of the group is ↵Ezio Melotti2012-11-031-0/+20
| | | | | | | | missing. Initial patch by Serhiy Storchaka.
* | Issue #3665: \u and \U escapes are now supported in unicode regular expressions.Antoine Pitrou2012-06-231-15/+83
| | | | | | | | Patch by Serhiy Storchaka.
* | closes #14259 re.finditer() now takes keyword arguments: pos, endpos.Sean Reifschneider2012-03-131-0/+20
| | | | | | | | | | Contrary to the documentation, finditer() did not take pos and endpos keyword arguments.
* | #14179: merge with 3.2.Ezio Melotti2012-03-121-0/+10
|\ \ | |/
| * #14179: add tests for re.compile. Patch by Florian Mladitsch.Ezio Melotti2012-03-121-0/+10
| |
* | merge 3.2 (#14212)Benjamin Peterson2012-03-071-1/+13
|\ \ | |/
| * keep the buffer object around while we're using it (closes #14212)Benjamin Peterson2012-03-071-1/+13
| |
* | #10713: merge with 3.2.Ezio Melotti2012-02-291-0/+26
|\ \ | |/
| * #10713: Improve documentation for \b and \B and add a few tests. Initial ↵Ezio Melotti2012-02-291-0/+26
| | | | | | | | patch and tests by Martin Pool.
* | Implement PEP 393.Martin v. Löwis2011-09-281-0/+7
| |
* | #2650: re.escape() no longer escapes the "_".Ezio Melotti2011-04-101-2/+2
|/
* #2650: Merge with 3.1.Ezio Melotti2011-03-251-22/+55
|\
| * #2650: Add tests with non-ascii chars for re.escape.Ezio Melotti2011-03-251-0/+16
| |
| * #2650: Refactor the tests for re.escape.Ezio Melotti2011-03-251-22/+40
| |
* | #11515: Merge with 3.1.Ezio Melotti2011-03-151-1/+1
|\ \ | |/
| * #11515: fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-151-1/+1
| |
| * Merged revisions 78729 via svnmerge fromEzio Melotti2010-03-061-0/+18
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r78729 | ezio.melotti | 2010-03-06 17:24:08 +0200 (Sat, 06 Mar 2010) | 1 line #6509: fix re.sub to work properly when the pattern, the string, and the replacement were all bytes. Patch by Antoine Pitrou. ........
| * Merged revisions 78664 via svnmerge fromVictor Stinner2010-03-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r78664 | victor.stinner | 2010-03-04 22:59:53 +0100 (jeu., 04 mars 2010) | 3 lines Issue #3299: replace PyObject_DEL() by Py_DECREF() in _sre module to fix a crash in pydebug mode. ........
| * Merged revisions 77708 via svnmerge fromEzio Melotti2010-01-231-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r77708 | ezio.melotti | 2010-01-23 12:49:39 +0200 (Sat, 23 Jan 2010) | 9 lines Merged revisions 77706 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r77706 | ezio.melotti | 2010-01-23 12:43:05 +0200 (Sat, 23 Jan 2010) | 1 line Increased the overflow value on test_dealloc to make sure that it is big enough even for wide builds. ........ ................
| * Merged revisions 77501 via svnmerge fromAntoine Pitrou2010-01-141-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r77501 | antoine.pitrou | 2010-01-14 18:34:48 +0100 (jeu., 14 janv. 2010) | 10 lines Merged revisions 77499 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r77499 | antoine.pitrou | 2010-01-14 18:25:24 +0100 (jeu., 14 janv. 2010) | 4 lines Issue #3299: Fix possible crash in the _sre module when given bad argument values in debug mode. Patch by Victor Stinner. ........ ................
| * Merged revisions 73715 via svnmerge fromGeorg Brandl2009-08-131-1/+1
| | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........
| * Merged revisions 74118 via svnmerge fromR. David Murray2009-07-211-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r74118 | r.david.murray | 2009-07-20 13:34:54 -0400 (Mon, 20 Jul 2009) | 5 lines Remove apparently unneeded and un-cleaned-up munging of sys.path from test_re. Tests pass on my machine without it, and I can't see any obvious place in the tests that would need it. ........
* | Reapply r83877.Antoine Pitrou2010-08-131-62/+0
| |
* | Revert r83877 in order to fix compilationAntoine Pitrou2010-08-091-0/+62
| |
* | reapply the revert made in r83875Senthil Kumaran2010-08-091-62/+0
| | | | | | | | | | | | | | | | | | Now the _collections is statically built, the build dependencies are in proper order and build works fine. Commit Log from r83874: Issue 9396. Apply functools.lru_cache in the place of the random flushing cache in the re module.
* | Revert 83784 adding functools.lru_cache() to the re module.Raymond Hettinger2010-08-091-0/+62
| | | | | | | | | | | | | | | | | | | | | | The problem is that the re module is imported by sysconfig and re needs functools which uses collections.OrderedDict() but the _collectionsmodule.c code is not yet constructed at this point in the build. The likely best solution will be to include _collections as part of the static build before the rest of the boot-strapping.
* | Issue 9396. Apply functools.lru_cache in the place of theRaymond Hettinger2010-08-091-62/+0
| | | | | | | | random flushing cache in the re module.
* | The default size of the re module's compiled regular expression cache hasGregory P. Smith2010-07-271-0/+63
| | | | | | | | | | | | | | | | been increased from 100 to 500 and the cache replacement policy has changed from simply clearing the entire cache on overflow to randomly forgetting 20% of the existing cached compiled regular expressions. This is a performance win for applications that use a lot of regular expressions and limits the impact of the performance hit anytime the cache is exceeded.
* | Merged revisions 78093 via svnmerge fromGeorg Brandl2010-03-141-2/+2
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78093 | georg.brandl | 2010-02-07 18:03:15 +0100 (So, 07 Feb 2010) | 1 line Remove unused imports in test modules. ........
* | #6509: fix re.sub to work properly when the pattern, the string, and the ↵Ezio Melotti2010-03-061-0/+18
| | | | | | | | replacement were all bytes. Patch by Antoine Pitrou.
* | Issue #3299: replace PyObject_DEL() by Py_DECREF() in _sre module to fix aVictor Stinner2010-03-041-0/+1
| | | | | | | | crash in pydebug mode.
* | Merged revisions 77706 via svnmerge fromEzio Melotti2010-01-231-1/+5
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77706 | ezio.melotti | 2010-01-23 12:43:05 +0200 (Sat, 23 Jan 2010) | 1 line Increased the overflow value on test_dealloc to make sure that it is big enough even for wide builds. ........
* | Merged revisions 77499 via svnmerge fromAntoine Pitrou2010-01-141-0/+6
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77499 | antoine.pitrou | 2010-01-14 18:25:24 +0100 (jeu., 14 janv. 2010) | 4 lines Issue #3299: Fix possible crash in the _sre module when given bad argument values in debug mode. Patch by Victor Stinner. ........
* | Issue #6561: '\d' in a regular expression should match only UnicodeMark Dickinson2009-07-281-0/+21
| | | | | | | | character category [Nd], not [No].
* | Remove apparently unneeded and un-cleaned-up munging of sys.path fromR. David Murray2009-07-201-3/+0
| | | | | | | | | | test_re. Tests pass on my machine without it, and I can't see any obvious place in the tests that would need it.
* | convert old fail* assertions to assert*Benjamin Peterson2009-06-301-1/+1
|/
* Issue #3756: make re.escape() handle bytes as well as str.Guido van Rossum2008-09-101-0/+14
| | | | Patch by Andrew McNamara, reviewed and tweaked by myself.
* Merged revisions 66364 via svnmerge fromGuido van Rossum2008-09-101-0/+4
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r66364 | guido.van.rossum | 2008-09-10 07:27:00 -0700 (Wed, 10 Sep 2008) | 3 lines Issue #3629: Fix sre "bytecode" validator for an end case. Reviewed by Amaury. ........
* Merged revisions 66321 via svnmerge fromBrett Cannon2008-09-091-1/+1
| | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r66321 | brett.cannon | 2008-09-08 17:49:16 -0700 (Mon, 08 Sep 2008) | 7 lines warnings.catch_warnings() now returns a list or None instead of the custom WarningsRecorder object. This makes the API simpler to use as no special object must be learned. Closes issue 3781. Review by Benjamin Peterson. ........
* Merged revisions ↵Benjamin Peterson2008-08-251-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 65910,65977,65980,65984,65986,66000,66011-66012,66014,66017,66020 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r65910 | benjamin.peterson | 2008-08-20 09:07:59 -0500 (Wed, 20 Aug 2008) | 1 line fix up the multiprocessing docs a little ........ r65977 | christian.heimes | 2008-08-22 14:47:25 -0500 (Fri, 22 Aug 2008) | 3 lines Silenced compiler warning Objects/stringlib/find.h:97: warning: 'stringlib_contains_obj' defined but not used Reviewed by Benjamin Peterson ........ r65980 | christian.heimes | 2008-08-22 15:10:27 -0500 (Fri, 22 Aug 2008) | 3 lines Fixed two format strings in the _collections module. For example Modules/_collectionsmodule.c:674: warning: format '%i' expects type 'int', but argument 2 has type 'Py_ssize_t' Reviewed by Benjamin Peterson ........ r65984 | christian.heimes | 2008-08-22 16:23:47 -0500 (Fri, 22 Aug 2008) | 1 line d is the correct format string ........ r65986 | mark.hammond | 2008-08-22 19:59:14 -0500 (Fri, 22 Aug 2008) | 2 lines Fix bug 3625: test issues on 64bit windows. r=pitrou ........ r66000 | benjamin.peterson | 2008-08-23 15:27:43 -0500 (Sat, 23 Aug 2008) | 5 lines #3643 add a few more checks to _testcapi to prevent segfaults Author: Victor Stinner Reviewer: Benjamin Peterson ........ r66011 | neal.norwitz | 2008-08-24 12:27:43 -0500 (Sun, 24 Aug 2008) | 1 line Ignore a couple more tests that report leaks inconsistently. ........ r66012 | neal.norwitz | 2008-08-24 12:29:53 -0500 (Sun, 24 Aug 2008) | 1 line Use the actual blacklist of leaky tests ........ r66014 | georg.brandl | 2008-08-24 13:11:07 -0500 (Sun, 24 Aug 2008) | 2 lines #3654: fix duplicate test method name. Review by Benjamin P. ........ r66017 | benjamin.peterson | 2008-08-24 16:55:03 -0500 (Sun, 24 Aug 2008) | 1 line remove note about unimplemented feature ........ r66020 | brett.cannon | 2008-08-24 18:15:19 -0500 (Sun, 24 Aug 2008) | 1 line Clarify that some attributes/methods are listed somewhat separately because they are not part of the threading API. ........
* #2834: Change re module semantics, so that str and bytes mixing is forbidden,Antoine Pitrou2008-08-191-20/+45
| | | | | and str (unicode) patterns get full unicode matching by default. The re.ASCII flag is also introduced to ask for ASCII matching instead.
* #3231: re.compile fails with some bytes patternsAntoine Pitrou2008-07-221-20/+23
|
* #3247 Get rid of Py_FindMethod; use tp_members instead.Amaury Forgeot d'Arc2008-07-021-0/+7
| | | | | | | Otherwise dir(_sre.SRE_Match) returns an empty list. First step: handle most occurrences, remove tp_getattr and fill the tp_methods and tp_members slots. Add some test about attribute access.
* #2621 rename test.test_support to test.supportBenjamin Peterson2008-05-201-1/+1
|
* Remove the sre module.Brett Cannon2008-05-111-10/+0
|