summaryrefslogtreecommitdiffstats
path: root/Lib/test/output
Commit message (Collapse)AuthorAgeFilesLines
* Fix test 9 (caught by ?!ng)Jeremy Hylton2001-02-051-0/+1
| | | | Add tests for unbound locals (Nick Mathewson)
* Add minimal interface to symtable: _symtable module.Jeremy Hylton2001-02-021-0/+1
|
* Patch derived from Trent's 101162: a Python/C API testing framework.Tim Peters2001-02-021-0/+1
| | | | STILL NEEDS UNIX BUILD CHANGES.
* Allow 'continue' inside 'try' clauseJeremy Hylton2001-02-012-5/+3
| | | | SF patch 102989 by Thomas Wouters
* Undo recent change that banned using import to bind a global, as perJeremy Hylton2001-02-011-1/+0
| | | | | | | | | | | discussion on python-dev. 'from mod import *' is still banned except at the module level. Fix value for special NOOPT entry in symtable. Initialze to 0 instead of None, so that later uses of PyInt_AS_LONG() are valid. (Bug reported by Donn Cave.) replace local REPR macros with PyObject_REPR in object.h
* PEP 205, Weak References -- initial checkin.Fred Drake2001-02-011-0/+21
|
* add test for illegal importsJeremy Hylton2001-01-301-0/+2
|
* PEP 227 implementationJeremy Hylton2001-01-251-0/+2
| | | | | test_new: new.code() noew takes two more arguments test_grammer: Add a bunch of test cases for lambda (not really PEP 227 related)
* PEP 227 implementationJeremy Hylton2001-01-251-0/+13
| | | | New tests cases for nested scopes.
* add extra tests to verify that co_varnames is being set up properlyJeremy Hylton2001-01-251-2/+4
| | | | | also normalize checks for syntax errors and delete commented out definition of verify.
* Fix the test output, now that escapes in repr() of string and UnicodeGuido van Rossum2001-01-242-6/+6
| | | | are different (Ping didn't test this).
* Fix the test output, now that escapes in repr() of string and UnicodeGuido van Rossum2001-01-241-3/+3
| | | | are different (Ping couldn't test this).
* Show '\011', '\012', and '\015' as '\t', '\n', '\r' in strings.Ka-Ping Yee2001-01-243-162/+162
| | | | Switch from octal escapes to hex escapes for other nonprintable characters.
* Add simple test of list comprehension that uses a name that isn'tJeremy Hylton2001-01-231-0/+1
| | | | | otherwise used in the same code block. (Not sure this is the right place, but there is no test_list_comprehensions.py.)
* Reorganize pickle/cPickle testing so the tests pass regardless of the orderTim Peters2001-01-221-12/+0
| | | | they're run.
* Patch #103343: Allow the important test_pkg to succeed under Jython.Tim Peters2001-01-211-3/+3
|
* Patch #103344: Sort dicts from extcall for easier comparison with Jython.Tim Peters2001-01-211-36/+36
|
* added __all__ lists to a number of Python modulesSkip Montanaro2001-01-201-0/+1
| | | | | | | | added test script and expected output file as well this closes patch 103297. __all__ attributes will be added to other modules without first submitting a patch, just adding the necessary line to the test script to verify more-or-less correct implementation.
* Now that Marc-Andre has retracted unistr(), remove the tests.Guido van Rossum2001-01-191-1/+0
|
* improved the ucnhash test a bitFredrik Lundh2001-01-191-0/+3
|
* Jeremy's patch #103323: trivial tests of all untested modules.Tim Peters2001-01-191-0/+1
|
* add test of bastion and rexec to std regression test suiteJeremy Hylton2001-01-191-0/+10
|
* A dumb test for the dumdbm module.Guido van Rossum2001-01-181-0/+1
|
* Rich comparison testsGuido van Rossum2001-01-181-0/+187
|
* This patch adds a new builtin unistr() which behaves like str()Marc-André Lemburg2001-01-171-0/+1
| | | | | | | | | | except that it always returns Unicode objects. A new C API PyObject_Unicode() is also provided. This closes patch #101664. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
* Ugh. Sorry. Checked in the wrong file. Please ignore revision 1.3;Ka-Ping Yee2001-01-151-154/+154
| | | | it anticipates another patch i was about to propose.
* better format names and error messagesKa-Ping Yee2001-01-151-2/+2
|
* This patch makes sure that the function name always appears in the errorKa-Ping Yee2001-01-152-11/+86
| | | | | | | message, and tries to make the messages more consistent and helpful when the wrong number of arguments or duplicate keyword arguments are supplied. Comes with more tests for test_extcall.py and and an update to an error message in test/output/test_pyexpat.
* Add tokenizer support and tests for u'', U"", uR'', Ur"", etc.Ka-Ping Yee2001-01-151-365/+421
|
* Committing PEP 232, function attribute feature, approved by Guido.Barry Warsaw2001-01-151-0/+1
| | | | | | Closes SF patch #103123. Regression test for function attributes, with output file.
* SF bug 128713: type(mmap_object) blew up on Linux.Tim Peters2001-01-141-0/+1
|
* Guido found a brand new race in tempfile on Linux, due to Linux changingTim Peters2001-01-131-0/+5
| | | | | | | | | | | | pid across threads (but in that case, it's still the same process, and so still sharing the "template" cache in tempfile.py). Repaired that, and added a new std test. On Linux, someone please run that standalone with more files and/or more threads; e.g., python lib/test/test_threadedtempfile.py -f 1000 -t 10 to run with 10 threads each creating (and deleting) 1000 temp files.
* Moved the test codec definition to a new module and updated the test andMarc-André Lemburg2001-01-101-0/+15
| | | | | | | codec to test all charmap codec features. As side-effect of moving the test codec into a new module, the encodings package codec import mechanism is checked as well.
* Assorted xreadlines problems:Tim Peters2001-01-091-4/+4
| | | | | | | Wasn't built on Windows; not in config.c either. Module init function missing DL_EXPORT magic. test_xreadline output file obviously wrong (started w/ "test_xrl"). test program very unclear about what was expected.
* Test for xreadline.Guido van Rossum2001-01-091-0/+4
|
* MS Win32 .readline() speedup, as discussed on Python-Dev. This is a trickyTim Peters2001-01-071-0/+1
| | | | | | variant that never needs to "search from the right". Also fixed unlikely memory leak in get_line, if string size overflows INTMAX. Also new std test test_bufio to make sure .readline() works.
* Add more regression tests, including for the import statement variations.Fred Drake2001-01-071-0/+25
| | | | | These will detect regression on SF bug #127271 and other import statement bugs.
* This patch adds a new feature to the builtin charmap codec:Marc-André Lemburg2001-01-061-0/+1
| | | | | | | | | | | | | | | the mapping dictionaries can now contain 1-n mappings, meaning that character ordinals may be mapped to strings or Unicode object, e.g. 0x0078 ('x') -> u"abc", causing the ordinal to be replaced by the complete string or Unicode object instead of just one character. Another feature introduced by the patch is that of mapping oridnals to the emtpy string. This allows removing characters. The patch is different from patch #103100 in that it does not cause a performance hit for the normal use case of 1-1 mappings. Written by Marc-Andre Lemburg, copyright assigned to Guido van Rossum.
* Add test cases based on RFC 1808. So now we actually have a test suiteFred Drake2001-01-051-0/+40
| | | | | | | the urljoin() function, which exercises the urlparse() and urlunparse() functions as side effects. (Moshe, why did we have perfectly empty tests checked in for this?)
* No more RCmp.Neil Schemenauer2001-01-041-22/+1
|
* Sequence repeat works now for in-place multiply with an integer typeNeil Schemenauer2001-01-041-4/+4
| | | | as the left operand. I don't know if this is a feature or a bug.
* Use == rather than cmp(). The return value of cmp() is not well defined whenNeil Schemenauer2001-01-031-121/+121
| | | | comparing different types.
* Use numbers that can be accurately represented on binary machines. I hopeNeil Schemenauer2001-01-031-585/+585
| | | | this works on all platforms.
* Add more tests for compare and coercion in preparation for the coercionNeil Schemenauer2001-01-022-0/+1176
| | | | overhaul. Closes SF patch #102878.
* Added test case for legal DOM childrenAndrew M. Kuchling2000-12-311-1/+3
|
* Fred, THIS NEEDS DOCS! The function docstrings tell the tale.Tim Peters2000-12-291-0/+1
| | | | | | | | | | | | | Christmas present to myself: the bisect module didn't define what happened if the new element was already in the list. It so happens that it inserted the new element "to the right" of all equal elements. Since it wasn't defined, among other bad implications it was a mystery how to use bisect to determine whether an element was already in the list (I've seen code that *assumed* "to the right" without justification). Added new methods bisect_left and insort_left that insert "to the left" instead; made the old names bisect and insort aliases for the new names bisect_right and insort_right; beefed up docstrings to explain what these actually do; and added a std test for the bisect module.
* The "context" parameter to the ExternalEntityRefParameter exposes internalFred Drake2000-12-231-3/+12
| | | | | | | | | information from the Expat library that is not part of its public API. Do not print this information as the format of the string may (and will) change as Expat evolves. Add additional tests to make sure the ParserCreate() function raises the right exceptions on illegal parameters.
* Update the test suite to cover more ground.Fred Drake2000-12-141-0/+1
| | | | This closes patch #102477.
* Added tests to avoid regression on bug #125375.Fred Drake2000-12-111-0/+14
| | | | | | | | roundtrip(): Show the offending syntax tree when things break; this makes it a little easier to debug the module by adding test cases. (Still need better tests for this module, but there's not enough time today.)
* Update test output.Fred Drake2000-11-211-2/+18
|