| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
and the trashcan mechanism.
|
| | |
|
| |
|
|
| |
'release22-maint'.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
multipart/mixed message with no attachments.
test_one_part_in_a_multipart(): A test for the layout of a
multipart/mixed message with a single attachment.
test_seq_parts_in_a_multipart(): A test for the layout of a
multipart/mixed message with a single attachment that happens to be a
sequence of length one.
These tests ensure no regressions on the fix for SF bug #531966.
I will merge these into the standalone email package and Python 2.3
trunk separately.
|
| |
|
|
|
| |
Lots of tests fail in non-unicode builds, but I think most of these are
"bugs" in the tests. I hope so, anyway.
|
| |
|
|
| |
[ 516299 ] urlparse can get fragments wrong
|
| |
|
|
| |
[ 529104 ] broken error handling in unicode-escape
|
| |
|
|
|
|
|
|
|
|
|
| |
The proper fix is not quite what was submitted; it's really better to
take the class of the object passed rather than calling PyMethod_New
with NULL pointer args, because that can then cause other core dumps
later.
I also added a testcase for the fix to classmethods() in test_descr.py.
I'll apply this to 2.3 too.
|
| |
|
|
| |
Fix typo
|
| | |
|
| |
|
|
| |
This test left a new set of 3 junk files behind each time it was run.
|
| | |
|
| | |
|
| |
|
|
|
| |
"cvs diff | patch" managed to stick the NEWS item in the 2.2 final
section! I wonder which silly man wrote patch <wink>.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
revision 1.121 of test_descr.py
"Fix" for SF bug #520644: __slots__ are not pickled.
As promised in my response to the bug report, I'm not really fixing
it; in fact, one could argule over what the proper fix should do.
Instead, I'm adding a little magic that raises TypeError if you try to
pickle an instance of a class that has __slots__ but doesn't define or
override __getstate__. This is done by adding a bozo __getstate__
that always raises TypeError.
Bugfix candidate (also the checkin to typeobject.c, of course).
|
| |
|
|
|
|
|
|
| |
revision 1.120 of test_descr.py
Test for the fix I just checked in to moduleobject.c.
Bugfix candidate.
|
| |
|
|
|
|
| |
revision 1.10 of test_cfgparser.py
As part of fixing bug #523301, add a simple test of ConfigParser.write()
|
| |
|
|
|
|
| |
revision 1.6 of test_cfgparser
As part of fixing bug #523301, add a simple test of ConfigParser.write()
|
| |
|
|
|
|
| |
revision 1.118 of test_descr.py
Add a check that SF bug 516727 is really fixed.
|
| |
|
|
|
|
|
|
|
|
| |
backport jhylton's checkin of
revision 1.7 of test_pyclbr.py
Fix pyclbr test of httplib without really understanding pyclbr.
It seems that the new class HTTP11 in httplib.test() isn't
discoverable by pyclbr, which causes this test to fail.
|
| |
|
|
|
|
|
|
|
|
| |
revision 1.117 of test_descr.py
Bugfix candidate.
Adapter from SF patch 528038; fixes SF bug 527816.
The wrapper for __nonzero__ should be wrap_inquiry rather than
wrap_unaryfunc, since the slot returns an int, not a PyObject *.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
revision 1.20 of test_mmap.py
SF bug 515943: searching for data with \0 in mmap.
mmap_find_method(): this obtained the string to find via s#, but it
ignored its length, acting as if it were \0-terminated instead.
Someone please run on Linux too (the extended test_mmap works on Windows).
Bugfix candidate.
|
| |
|
|
|
|
|
|
|
|
|
| |
revision 1.14 of pickletester.py
Special support for pickling os.stat and os.stat_vfs results portably
(the types come from different modules on different platforms).
Added tests for pickling these types.
May be a bugfix candidate.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
revision 1.3 of test_structseq.py
Test for
[ 526039 ] devious code can crash structseqs
Bugfix candidate.
I haven't actually fixed this on the branch yet. Will soon.
|
| |
|
|
|
|
|
|
|
| |
revision 1.116 of test_descr.py
_PyLong_Copy(): was creating a copy of the absolute value, but should
copy the sign too. Added a test to test_descr to ensure that it does.
Bugfix candidate.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
revision 1.115 of test_descr.py
SF patch 514641 (Naofumi Honda) - Negative ob_size of LongObjects
Due to the bizarre definition of _PyLong_Copy(), creating an instance
of a subclass of long with a negative value could cause core dumps
later on. Unfortunately it looks like the behavior of _PyLong_Copy()
is quite intentional, so the fix is more work than feels comfortable.
This fix is almost, but not quite, the code that Naofumi Honda added;
in addition, I added a test case.
I haven't quite worked out how to port the fix yet, but the test cases
can go straight over.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
revision 1.13 of pickletester.py
A fix & test for
[ 496873 ] structseqs unpicklable
by adding a __reduce__ method to structseqs.
Will also commit this to the 2.2.1 branch momentarily.
|
| |
|
|
| |
when no arguments are passed
|
| |
|
|
|
|
|
|
|
|
|
| |
revision 1.44 of test_b1.py
revision 1.31 of test_b2.py
SF patch #523169, by Samuele Pedroni.
There were never tests for the fact that list() always returns a *new*
list object, even when the argument is a list, while tuple() may
return a reference to the argument when it is a tuple. Now there are.
|
| |
|
|
|
|
|
|
|
|
| |
revision 1.7 of test_builtin
SF patch #523169, by Samuele Pedroni.
There were never tests for the fact that list() always returns a *new*
list object, even when the argument is a list, while tuple() may
return a reference to the argument when it is a tuple. Now there are.
|
| |
|
|
|
|
|
|
| |
revision 1.11 of test_descrtut.py
Somebody made list.__dict__ grow a '__doc__' key, but apparently didn't
run the test suite afterwards. Either that, or whether '__doc__' shows
up is platform-dependent!
|
| |
|
|
|
|
|
|
|
|
|
|
| |
revision 1.10 of test_thread.py
revision 1.5 of test_threaded_import.py
SF bug #516372: test_thread: unhandled exc. in thread
Fix exit races in test_thread.py and test_threaded_import.py.
I suspect the bug is provokable only under Linux (where child threads
seem to get lots of cycles before they get killed after the main thread
exits), or on multi-processor machines running other OSes.
Bugfix candidate.
|
| | |
|
| |
|
|
|
|
|
| |
Backport bwarsaw's checkin of revision 1.25:
test_multipart_one_part(): Idempotency test case for a multipart/*
with only one subpart.
|
| |
|
|
|
|
|
|
|
| |
Backport lemburg's checkin of revision 1.11:
Restore Python 2.1 StringIO.py behaviour: support concatenating
Unicode string snippets to larger Unicode strings.
This fix should also go into Python 2.2.1.
|
| |
|
|
| |
'release22-maint'.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
copy.py, 1.23 & test_descr.py, 1.114:
Fix for SF bug ##497426: can't deepcopy recursive new objects
deepcopy(), _reconstruct(): pass the memo to the other function, so
that recursive data structures built out of new-style objects may be
deeply copied correctly.
2.2.1 bugfix!
|
| |
|
|
| |
'release22-maint'.
|
| |
|
|
|
| |
Utils.parseaddr('<>') -- i.e. on an empty address, returns the empty
string. Built on rfc822, this used to return None.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
under regrtest.
|
| |
|
|
| |
__safe_for_unpickling__ attribute.
|
| |
|
|
| |
instead.
|
| |
|
|
|
| |
skipped on Mac OS X. Not sure yet about test_locale.py: this may be
due to my copy of Mac OS X (although it talks english fine enough).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix for SF bug #492345. (I could've sworn I checked this in, but
apparently I didn't!)
This code:
class Classic:
pass
class New(Classic):
__metaclass__ = type
attempts to create a new-style class with only classic bases -- but it
doesn't work right. Attempts to fix it so it works caused problems
elsewhere, so I'm now raising a TypeError in this case.
|
| | |
|
| |
|
|
| |
tests of complex().
|