Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Whitespace normalization. | Tim Peters | 2004-01-18 | 1 | -1/+1 |
| | |||||
* | Implemented non-recursive SRE matching. | Gustavo Niemeyer | 2003-10-17 | 1 | -7/+7 |
| | |||||
* | Fix and test for bug #764548: | Just van Rossum | 2003-07-02 | 1 | -0/+10 |
| | | | | | | Use isinstance() instead of comparing types directly, to enable subclasses of str and unicode to be used as patterns. Blessed by /F. | ||||
* | fixed typo in comment | Just van Rossum | 2003-07-02 | 1 | -1/+1 |
| | |||||
* | Many new tests, based on gcov's coverage information. | Gustavo Niemeyer | 2003-06-20 | 1 | -0/+172 |
| | | | | | | From gcov's output (based on a locally changed _sre.c): 82.07% of 1372 source lines executed in file ./Modules/_sre.c | ||||
* | Combine the functionality of test_support.run_unittest() | Walter Dörwald | 2003-05-01 | 1 | -4/+2 |
| | | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807. | ||||
* | Fix for part of the problem mentioned in #725149 by Greg Chapman. | Gustavo Niemeyer | 2003-04-27 | 1 | -0/+7 |
| | | | | | | | | | | | | | | | | | | | This problem is related to a wrong behavior from mark_save/restore(), which don't restore the mark_stack_base before restoring the marks. Greg's suggestion was to change the asserts, which happen to be the only recursive ops that can continue the loop, but the problem would happen to any operation with the same behavior. So, rather than hardcoding this into asserts, I have changed mark_save/restore() to always restore the stackbase before restoring the marks. Both solutions should fix these two cases, presented by Greg: >>> re.match('(a)(?:(?=(b)*)c)*', 'abb').groups() ('b', None) >>> re.match('(a)((?!(b)*))*', 'abb').groups() ('b', None, None) The rest of the bug and patch in #725149 must be discussed further. | ||||
* | Applied patch #725106, by Greg Chapman, fixing capturing groups | Gustavo Niemeyer | 2003-04-27 | 1 | -0/+19 |
| | | | | | | | | | | | | | | | | | | | | within repeats of alternatives. The only change to the original patch was to convert the tests to the new test_re.py file. This patch fixes cases like: >>> re.match('((a)|b)*', 'abc').groups() ('b', '') Which is wrong (it's impossible to match the empty string), and incompatible with other regex systems, like the following examples show: % perl -e '"abc" =~ /^((a)|b)*/; print "$1 $2\n";' b a % echo "abc" | sed -r -e "s/^((a)|b)*/\1 \2|/" b a|c | ||||
* | final bit of tests converted from test_sre | Skip Montanaro | 2003-04-25 | 1 | -8/+25 |
| | |||||
* | more tests converted from test_sre | Skip Montanaro | 2003-04-25 | 1 | -14/+35 |
| | |||||
* | more tests from test_sre | Skip Montanaro | 2003-04-25 | 1 | -2/+44 |
| | |||||
* | copy a few tests from test_sre | Skip Montanaro | 2003-04-25 | 1 | -0/+15 |
| | |||||
* | Fix test_limitations(). The match there is *expected* to raise | Guido van Rossum | 2003-04-25 | 1 | -1/+6 |
| | | | | RuntimeError. | ||||
* | first cut at unittest version of re tests | Skip Montanaro | 2003-04-24 | 1 | -374/+297 |
| | |||||
* | Complete the absolute import patch for the test suite. All relative | Barry Warsaw | 2002-07-30 | 1 | -1/+1 |
| | | | | | | | | imports of test modules now import from the test package. Other related oddities are also fixed (like DeprecationWarning filters that weren't specifying the full import part, etc.). Also did a general code cleanup to remove all "from test.test_support import *"'s. Other from...import *'s weren't changed. | ||||
* | Get rid of relative imports in all unittests. Now anything that | Barry Warsaw | 2002-07-23 | 1 | -1/+1 |
| | | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :) | ||||
* | Check in a testcase for SF bug #449000: re.sub(r'\n', ...) broke. | Guido van Rossum | 2001-08-10 | 1 | -0/+6 |
| | |||||
* | SRE 2.1b1: don't do unicode tests under 1.5.2, or on unicode | Fredrik Lundh | 2001-03-22 | 1 | -3/+8 |
| | | | | strings/patterns. | ||||
* | String method conversion. | Eric S. Raymond | 2001-02-09 | 1 | -1/+1 |
| | | | | (This one was trivial -- no actual string. references in it!) | ||||
* | This patch removes all uses of "assert" in the regression test suite | Marc-André Lemburg | 2001-01-17 | 1 | -74/+76 |
| | | | | | | | and replaces them with a new API verify(). As a result the regression suite will also perform its tests in optimization mode. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum. | ||||
* | Update the code to better reflect recommended style: | Fred Drake | 2000-12-12 | 1 | -11/+11 |
| | | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects. | ||||
* | Make reindent.py happy (convert everything to 4-space indents!). | Fred Drake | 2000-10-23 | 1 | -1/+1 |
| | |||||
* | Better conformance to the Python Style Guide: use spaces around operators. | Fred Drake | 2000-08-18 | 1 | -32/+33 |
| | |||||
* | -- enabled some temporarily disabled RE tests | Fredrik Lundh | 2000-08-08 | 1 | -6/+32 |
| | | | | | -- added basic unicode tests to test_re -- added test case for Sjoerd's xmllib problem to re_tests | ||||
* | -- whitespace cleanup (more tests to be added in the next commit) | Fredrik Lundh | 2000-08-08 | 1 | -23/+23 |
| | |||||
* | Comment out repeated-group test for the moment | Andrew M. Kuchling | 2000-08-03 | 1 | -1/+1 |
| | |||||
* | Add nasty test case that overflows the stack with a repeated group | Andrew M. Kuchling | 2000-08-03 | 1 | -0/+4 |
| | |||||
* | Switch to sre for regular expression matching (the new mini-re module | Guido van Rossum | 2000-06-30 | 1 | -4/+4 |
| | | | | | is actually by Fredrik Lundh). This will break the re tests -- Fredrik will fix this before the final release. | ||||
* | Added tests for findall(). | Guido van Rossum | 1998-07-17 | 1 | -1/+21 |
| | | | | | Added test for m.groups() with default. Added a few prints announcing various tests in verbose mode. | ||||
* | Remove RCS and #! cruft at top. | Guido van Rossum | 1998-06-26 | 1 | -4/+0 |
| | |||||
* | AMK's latest | Guido van Rossum | 1998-04-03 | 1 | -13/+92 |
| | |||||
* | Mass check-in after untabifying all files that need it. | Guido van Rossum | 1998-03-26 | 1 | -68/+68 |
| | |||||
* | Added tests for qualified sub and split | Guido van Rossum | 1998-01-14 | 1 | -0/+15 |
| | |||||
* | Add tests for re.L(OCALE). | Guido van Rossum | 1997-12-30 | 1 | -1/+7 |
| | |||||
* | New re version from AMK | Guido van Rossum | 1997-12-08 | 1 | -8/+42 |
| | |||||
* | Change test for re.sub() involving g<...> to use a multi-character | Guido van Rossum | 1997-10-08 | 1 | -1/+1 |
| | | | | | identifier. The previous re.py had a bug that wouldn't show up with single-char identifier... | ||||
* | The re test suite is very slow on slower hosts. | Guido van Rossum | 1997-09-04 | 1 | -0/+3 |
| | | | | To save time, only run the first and last 10 tests except in verbose mode. | ||||
* | 1.5a3 prerelease 1 from AMK | Guido van Rossum | 1997-08-13 | 1 | -1/+12 |
| | |||||
* | Some new tests by Jeffrey | Guido van Rossum | 1997-07-18 | 1 | -11/+72 |
| | |||||
* | Added tests for sub, subn, and split. | Guido van Rossum | 1997-07-17 | 1 | -1/+47 |
| | |||||
* | Jeffrey's latest -- seems to solve most problems! | Guido van Rossum | 1997-07-17 | 1 | -6/+18 |
| | |||||
* | Merged Jeffrey's changes in. | Guido van Rossum | 1997-07-15 | 1 | -1/+8 |
| | |||||
* | Tweak re_tests and test_re to differentiate between | Guido van Rossum | 1997-07-15 | 1 | -1/+1 |
| | | | | groups that have no value and groups that are out of bounds. | ||||
* | More tweaks; re.py is nearly there... | Guido van Rossum | 1997-07-15 | 1 | -4/+3 |
| | |||||
* | Removed the traceback output in non-verbose mode | Guido van Rossum | 1997-07-11 | 1 | -1/+2 |
| | |||||
* | Some small nits. | Guido van Rossum | 1997-07-11 | 1 | -3/+5 |
| | |||||
* | test suite for re.py | Guido van Rossum | 1997-07-11 | 1 | -0/+56 |