| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
- changed "group" operator to "groupref"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the pattern must have a fixed width.
- got rid of array-module dependencies; the match pro-
gram is now stored inside the pattern object, rather
than in an extra string buffer.
- cleaned up a various of potential leaks, api abuses,
and other minors in the engine module.
- use mal's new isalnum macro, rather than my own work-
around.
- untabified test_sre.py. seems like I removed a couple
of trailing spaces in the process...
|
|
|
|
|
|
|
| |
test is run as a script and when imported via the regression test
framework.
Problem reported by Phillip Porch <root@theporch.com>.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Test case for the pty module.
|
|
|
|
|
| |
Someone who knows what they are doing needs to replace this with something
that makes sense -- I'm not running Windows right now.
|
|
|
|
|
|
| |
Regression test for the new winreg.py module.
[Could a Windows person someone please review this?]
|
|
|
|
| |
- removed evil tabs from sre_parse and sre_compile
|
|
|
|
|
|
|
|
|
| |
allows the caller to execute the various tests in pseudo-random order -
default is still to execute tests in the order returned by findtests().
* moved initialization of the various flag variables to the main() function
definition, making it possible to execute regrtest.main() interactively
and still override default behavior.
|
|
|
|
|
| |
is actually by Fredrik Lundh). This will break the re tests --
Fredrik will fix this before the final release.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-- added pickling support (only works if sre is imported)
-- fixed wordsize problems in engine
(instead of casting literals down to the character size,
cast characters up to the literal size (same as the code
word size). this prevents false hits when you're matching
a unicode pattern against an 8-bit string. (unfortunately,
this broke another test, but I think the test should be
changed in this case; more on that on python-dev)
-- added sre.purge function
(unofficial, clears the cache)
|
|
|
|
| |
- untabified sre_constants.py
|
|
|
|
| |
Added test output.
|
|
|
|
|
|
|
| |
New test for huge formatting strings (these could cause core
dumps in previous versions).
By Trent Mick.
|
| |
|
|
|
|
| |
Updated test output (the ucn tests are now in test_ucn).
|
|
|
|
| |
Moved tests of new Unicode Char Name support to a separate test.
|
|
|
|
| |
(closes #3 and #7 from the status report)
|
| |
|
|
|
|
| |
- added test suite
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
errors in some of the hash algorithms. For exmaple, in float_hash and
complex_hash a certain part of the value is not included in the hash
calculation. See Tim's, Guido's, and my discussion of this on
python-dev in May under the title "fix float_hash and complex_hash for
64-bit *nix"
(2) The hash algorithms that use pointers (e.g. func_hash, code_hash)
are universally not correct on Win64 (they assume that sizeof(long) ==
sizeof(void*))
As well, this patch significantly cleans up the hash code. It adds the
two function _Py_HashDouble and _PyHash_VoidPtr that the various
hashing routine are changed to use.
These help maintain the hash function invariant: (a==b) =>
(hash(a)==hash(b))) I have added Lib/test/test_hash.py and
Lib/test/output/test_hash to test this for some cases.
|
| |
|
|
|
|
| |
New test output
|
|
|
|
|
|
|
|
| |
Testing: test_array.py was also extended to check that one can set the
full range of values for each of the integral signed and unsigned
array types.
This closes SourceForge patch #100506.
|
|
|
|
| |
Updated test output.
|
|
|
|
|
| |
Added tests for the new Unicode character name support in the
standard unicode-escape codec.
|
|
|
|
|
|
|
| |
<skip@mojam.com>. Revisions to the markup to make it pass LaTeX, added
an index entry and a reference from the sys.exitfunc documentation.
This closes SourceForge patch #100620.
|
| |
|
|
|
|
| |
parsing the sample data once with 8-bit strings and once with Unicode.
|
| |
|
| |
|
|
|
|
| |
raised, caught, and converted to a string.
|
| |
|
|
|
|
|
| |
Removed a test which can fail when the default locale setting
uses a Latin-1 encoding. The test case is not applicable anymore.
|
|
|
|
|
|
|
|
| |
Fixed some tests to not cause the script to fail, but rather
output a warning (which then is caught by regrtest.py as wrong
output). This is needed to make test_unicode.py run through
on JPython.
Thanks to Finn Bock.
|
|
|
|
|
| |
test. Someone with more Linux audio knowledge should at least take a
brief look at it.
|
|
|
|
|
| |
Updated to the fix in %c formatting: it now always checks for
a one character argument.
|
|
|
|
|
| |
Fix test of the "math" module so it does not break on platforms that do
not offer rint(); just skip that portion of the test in that case.
|
| |
|