summaryrefslogtreecommitdiffstats
path: root/Lib/test/re_tests.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #22493: Inline flags now should be used only at the start of theSerhiy Storchaka2016-09-111-4/+4
| | | | | regular expression. Deprecation warning is emitted if uses them in the middle of the regular expression.
* #27364: fix "incorrect" uses of escape character in the stdlib.R David Murray2016-09-081-2/+2
| | | | | | | And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter.
* Issue #23622: Unknown escapes in regular expressions that consist of ``'\'``Serhiy Storchaka2015-03-241-3/+3
| | | | | and ASCII letter now raise a deprecation warning and will be forbidden in Python 3.6.
* Issue #22838: All test_re tests now work with unittest test discovery.Serhiy Storchaka2014-12-011-1/+1
|
* convert shebang lines: python -> python3Benjamin Peterson2010-03-111-1/+1
|
* #2834: Change re module semantics, so that str and bytes mixing is forbidden,Antoine Pitrou2008-08-191-1/+1
| | | | | 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-6/+2
|
* More work on bug #672491 and patch #712900.Gustavo Niemeyer2003-04-201-0/+4
| | | | | | | | | | | | | | | | I've applied a modified version of Greg Chapman's patch. I've included the fixes without introducing the reorganization mentioned, for the sake of stability. Also, the second fix mentioned in the patch don't fix the mentioned problem anymore, because of the change introduced by patch #720991 (by Greg as well). The new fix wasn't complicated though, and is included as well. As a note. It seems that there are other places that require the "protection" of LASTMARK_SAVE()/LASTMARK_RESTORE(), and are just waiting for someone to find how to break them. Particularly, I belive that every recursion of SRE_MATCH() should be protected by these macros. I won't do that right now since I'm not completely sure about this, and we don't have much time for testing until the next release.
* Fix from SF patch #633359 by Greg Chapman for SF bug #610299:Guido van Rossum2003-02-241-0/+1
| | | | | | | | | The problem is in sre_compile.py: the call to _compile_charset near the end of _compile_info forgets to pass in the flags, so that the info charset is not compiled with re.U. (The info charset is used when searching to find the first character at which a match could start; it is not generated for patterns beginning with a repeat like '\w{1}'.)
* Whitespace normalization.Tim Peters2003-02-191-1/+1
|
* SF patch #682432, add lookbehind testsNeal Norwitz2003-02-131-0/+7
|
* Fixed bug #470582, using a modified version of patch #527371,Gustavo Niemeyer2002-11-061-0/+2
| | | | | | | | | | | | | | | | | | | from Greg Chapman. * Modules/_sre.c (lastmark_restore): New function, implementing algorithm to restore a state to a given lastmark. In addition to the similar algorithm used in a few places of SRE_MATCH, restore lastindex when restoring lastmark. (SRE_MATCH): Replace lastmark inline restoring by lastmark_restore(), function. Also include it where missing. In SRE_OP_MARK, set lastindex only if i > lastmark. * Lib/test/re_tests.py * Lib/test/test_sre.py Included regression tests for the fixed bugs. * Misc/NEWS Mention fixes.
* bug #133283, #477728, #483789, #490573Fredrik Lundh2001-12-091-2/+8
| | | | | | | backed out of broken minimal repeat patch from July also fixed a couple of minor potential resource leaks in pattern_subx (Guido had already fixed the big one)
* reapplied darryl gallion's minimizing repeat fix. I'm still not 100%Fredrik Lundh2001-07-021-0/+2
| | | | | sure about this one, but test #133283 now works even with the fix in place, and so does the test suite. we'll see what comes up...
* sre 2.1b2 update:Fredrik Lundh2001-03-221-0/+11
| | | | | | - take locale into account for word boundary anchors (#410271) - restored 2.0's *? behaviour (#233283, #408936 and others) - speed up re.sub/re.subn
* detect attempts to repeat anchors (fixes bug #130748)Fredrik Lundh2001-02-181-0/+2
|
* from the really-stupid-bug department: uppercase literals should matchFredrik Lundh2001-01-151-5/+17
| | | | | | | uppercase strings also when the IGNORECASE flag is set (bug #128899) (also added test cases for recently fixed bugs to the regression suite -- or in other words, check in re_tests.py too...)
* Fixed too ambitious "nothing to repeat" check. Closes bug #114033.Fredrik Lundh2000-10-071-0/+3
|
* SRE didn't handle character category followed by hyphen inside aFredrik Lundh2000-10-071-0/+2
| | | | | character class. Fix provided by Andrew Kuchling. Closes bug #116251.
* Recompile pattern if (?x) flag was found inside the pattern during theFredrik Lundh2000-10-031-2/+4
| | | | first scan. Closes bug #115040.
* Fixed negative lookahead/lookbehind. Closes bug #115618.Fredrik Lundh2000-10-031-0/+2
|
* - don't hang if group id is followed by whitespace (closes bug #114660)Fredrik Lundh2000-09-241-1/+0
|
* closes bug #112468 (and all the other bugs that surfaced whenFredrik Lundh2000-08-311-15/+38
| | | | I fixed the a bug in the regression test harness...)
* -- enabled some temporarily disabled RE testsFredrik Lundh2000-08-081-0/+6
| | | | | -- added basic unicode tests to test_re -- added test case for Sjoerd's xmllib problem to re_tests
* -- whitespace cleanup (real changes coming in next checkin)Fredrik Lundh2000-08-081-20/+20
|
* AMK's latestGuido van Rossum1998-04-031-12/+8
|
* New re version from AMKGuido van Rossum1997-12-081-11/+66
|
* Added tests for \b, \B (AMK).Guido van Rossum1997-08-151-0/+13
|
* 1.5a3 prerelease 1 from AMKGuido van Rossum1997-08-131-2/+13
|
* Several additions from Jeffrey.Guido van Rossum1997-07-171-5/+22
|
* Jeffrey's latest -- seems to solve most problems!Guido van Rossum1997-07-171-19/+47
|
* Fixed a syntax error caused by a bad line in the Perl source.Guido van Rossum1997-07-151-1/+1
|
* Merged my changes in, and added all converted Perl tests.Guido van Rossum1997-07-151-24/+284
|
* Jeffrey's versionGuido van Rossum1997-07-151-239/+169
|
* Tweak re_tests and test_re to differentiate betweenGuido van Rossum1997-07-151-3/+5
| | | | groups that have no value and groups that are out of bounds.
* More tweaks; re.py is nearly there...Guido van Rossum1997-07-151-1/+1
|
* Jeffrey's newestGuido van Rossum1997-07-151-1/+1
|
* test suite for re.pyGuido van Rossum1997-07-111-0/+278