| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-- 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.
|
| |
|
| |
|
|
|
|
|
| |
Added another test for string formatting (the one that
produced the core dump now fixed in unicodeobject.c).
|
|
|
|
|
|
|
|
| |
weird errors. (E.g. see thread "weird bug in test_winreg" in python-dev.)
Since it's actually useful to be able to re-run an individual test
after running test.autotest, we keep the unloading code, but only for
modules whose full name starts with "test.".
|
| |
|
|
|
|
| |
Store sys.exc_info()[:2] instead.
|
| |
|
| |
|
|
|
|
|
|
| |
the change to regrtest.py to unload all newly imported modules did
something bad to the threads -- and I realized that they would never
stop!
|
| |
|
|
|
|
|
| |
after each test has been run. This avoids excessive memory growth
during the tests.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
"""
In the course of debugging this I also saw that cPickle is
inconsistent with pickle - if you attempt a pickle.load or pickle.dump
on a closed file, you get a ValueError, whereas the corresponding
cPickle operations give an IOError. Since cPickle is advertised as
being compatible with pickle, I changed these exceptions to match.
"""
|
|
|
|
|
| |
Note that comparisons of deeply nested objects can still dump core in
extreme cases.
|
|
|
|
| |
Added test for Unicode string concatenation.
|
|
|
|
| |
Added test output for Unicode string concatenation test.
|
|
|
|
|
| |
Modified .splitlines() tests according to the changes
in stringobject.c.
|
|
|
|
|
| |
Modified .splitlines() tests according to the changes
in unicodeobject.c.
|