summaryrefslogtreecommitdiffstats
path: root/Lib/test/output
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary output file.Fred Drake2002-10-281-42/+0
|
* Patch #613256: Add nescape method to xml.sax.saxutils.Martin v. Löwis2002-10-261-1/+4
|
* Remove useless output file.Fred Drake2002-10-251-9/+0
|
* Update to Unicode 3.2 database.Martin v. Löwis2002-10-182-3/+3
|
* Add os.path.supports_unicode_filenames for all platforms,Mark Hammond2002-10-081-1/+1
| | | | | | sys.getwindowsversion() on Windows (new enahanced Tim-proof <wink> version), and fix test_pep277.py in a few minor ways. Including doc and NEWS entries.
* Tests for pep277 - Unicode file names on Windows NT.Mark Hammond2002-10-031-0/+4
|
* 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.
* Add a custom __str__ method to KeyError that applies repr() to theGuido van Rossum2002-09-031-1/+1
| | | | | missing key. (Also added a guard to SyntaxError__str__ to prevent calling PyString_Check(NULL).)
* Undo Barry's change. This file is not imported, it's fed as input toGuido van Rossum2002-08-291-12/+12
| | | | | | the tokenize module by test_tokenize.py. The FutureWarnings only appeared during installation, and I've figured out a way to suppress those in a different way.
* The test_tokenize output has changed slightly, by the addition of someBarry Warsaw2002-08-291-12/+12
| | | | trailing `L's.
* Follow PyXML: Remove all prints from successful tests. This means we canFred Drake2002-07-191-220/+0
| | | | also drop the output file.
* 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. Bugfix candidate, but it's messy so I'll backport to 2.2 myself.
* Fix for SF bug #432621: httplib: multiple Set-Cookie headersJeremy Hylton2002-07-071-0/+3
| | | | | | | | | | If multiple header fields with the same name occur, they are combined according to the rules in RFC 2616 sec 4.2: Appending each subsequent field-value to the first, each separated by a comma. The order in which header fields with the same field-name are received is significant to the interpretation of the combined field value.
* Implement the encoding argument for toxml and toprettyxml.Martin v. Löwis2002-06-301-0/+3
| | | | Document toprettyxml.
* Suppress the variable verbose output from test.xmltests; the inclusion ofFred Drake2002-06-261-15/+0
| | | | timing information in the output makes the determination of success bogus.
* Add convenience module to run all the XML tests.Fred Drake2002-06-251-0/+379
|
* New test suite for the socket module by Michael Gilfix.Guido van Rossum2002-06-121-3/+0
| | | | Changed test_timeout.py to conform to the guidelines in Lib/test/README.
* Added tests for new degree/radian conversions.Raymond Hettinger2002-05-141-0/+2
|
* Add tests for the recent resource module change.Jeremy Hylton2002-04-231-0/+2
| | | | | | Also add a test that Python doesn't die with SIGXFSZ if it exceeds the file rlimit. (Assuming this will also test the behavior when the 2GB limit is exceed on a platform that doesn't have large file support.)
* Add test for eval() w/ free variables.Jeremy Hylton2002-04-201-0/+1
| | | | Related to SF bug #505315
* Add the 'bool' type and its values 'False' and 'True', as described inGuido van Rossum2002-04-035-81/+81
| | | | | | | | | | | | | PEP 285. Everything described in the PEP is here, and there is even some documentation. I had to fix 12 unit tests; all but one of these were printing Boolean outcomes that changed from 0/1 to False/True. (The exception is test_unicode.py, which did a type(x) == type(y) style comparison. I could've fixed that with a single line using issubtype(x, type(y)), but instead chose to be explicit about those places where a bool is expected. Still to do: perhaps more documentation; change standard library modules to return False/True from predicates.
* Fix bugs:Mark Hammond2002-04-031-0/+3
| | | | | | | | | | | | | | | 457466: popenx() argument mangling hangs python 226766: popen('python -c"...."') tends to hang Fixes argument quoting in w9xpopen.exe for Windows 9x. w9xpopen.exe also never attempts to display a MessageBox when not executed interactively. Added test_popen() test. This test currently just executes "python -c ..." as a child process, and checks that the expected arguments were all recieved correctly by the child process. This test succeeds for me on Win9x, win2k and Linux, and I hope it does for other popen supported platforms too :)
* add test for InvalidURLSkip Montanaro2002-03-241-0/+2
|
* Add more tests for built-in types. Add tests for buffer objects.Neil Schemenauer2002-03-241-0/+1
| | | | Closes SF patch 494871.
* no longer needed - converted test_urlparse.py to use unittestSkip Montanaro2002-03-231-46/+0
|
* amk's fix attached toMichael W. Hudson2002-03-181-0/+5
| | | | [ 516299 ] urlparse can get fragments wrong
* As part of fixing bug #523301, add a simple test of ConfigParser.write()Andrew M. Kuchling2002-03-081-0/+1
|
* SF patch #523169, by Samuele Pedroni.Guido van Rossum2002-02-261-0/+1
| | | | | | 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.
* Fix to the UTF-8 encoder: it failed on 0-length input strings.Marc-André Lemburg2002-02-071-1/+1
| | | | | | | | | | | | | | Fix for the UTF-8 decoder: it will now accept isolated surrogates (previously it raised an exception which causes round-trips to fail). Added new tests for UTF-8 round-trip safety (we rely on UTF-8 for marshalling Unicode objects, so we better make sure it works for all Unicode code points, including isolated surrogates). Bumped the PYC magic in a non-standard way -- please review. This was needed because the old PYC format used illegal UTF-8 sequences for isolated high surrogates which now raise an exception.
* 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
|