summaryrefslogtreecommitdiffstats
path: root/Lib/test/output
Commit message (Collapse)AuthorAgeFilesLines
* adding passing test. testing for g(*Nothing()) where Nothing is a ↵Samuele Pedroni2004-02-211-0/+1
| | | | user-defined iterator.
* check getservbyname with several protocols, not just telnetSkip Montanaro2003-06-211-1/+0
|
* Backport fix for SF bug 734869 and sundry compiler cleanups.Jeremy Hylton2003-05-221-0/+1
|
* Backport Guido's checkins which disabled the bastion testsNeal Norwitz2003-01-131-10/+0
|
* Use \n as line separator in stead of \r\n, which causes problems in ↵Jack Jansen2002-10-101-3/+3
| | | | MacPython 2.2.
* Fix some code that was added to the r22-maint branch to allow it to work withFred Drake2002-10-081-1/+4
| | | | | | arbitrary versions of Expat. Not applicable to Python 2.3, which will incorporate an Expat that does not need this crutch.
* Remove unused output file.Fred Drake2002-09-261-217/+0
|
* Backport:Neal Norwitz2002-09-251-0/+1
| | | | | | Fix SF # 591713, Fix "file:" URL to have right no. of /'s, by Bruce Atherton Add a test too. urljoin() would make file:/tmp/foo instead of file:///tmp/foo
* Regenerate test_unicodedata output after the change to the UTF-8 codec.Marc-André Lemburg2002-09-241-1/+1
|
* Backport of SF bug # 585792, Invalid mmap crashes Python interpreterNeal Norwitz2002-09-051-0/+1
| | | | | | | | Raise ValueError if user passes a size to mmap which is larger than the file. Also need Tim's fix in test_mmap.py, 1.22 which flushes the file before mmap'ing it.
* A trip down memory lane. Barry checked in this test with 2.3-styleTim Peters2002-08-191-8/+0
| | | | | | | | | | | | | | imports of test_support. That causes multiple copies of test_support to get loaded, and the one used by test_base64.py didn't see the proper value of verbose=False, so spewed output. That in turn apparenly caused Barry to check in an expected-results output file, but a unitttest-based test should never have one of those. I noticed this because, on Windows, the final unittest output line contains the number of seconds needed to run the test, and that varied on *some* runs when I tried it, causing bogus test failures. Anyway, this gets rid of the expected-output file again, and changes the imports to work with 2.2's way of doing this.
* Backport of fix for SF bug #595671 from Python 2.3cvs:Barry Warsaw2002-08-151-0/+8
| | | | | | | | | base64.decodestring('') should return '' instead of raising an exception. The bug fix for SF #430849 wasn't quite right. This closes SF bug #595671. I'll backport this to Python 2.2. One addition here is that there was no test of the base64 module in Python 2.2 cvs yet, so I added that too.
* The atexit module effectively turned itself off if sys.exitfunc alreadyTim Peters2002-07-161-4/+0
| | | | | | | | | existed at the time atexit first got imported. That's a bug, and this fixes it. Also reworked test_atexit.py to test for this too, and to stop using an "expected output" file, and to test what actually happens at exit instead of just simulating what it thinks atexit will do at exit.
* Update output for new tests.Jeremy Hylton2002-07-121-0/+5
|
* Backport buffer() tests trunk to avoid regression failures.Fred Drake2002-05-021-0/+1
|
* backport fix for SF buf #505315 from trunkJeremy Hylton2002-04-201-0/+1
|
* amk's fix attached toMichael W. Hudson2002-03-181-0/+5
| | | | [ 516299 ] urlparse can get fragments wrong
* 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-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.
* Update output generated by test_scopeJeremy Hylton2001-12-131-1/+1
|
* Patch supplied by Burton Radons for his own SF bug #487390: ModifyingGuido van Rossum2001-12-081-1/+1
| | | | | | | | | | | | | type.__module__ behavior. This adds the module name and a dot in front of the type name in every type object initializer, except for built-in types (and those that already had this). Note that it touches lots of Mac modules -- I have no way to test these but the changes look right. Apologies if they're not. This also touches the weakref docs, which contains a sample type object initializer. It also touches the mmap test output, because the mmap type's repr is included in that output. It touches object.h to put the correct description in a comment.
* Attribute nodes did not always get their ownerDocument and ownerElementFred Drake2001-12-061-0/+8
| | | | properly set. This fixes that.
* Fix appendChild() and insertBefore() (and replaceChild() indirectly) whenFred Drake2001-12-061-0/+10
| | | | | the node being added is a fragment node. This closes SF bug #487929.
* Fix for bug #480188: printing unicode objectsMarc-André Lemburg2001-11-201-0/+13
|
* CVS patch #477161: New "access" keyword for mmap, from Jay T Miller.Tim Peters2001-11-131-0/+13
| | | | | | | | | | This gives mmap() on Windows the ability to create read-only, write- through and copy-on-write mmaps. A new keyword argument is introduced because the mmap() signatures diverged between Windows and Unix, so while they (now) both support this functionality, there wasn't a way to spell it in a common way without introducing a new spelling gimmick. The old spellings are still accepted, so there isn't a backward- compatibility issue here.
* Fix SF buf #480096: Assign to __debug__ still allowedJeremy Hylton2001-11-091-1/+0
| | | | | | Easy enough to catch assignment in the compiler. The perverse user can still change the value of __debug__, but that may be the least he can do.
* Additional test and documentation for the unicode() changes.Marc-André Lemburg2001-10-191-0/+1
| | | | This patch should also be applied to the 2.2b1 trunk.
* Fix the frozen bytecode for __hello__ (betcha didn't know that existedGuido van Rossum2001-10-181-0/+4
| | | | | | | | | | :-). Add a test that prevents the __hello__ bytecode from going stale unnoticed again. The test also tests the loophole noted in SF bug #404545. This test will fail right now; I'll check in the fix in a minute.
* Add test for local assigned to only in a nested list compJeremy Hylton2001-10-181-0/+1
|
* [ #403753 ] zlib decompress; uncontrollable memory usageJeremy Hylton2001-10-161-0/+3
| | | | | | | | | | | | | Mostly by Toby Dickenson and Titus Brown. Add an optional argument to a decompression object's decompress() method. The argument specifies the maximum length of the return value. If the uncompressed data exceeds this length, the excess data is stored as the unconsumed_tail attribute. (Not to be confused with unused_data, which is a separate issue.) Difference from SF patch: Default value for unconsumed_tail is "" rather than None. It's simpler if the attribute is always a string.
* Covert pickle tests to use unittest.Jeremy Hylton2001-10-152-26/+0
| | | | | Extend tests to cover a few more cases. For cPickle, test several of the undocumented features.
* Added tests that check getboolean() with the newly allowed values fromFred Drake2001-10-081-0/+1
| | | | SF patch #467580.
* Hopefully fix the profiler right. Add a test suite that checks thatGuido van Rossum2001-10-041-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | it deals correctly with some anomalous cases; according to this test suite I've fixed it right. The anomalous cases had to do with 'exception' events: these aren't generated when they would be most helpful, and the profiler has to work hard to recover the right information. The problems occur when C code (such as hasattr(), which is used as the example here) calls back into Python code and clears an exception raised by that Python code. Consider this example: def foo(): hasattr(obj, "bar") Where obj is an instance from a class like this: class C: def __getattr__(self, name): raise AttributeError The profiler sees the following sequence of events: call (foo) call (__getattr__) exception (in __getattr__) return (from foo) Previously, the profiler would assume the return event returned from __getattr__. An if statement checking for this condition and raising an exception was commented out... This version does the right thing.
* Update the xml.dom.minidom tests to cover the DOM-compliant parts of theFred Drake2001-09-281-0/+3
| | | | NodeList interface.
* Test case for SF bugs #463359 and #462937, added to test_grammar for lack ofThomas Wouters2001-09-261-0/+1
| | | | | a better place. Excessively fragile code, but at least it breaks when something in this area changes!
* Converted test_StringIO.py to use unittest, soBarry Warsaw2001-09-221-21/+0
| | | | | | | Lib/test/output/test_StringIO is no longer necessary. Also, added a test of the iterator protocol that's just been added to StringIO's and cStringIO's.
* Fix Unicode .join() method to raise a TypeError for sequenceMarc-André Lemburg2001-09-201-1/+0
| | | | | | | | | | elements which are not Unicode objects or strings. (This matches the string.join() behaviour.) Fix a memory leak in the .join() method which occurs in case the Unicode resize fails. Restore the test_unicode output.
* Update test output after the unicode() change.Marc-André Lemburg2001-09-201-0/+1
|
* New restriction on pow(x, y, z): If z is not None, x and y must be ofTim Peters2001-09-031-4/+0
| | | | | integer types, and y must be >= 0. See discussion at http://sf.net/tracker/index.php?func=detail&aid=457066&group_id=5470&atid=105470
* Add tests for augmented floor divisionJeremy Hylton2001-08-291-0/+3
|
* Undo previous checkin -- Barry fixed it better.Guido van Rossum2001-08-241-2/+0
|
* Update test output to match new (more informative) error message aboutGuido van Rossum2001-08-241-2/+2
| | | | calling unbound method with wrong first argument.
* Looks like someone forgot the change the expected output file.Tim Peters2001-08-241-14/+14
|
* Remove test_long's expected-output file.Tim Peters2001-08-231-5/+0
|
* Fix SF bug [ #450245 ] Error in parsing future stmtsJeremy Hylton2001-08-201-0/+1
| | | | | Add test case to cover multiple future statements on separate lines of a module.
* The change of type(None).__name__ from 'None' to 'NoneType' broke thisGuido van Rossum2001-08-161-2/+2
| | | | test in a trivial way. Fixed.
* Added tests for rich comparison operator functions.Fred Drake2001-08-111-41/+0
| | | | Converted tests to PyUnit.
* Added tests for operator.floordiv() and operator.truediv().Fred Drake2001-08-091-0/+2
|
* Add a test that xml.sax.saxutils.XMLGenerator does the right thingFred Drake2001-08-071-1/+2
| | | | | | when quoting attribute values that contain single & double quotes. This provides the rest of the regression test for SF bug #440351.
* test_codeup should not have had an expected-output file; removing it.Tim Peters2001-07-301-10/+0
|