summaryrefslogtreecommitdiffstats
path: root/Lib/test/output
Commit message (Collapse)AuthorAgeFilesLines
* Issue2495: tokenize.untokenize did not insert space between two consecutive ↵Amaury Forgeot d'Arc2008-03-271-1/+7
| | | | | | | | string literals: "" "" becomes """", which is invalid code. Backport of r61979.
* Remove old expected output for test_resourceAndrew M. Kuchling2008-02-231-2/+0
|
* Chris McDonough's patch to defend against certain DoS attacks on FieldStorage.Guido van Rossum2006-08-101-0/+2
| | | | SF bug #1112549.
* Be a lot smarter about whether this test passes: instead of assumingGreg Ward2006-07-231-2/+1
| | | | | | | that a 2.93 sec audio file will always take 3.1 sec (as it did on the hardware I had when I first wrote the test), expect that it will take 2.93 sec +/- 10%, and only fail if it's outside of that range. Compute the expected
* Increase the small thread stack size to get the testAndrew MacIntyre2006-06-131-2/+2
| | | | | to pass reliably on the one buildbot that insists on more than 32kB of thread stack.
* Patch #1454481: Make thread stack size runtime tunable.Andrew MacIntyre2006-06-131-0/+12
| | | | | | | | | | Heavily revised, comprising revisions: 46640 - original trunk revision (backed out in r46655) 46647 - markup fix (backed out in r46655) 46692:46918 merged from branch aimacintyre-sf1454481 branch tested on buildbots (Windows buildbots had problems not related to these changes).
* Revert revisions:Tim Peters2006-06-041-8/+0
| | | | | | | | | | | | | | | | 46640 Patch #1454481: Make thread stack size runtime tunable. 46647 Markup fix The first is causing many buildbots to fail test runs, and there are multiple causes with seemingly no immediate prospects for repairing them. See python-dev discussion. Note that a branch can (and should) be created for resolving these problems, like svn copy svn+ssh://svn.python.org/python/trunk -r46640 svn+ssh://svn.python.org/python/branches/NEW_BRANCH followed by merging rev 46647 to the new branch.
* Patch #1454481: Make thread stack size runtime tunable.Andrew MacIntyre2006-06-041-0/+8
|
* [ 1497053 ] Let dicts propagate the exceptions in user __eq__().Armin Rigo2006-06-011-2/+17
| | | | [ 1456209 ] dictresize() vulnerability ( <- backport candidate ).
* Convert test_exceptions to unittest.Georg Brandl2006-05-301-52/+0
|
* Conversion of exceptions over from faked-up classes to new-style C types.Richard Jones2006-05-271-3/+3
|
* Convert test_compare to use unittest. Hopefully we can find outNeal Norwitz2006-04-091-101/+0
| | | | why this breaks on openbsd sometimes.
* Make test_augassign pass with -Qnew and convert to unittest.Georg Brandl2006-03-281-51/+0
|
* Make test_coercion pass with -Qnew. Converted to unittest on the occasion.Georg Brandl2006-03-281-1054/+0
|
* PEP 352 implementation. Creates a new base class, BaseException, which has anBrett Cannon2006-03-011-3/+3
| | | | | | | | | added message attribute compared to the previous version of Exception. It is also a new-style class, making all exceptions now new-style. KeyboardInterrupt and SystemExit inherit from BaseException directly. String exceptions now raise DeprecationWarning. Applies patch 1104669, and closes bugs 1012952 and 518846.
* Test case to cover subscription bug from SF 1333982Jeremy Hylton2006-02-281-0/+1
|
* Added the cProfile module.Armin Rigo2006-02-082-7/+150
| | | | | | | | | | | | | | | | | | | | | | | Based on lsprof (patch #1212837) by Brett Rosen and Ted Czotter. With further editing by Michael Hudson and myself. History in svn repo: http://codespeak.net/svn/user/arigo/hack/misc/lsprof * Module/_lsprof.c is the internal C module, Lib/cProfile.py a wrapper. * pstats.py updated to display cProfile's caller/callee timings if available. * setup.py and NEWS updated. * documentation updates in the profiler section: - explain the differences between the three profilers that we have now - profile and cProfile can use a unified documentation, like (c)Pickle - mention that hotshot is "for specialized usage" now - removed references to the "old profiler" that no longer exists * test updates: - extended test_profile to cover delicate cases like recursion - added tests for the caller/callee displays - added test_cProfile, performing the same tests for cProfile * TO-DO: - cProfile gives a nicer name to built-in, particularly built-in methods, which could be backported to profile. - not tested on Windows recently!
* Patch #1407135, bug #1424041, make mmap.mmap(-1, length) work the sameNeal Norwitz2006-02-051-0/+1
| | | | | | | | | | | on both Unix (SVR4 and BSD) and Windows. Restores behaviour of passing -1 for anonymous memory on Unix. Use MAP_ANONYMOUS instead of _ANON since the latter is deprecated according to Linux (gentoo) man pages. Should we continue to allow mmap.mmap(0, length) to work on Windows? 0 is a valid fd. Will backport bugfix portions.
* Added a test for the ability to specify a class attribute in Formatter ↵Vinay Sajip2006-01-201-0/+4
| | | | configuration. Contributed by Shane Hathaway.
* Changes due to added test for fileConfig contributed by Shane Hathaway.Vinay Sajip2006-01-161-0/+6
|
* Fix SF bug #1402308, segfault when using mmap(-1, ...)Neal Norwitz2006-01-111-0/+1
| | | | | | | This didn't crash on Linux, but valgrind complained. I'm not sure if this test is valid on Windows. Will backport.
* Oops, forgot to add the output file to 41388.Neal Norwitz2005-11-031-0/+2
|
* Merge ast-branch to headJeremy Hylton2005-10-202-1/+2
| | | | | | | | | | This change implements a new bytecode compiler, based on a transformation of the parse tree to an abstract syntax defined in Parser/Python.asdl. The compiler implementation is not complete, but it is in stable enough shape to run the entire test suite excepting two disabled tests.
* *** empty log message ***Georg Brandl2005-08-261-11/+11
|
* Adapt output file to new Cookie JS output.Georg Brandl2005-06-271-4/+4
|
* test_asynchat is no longer expected to produce output.Michael W. Hudson2005-06-201-3/+0
| | | | also, wait for threads to finish before proceeding.
* SF #818006: merge from release24-maint branch: add useful read-onlyGreg Ward2005-03-071-4/+1
| | | | attributes to oss_audio_device object: 'closed', 'name', and 'mode'.
* Patches #749830, #1144555: allow UNIX mmap size to default to currentMartin v. Löwis2005-03-031-0/+2
| | | | file size.
* Patch #1049151: adding bool support to xdrlib.py.Martin v. Löwis2005-02-241-0/+19
| | | | Also add xdrlib._test into the test suite.
* Stop printing listdir bytestring output, as the precise list of stringsMartin v. Löwis2004-11-071-1/+0
| | | | returned depends on the filesystem encoding.
* Kill several problems at once: test_poll() failed sometimes for me.Tim Peters2004-10-131-2/+0
| | | | | | | | | | | Turns out the mysterious "expected output" file contained exactly N dots, because test_poll() has a loop that *usually* went around N times, printing one dot on each loop trip. But there's no guarantee of that, because the exact value of N depended on the vagaries of scheduling time.sleep()s across two different processes. So stopped printing dots, and got rid of the expected output file. Add a loop counter instead, and verify that the loop goes around at least a couple of times. Also cut the minimum time needed for this test from 4 seconds to 1.
* Added Peter Astrand's subprocess module.Fredrik Lundh2004-10-121-0/+2
|
* Remove test output for rotor, xreadlineAndrew M. Kuchling2004-08-312-9/+0
|
* SF patch #1007189, multi-line imports, for instance:Anthony Baxter2004-08-311-1/+2
| | | | | "from blah import (foo, bar baz, bongo)"
* PEP-0318, @decorator-style. In Guido's words:Anthony Baxter2004-08-021-1/+12
| | | | | "@ seems the syntax that everybody can hate equally" Implementation by Mark Russell, from SF #979728.
* Don't return spurious empty fields if 'keep_empty_values' is True.Neil Schemenauer2004-07-191-0/+11
| | | | Fixes SF bug #990307.
* Using repr() generates entries that the current stats package can'tNicholas Bastin2004-07-121-3/+3
| | | | collate, so setting it back to the function name
* Massive performance improvement for C extension and builtin tracing codeNicholas Bastin2004-06-251-3/+3
|
* Port the dictionary tests from test_types.py to unittest. Collect as muchWalter Dörwald2004-05-311-1/+1
| | | | | | mapping tests as possible in mapping_test.py and reuse the tests in test_dict.py, test_userdict.py, test_weakref.py, test_os.py and test_shelve.py. From SF patch #736962.
* Enable the profiling of C functions (builtins and extensions)Nicholas Bastin2004-03-241-1/+4
|
* Added global runctx function to profile to fix SF Bug #716587Nicholas Bastin2004-03-221-6/+6
|
* Port test_binascii.py to PyUnit and enhance tests.Walter Dörwald2004-03-151-29/+0
| | | | | Code coverage for binascii.c is at 92%. From SF patch #736962.
* Make test_coercion.py less sensitive to platform fp quirks. ClosesNeil Schemenauer2004-03-101-329/+329
| | | | SF bug #678265.
* adding passing test. testing for g(*Nothing()) where Nothing is a ↵Samuele Pedroni2004-02-211-0/+1
| | | | user-defined iterator.
* SF #736962, port test_future to unittest, add a bit more coverage, by Walter ↵Neal Norwitz2003-12-131-8/+0
| | | | Dörwald
* Add tests to test_weakref.py to bring code coverage in _weakref.c up to 100%.Walter Dörwald2003-12-111-9/+0
| | | | | | | | Port test_md5.py to PyUnit. (Written by Neal Norwitz; from SF patch 736962) (Backport candidate)
* Move list and tuple tests from test_types.py to their own scripts:Walter Dörwald2003-12-081-3/+2
| | | | | | test_tuple.py and test_list.py. Common tests for tuple, list and UserList are shared (in seq_tests.py and list_tests.py). Port tests to PyUnit. (From SF patch #736962)
* Add test for bug "[ 846133 ] os.chmod/os.utime/shutil do not work withMark Hammond2003-12-031-2/+0
| | | | | | | unicode filenames" Reorganize tests into functions so more combinations of unicode/encoded/ascii can be tested, and while I was at it, upgrade to unittest based test.
* SF patch #736962: Port tests to unittestRaymond Hettinger2003-08-301-2/+0
| | | | | | | | (Contributed by Walter Dörwald). * Convert three test modules to unittest format. * Expanded coverage in test_structseq.py. * Raymond added a new test in test_sets.py
* Fixed test and converted to unittest format.Raymond Hettinger2003-07-151-1/+0
| | | | | Checking // would call floor division but did not test that true division had become the default with 'from __future__ import division'.