1575 Commits

Author SHA1 Message Date
Tim Peters
2457a7e368 Backport of a new test to check the interaction between cyclic GC
and the trashcan mechanism.
2002-03-28 23:18:08 +00:00
Michael W. Hudson
dcddbc3a26 Backport akuchling's netrc test. 2002-03-25 13:23:53 +00:00
cvs2svn
1f87903b31 This commit was manufactured by cvs2svn to create branch
'release22-maint'.
2002-03-25 13:23:53 +00:00
Michael W. Hudson
68977c28e3 Repeat trick with test_calendar.py 2002-03-25 12:33:24 +00:00
Barry Warsaw
25cf603523 test_no_parts_in_a_multipart(): A test for the layout of a
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.
2002-03-22 16:19:30 +00:00
Michael W. Hudson
d11f1fac66 Make StringIO work in non-unicode builds.
Lots of tests fail in non-unicode builds, but I think most of these are
"bugs" in the tests.  I hope so, anyway.
2002-03-18 13:31:31 +00:00
Michael W. Hudson
1c136f35dd amk's fix attached to
[ 516299 ] urlparse can get fragments wrong
2002-03-18 13:03:40 +00:00
Michael W. Hudson
724374d162 doerwalter's failing examples from
[ 529104 ] broken error handling in unicode-escape
2002-03-18 12:54:51 +00:00
Guido van Rossum
09f2187704 Fix for SF bug 528132 (Armin Rigo): classmethod().__get__() segfault
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.
2002-03-18 03:05:36 +00:00
Michael W. Hudson
2b92139064 Backport nnorwitz's checkin of revision 1.119:
Fix typo
2002-03-17 19:31:28 +00:00
Michael W. Hudson
3c9dbe200c Backport a little test from Skip. 2002-03-17 18:59:32 +00:00
Michael W. Hudson
bf69e0c3ab Backport Tim's checkin of revision 1.5:
This test left a new set of 3 junk files behind each time it was run.
2002-03-17 18:05:03 +00:00
Michael W. Hudson
98305a0d34 Take Tim's work on file.truncate out of 2.2.1 again. 2002-03-17 15:55:50 +00:00
Michael W. Hudson
eae11ba4d2 Merge jackjansen's checking of revision 1.5. 2002-03-16 18:33:31 +00:00
Michael W. Hudson
fe69139f7e Backport Tim's work on getting file.truncate working better on Win32.
"cvs diff | patch" managed to stick the NEWS item in the 2.2 final
section!  I wonder which silly man wrote patch <wink>.
2002-03-16 18:19:33 +00:00
Michael W. Hudson
bf05f2aaa6 backport gvanrossum's checkin of
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).
2002-03-16 17:57:26 +00:00
Michael W. Hudson
83a4a8a6c7 backport gvanrossum's checkin of
revision 1.120 of test_descr.py

Test for the fix I just checked in to moduleobject.c.

Bugfix candidate.
2002-03-15 10:35:55 +00:00
Michael W. Hudson
b14519ba18 backport akuchling's checkin of
revision 1.10 of test_cfgparser.py

As part of fixing bug #523301, add a simple test of ConfigParser.write()
2002-03-15 10:25:12 +00:00
Michael W. Hudson
3813281fec backport akuchling's checkin of
revision 1.6 of test_cfgparser

As part of fixing bug #523301, add a simple test of ConfigParser.write()
2002-03-15 10:24:42 +00:00
Michael W. Hudson
d82ae99170 backport gvanrossum's checkin of
revision 1.118 of test_descr.py

Add a check that SF bug 516727 is really fixed.
2002-03-14 17:16:27 +00:00
Michael W. Hudson
4e49936eb0 I don't understand it either...
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.
2002-03-14 17:06:55 +00:00
Michael W. Hudson
fd268a1924 backport gvanrossum's checkin of
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 *.
2002-03-11 10:20:04 +00:00
Michael W. Hudson
db17526601 backport tim_one's checkin of
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.
2002-03-08 13:39:25 +00:00
Michael W. Hudson
38983bc5e3 backport my checkin of
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.
2002-03-07 10:12:38 +00:00
Michael W. Hudson
77771c3194 backport my checkin of
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.
2002-03-07 10:09:48 +00:00