summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Backport of a new test to check the interaction between cyclic GCTim Peters2002-03-281-0/+29
| | | | and the trashcan mechanism.
* Backport akuchling's netrc test.Michael W. Hudson2002-03-251-1/+0
|
* This commit was manufactured by cvs2svn to create branchcvs2svn2002-03-251-0/+43
| | | | 'release22-maint'.
* Repeat trick with test_calendar.pyMichael W. Hudson2002-03-251-0/+23
|
* test_no_parts_in_a_multipart(): A test for the layout of aBarry Warsaw2002-03-221-0/+76
| | | | | | | | | | | | | | | | 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.
* Make StringIO work in non-unicode builds.Michael W. Hudson2002-03-181-12/+13
| | | | | Lots of tests fail in non-unicode builds, but I think most of these are "bugs" in the tests. I hope so, anyway.
* amk's fix attached toMichael W. Hudson2002-03-182-0/+23
| | | | [ 516299 ] urlparse can get fragments wrong
* doerwalter's failing examples fromMichael W. Hudson2002-03-181-0/+8
| | | | [ 529104 ] broken error handling in unicode-escape
* Fix for SF bug 528132 (Armin Rigo): classmethod().__get__() segfaultGuido van Rossum2002-03-181-0/+5
| | | | | | | | | | | 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.
* Backport nnorwitz's checkin of revision 1.119:Michael W. Hudson2002-03-171-1/+1
| | | | Fix typo
* Backport a little test from Skip.Michael W. Hudson2002-03-171-0/+4
|
* Backport Tim's checkin of revision 1.5:Michael W. Hudson2002-03-171-11/+18
| | | | This test left a new set of 3 junk files behind each time it was run.
* Take Tim's work on file.truncate out of 2.2.1 again.Michael W. Hudson2002-03-171-30/+15
|
* Merge jackjansen's checking of revision 1.5.Michael W. Hudson2002-03-161-0/+8
|
* Backport Tim's work on getting file.truncate working better on Win32.Michael W. Hudson2002-03-161-15/+30
| | | | | "cvs diff | patch" managed to stick the NEWS item in the 2.2 final section! I wonder which silly man wrote patch <wink>.
* backport gvanrossum's checkin ofMichael W. Hudson2002-03-161-0/+89
| | | | | | | | | | | | | | | 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).
* backport gvanrossum's checkin ofMichael W. Hudson2002-03-151-0/+12
| | | | | | | | revision 1.120 of test_descr.py Test for the fix I just checked in to moduleobject.c. Bugfix candidate.
* backport akuchling's checkin ofMichael W. Hudson2002-03-151-0/+29
| | | | | | revision 1.10 of test_cfgparser.py As part of fixing bug #523301, add a simple test of ConfigParser.write()
* backport akuchling's checkin ofMichael W. Hudson2002-03-151-0/+1
| | | | | | revision 1.6 of test_cfgparser As part of fixing bug #523301, add a simple test of ConfigParser.write()
* backport gvanrossum's checkin ofMichael W. Hudson2002-03-141-0/+10
| | | | | | revision 1.118 of test_descr.py Add a check that SF bug 516727 is really fixed.
* I don't understand it either...Michael W. Hudson2002-03-141-1/+2
| | | | | | | | | | 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.
* backport gvanrossum's checkin ofMichael W. Hudson2002-03-111-0/+3
| | | | | | | | | | 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 *.
* backport tim_one's checkin ofMichael W. Hudson2002-03-081-0/+25
| | | | | | | | | | | | 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.
* backport my checkin ofMichael W. Hudson2002-03-071-0/+11
| | | | | | | | | | | 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.
* backport my checkin ofMichael W. Hudson2002-03-071-0/+12
| | | | | | | | | | | | 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.
* backport tim_one's checkin ofMichael W. Hudson2002-03-051-0/+1
| | | | | | | | | 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.
* backport gvanrossum's checkin ofMichael W. Hudson2002-03-051-0/+4
| | | | | | | | | | | | | | | | | | | 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.
* backport my checkin ofMichael W. Hudson2002-03-051-0/+7
| | | | | | | | | | | | 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.
* SF #506611, fix sys.setprofile(), sys.settrace() core dumpsNeal Norwitz2002-03-032-0/+10
| | | | when no arguments are passed
* backport gvanrossum's checkin ofMichael W. Hudson2002-02-282-1/+13
| | | | | | | | | | | 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.
* backport gvanrossum's checkin ofMichael W. Hudson2002-02-281-0/+1
| | | | | | | | | | 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.
* backport tim_one's checkin ofMichael W. Hudson2002-02-251-0/+1
| | | | | | | | 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!
* backport tim_one's checkin ofMichael W. Hudson2002-02-222-5/+13
| | | | | | | | | | | | 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.
* Added regression test for start()/stop() returning bogus NULL.Fred Drake2002-02-081-0/+10
|
* It's merge time!Michael W. Hudson2002-01-281-1/+5
| | | | | | | Backport bwarsaw's checkin of revision 1.25: test_multipart_one_part(): Idempotency test case for a multipart/* with only one subpart.
* It's merge time!Michael W. Hudson2002-01-281-0/+15
| | | | | | | | | 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.
* This commit was manufactured by cvs2svn to create branchcvs2svn2002-01-281-0/+8
| | | | 'release22-maint'.
* Backport gvanrossum's checkin of revisionsMichael W. Hudson2002-01-041-1/+10
| | | | | | | | | | | | 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!
* This commit was manufactured by cvs2svn to create branchcvs2svn2001-12-281-0/+7
| | | | 'release22-maint'.
* test_parseaddr_empty(): New test for assuring thatBarry Warsaw2001-12-201-0/+4
| | | | | Utils.parseaddr('<>') -- i.e. on an empty address, returns the empty string. Built on rfc822, this used to return None.
* Whitespace normalization.Tim Peters2001-12-201-1/+0
|
* Add test for pickling new-style class with custom metaclass.Guido van Rossum2001-12-191-0/+12
|
* Add some additional tests that check more proxy behaviors.Fred Drake2001-12-191-0/+18
|
* Fix the test control support for the pickle & cPickle tests so the tests runFred Drake2001-12-192-8/+22
| | | | under regrtest.
* The test using class initarg failed, because it was lacking aGuido van Rossum2001-12-191-0/+3
| | | | __safe_for_unpickling__ attribute.
* Don't call resetwarnings(). Be more restrictive in what we filter outGuido van Rossum2001-12-151-3/+1
| | | | instead.
* Added test_socketserver and test_unicode_file to tests expected to beJack Jansen2001-12-141-0/+2
| | | | | 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).
* (Merge into trunk.)Guido van Rossum2001-12-141-0/+10
| | | | | | | | | | | | | | | | | 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.
* Undo inadvertent change to test_scope in previous checkinJeremy Hylton2001-12-131-2/+1
|
* Add a comment explaining what these tests are for, and where to look forFred Drake2001-12-131-0/+3
| | | | tests of complex().