summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Bug #1333982: string/number constants were inappropriately storedNeal Norwitz2006-08-041-0/+17
| | | | | in the byte code and co_consts even if they were not used, ie immediately popped off the stack.
* Bug #1191458: tracing over for loops now produces a line eventNeal Norwitz2006-08-041-2/+2
| | | | | | | | | | | | on each iteration. I'm not positive this is the best way to handle this. I'm also not sure that there aren't other cases where the lnotab is generated incorrectly. It would be great if people that use pdb or tracing could test heavily. Also: * Remove dead/duplicated code that wasn't used/necessary because we already handled the docstring prior to entering the loop. * add some debugging code into the compiler (#if 0'd out).
* Bug #1531405, format_exception no longer raises an exception ifNeal Norwitz2006-08-041-4/+13
| | | | str(exception) raised an exception.
* Patch #1519025 and bug #926423: If a KeyboardInterrupt occurs duringNeal Norwitz2006-08-021-0/+32
| | | | | a socket operation on a socket with a timeout, the exception will be caught correctly. Previously, the exception was not caught.
* Let us know when there was a problem and the child had to kill the parentNeal Norwitz2006-08-021-0/+1
|
* Whitespace normalization.Tim Peters2006-08-021-1/+1
|
* [Patch #1520905] Attempt to suppress core file created by test_subprocess.py.Andrew M. Kuchling2006-08-011-2/+28
| | | | | | | | | Patch by Douglas Greiman. The test_run_abort() testcase produces a core file on Unix systems, even though the test is successful. This can be confusing or alarming to someone who runs 'make test' and then finds that the Python interpreter apparently crashed.
* Whitespace normalization.Tim Peters2006-07-311-3/+3
|
* Try to prevent hangs on Tru64/Alpha buildbot. I'm not certain this will helpNeal Norwitz2006-07-301-1/+37
| | | | and may need to be reverted if it causes problems.
* Verify that the signal handlers were really calledNeal Norwitz2006-07-301-0/+12
|
* Don't copy directory stat times in shutil.copytree on WindowsMartin v. Löwis2006-07-301-0/+27
| | | | Fixes #1525866.
* Bug #1515471: string.replace() accepts character buffers again.Neal Norwitz2006-07-301-2/+7
| | | | Pass the char* and size around rather than PyObject's.
* Patch #1531113: Fix augmented assignment with yield expressions.Neal Norwitz2006-07-301-3/+36
| | | | Also fix a SystemError when trying to assign to yield expressions.
* Whitespace normalization.Tim Peters2006-07-301-3/+3
|
* Disable test_getnode too, since this is also unreliable.Neal Norwitz2006-07-291-0/+6
|
* Disable these tests until they are reliable across platforms.Neal Norwitz2006-07-291-0/+12
| | | | | | | These problems may mask more important, real problems. One or both methods are known to fail on: Solaris, OpenBSD, Debian, Ubuntu. They pass on Windows and some Linux boxes.
* restore test un-intentionally removed in the xmlcore purge (revision 50941)Fred Drake2006-07-291-0/+15
|
* expunge the xmlcore changes:Fred Drake2006-07-294-84/+124
| | | | | | | | | | | | | | | | | | | 41667, 41668 - initial switch to xmlcore 47044 - mention of xmlcore in What's New 50687 - mention of xmlcore in the library reference re-apply xmlcore changes to xml: 41674 - line ending changes (re-applied manually), directory props 41677 - add cElementTree wrapper 41678 - PSF licensing for etree 41812 - whitespace normalization 42724 - fix svn:eol-style settings 43681, 43682 - remove Python version-compatibility cruft from minidom 46773 - fix encoding of \r\n\t in attr values in saxutils 47269 - added XMLParser alias for cElementTree compatibility additional tests were added in Lib/test/test_sax.py that failed with the xmlcore changes; these relate to SF bugs #1511497, #1513611
* Bug #1441397: The compiler module now recognizes module and functionGeorg Brandl2006-07-291-0/+8
| | | | docstrings correctly as it did in Python 2.4.
* Patch #1529686: also run test_email_codecs with regrtest.py.Georg Brandl2006-07-281-4/+8
|
* Live with that "the hardware address" is an ill-definedTim Peters2006-07-281-4/+12
| | | | | | | concept, and that different ways of trying to find "the hardware address" may return different results. Certainly true on both of my Windows boxes, and in different ways (see whining on python-dev).
* Ensure the actual number matches the expected countNeal Norwitz2006-07-281-3/+4
|
* Bug #1529297: The rewrite of doctest for Python 2.4 unintentionallyTim Peters2006-07-271-7/+0
| | | | | lost that tests are sorted by name before being run. ``DocTestFinder`` has been changed to sort the list of tests it returns.
* Patch #1520294: Support for getset and member descriptors in types.py,Barry Warsaw2006-07-271-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | inspect.py, and pydoc.py. Specifically, this allows for querying the type of an object against these built-in C types and more importantly, for getting their docstrings printed in the interactive interpreter's help() function. This patch includes a new built-in module called _types which provides definitions of getset and member descriptors for use by the types.py module. These types are exposed as types.GetSetDescriptorType and types.MemberDescriptorType. Query functions are provided as inspect.isgetsetdescriptor() and inspect.ismemberdescriptor(). The implementations of these are robust enough to work with Python implementations other than CPython, which may not have these fundamental types. The patch also includes documentation and test suite updates. I commit these changes now under these guiding principles: 1. Silence is assent. The release manager has not said "no", and of the few people that cared enough to respond to the thread, the worst vote was "0". 2. It's easier to ask for forgiveness than permission. 3. It's so dang easy to revert stuff in svn, that you could view this as a forcing function. :) Windows build patches will follow.
* check_node(): stop spraying mystery output to stderr.Tim Peters2006-07-271-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When a node number disagrees, keep track of all sources & the node numbers they reported, and stick all that in the error message. Changed all callers to supply a non-empty "source" argument; made the "source" argument non-optional. On my box, test_uuid still fails, but with the less confusing output: AssertionError: different sources disagree on node: from source 'getnode1', node was 00038a000015 from source 'getnode2', node was 00038a000015 from source 'ipconfig', node was 001111b2b7bf Only the last one appears to be correct; e.g., C:\Code\python\PCbuild>getmac Physical Address Transport Name =================== ========================================================== 00-11-11-B2-B7-BF \Device\Tcpip_{190FB163-5AFD-4483-86A1-2FE16AC61FF1} 62-A1-AC-6C-FD-BE \Device\Tcpip_{8F77DF5A-EA3D-4F1D-975E-D472CEE6438A} E2-1F-01-C6-5D-88 \Device\Tcpip_{CD18F76B-2EF3-409F-9B8A-6481EE70A1E4} I can't find anything on my box with MAC 00-03-8a-00-00-15, and am not clear on where that comes from.
* Make uuid test suite pass on this box by requesting output with LC_ALL=C.Georg Brandl2006-07-271-2/+6
|
* Whitespace normalization.Tim Peters2006-07-271-1/+0
|
* Add test_main() methods. These three tests were never runGeorg Brandl2006-07-273-6/+17
| | | | | | by regrtest.py. We really need a simpler testing framework.
* Whitespace normalization.Tim Peters2006-07-261-1/+1
|
* Part of bug #1523610: fix miscalculation of buffer length.Georg Brandl2006-07-261-1/+18
| | | | | Also add a guard against NULL in converttuple and add a test case (that previously would have crashed).
* Bug #1459963: properly capitalize HTTP header names.Georg Brandl2006-07-261-7/+7
|
* Document the crashers that will not go away soon as "won't fix",Armin Rigo2006-07-252-0/+15
| | | | and explain why.
* Added another crasher, which hit me today (I was not intentionallyArmin Rigo2006-07-251-0/+16
| | | | | writing such code, of course, but it took some gdb time to figure out what my bug was).
* Document why is and is not a good way to fix the gc_inspection crasher.Armin Rigo2006-07-251-0/+15
|
* Fix a bug in the messages for an assert failure where not enough arguments ↵Brett Cannon2006-07-251-2/+2
| | | | | | to a string were being converted in the format.
* current_frames_with_threads(): There's actually no wayTim Peters2006-07-251-3/+4
| | | | | | | | | | | to guess /which/ line the spawned thread is in at the time sys._current_frames() is called: we know it finished enter_g.set(), but can't know whether the instruction counter has advanced to the following leave_g.wait(). The latter is overwhelming most likely, but not guaranteed, and I see that the "x86 Ubuntu dapper (icc) trunk" buildbot found it on the other line once. Changed the test so it passes in either case.
* Don't use standard assert: want tests to fail even when run with -O.Greg Ward2006-07-251-15/+17
| | | | Delete cruft.
* Whitespace normalization.Tim Peters2006-07-241-2/+2
|
* Patch #1515343: Fix printing of deprecated string exceptions with aGeorg Brandl2006-07-241-2/+34
| | | | value in the traceback module.
* Patch #1448199: Release GIL around ConnectRegistry.Martin v. Löwis2006-07-241-0/+3
|
* Resync optparse with Optik 1.5.3: minor tweaks for/to tests.Greg Ward2006-07-231-4/+5
|
* Get mailbox module working on OS/2 EMX port.Andrew MacIntyre2006-07-231-2/+2
|
* Be a lot smarter about whether this test passes: instead of assumingGreg Ward2006-07-232-4/+14
| | | | | | | 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
* Don't fail if the directory already existsNeal Norwitz2006-07-221-1/+2
|
* Fix SF#1516184 (again) and add a test to prevent regression.Phillip J. Eby2006-07-201-0/+1
| | | | (There was a problem with empty filenames still causing recursion)
* SF bug 1524317: configure --without-threads fails to buildTim Peters2006-07-191-0/+22
| | | | | | | | | | | | | | | | | | Moved the code for _PyThread_CurrentFrames() up, so it's no longer in a huge "#ifdef WITH_THREAD" block (I didn't realize it /was/ in one). Changed test_sys's test_current_frames() so it passes with or without thread supported compiled in. Note that test_sys fails when Python is compiled without threads, but for an unrelated reason (the old test_exit() fails with an indirect ImportError on the `thread` module). There are also other unrelated compilation failures without threads, in extension modules (like ctypes); at least the core compiles again. Do we really support --without-threads? If so, there are several problems remaining.
* Whitespace normalization.Tim Peters2006-07-181-4/+4
|
* Fix bug #1520914. Starting in 2.4, time.strftime() began to check the boundsBrett Cannon2006-07-181-12/+20
| | | | | | | of values in the time tuple passed in. Unfortunately people came to rely on undocumented behaviour of setting unneeded values to 0, regardless of if it was within the valid range. Now those values force the value internally to the minimum value when 0 is passed in.
* Remove usage of sets module (patch #1500609).Georg Brandl2006-07-173-7/+5
|
* Bug #1512814, Fix incorrect lineno's when code within a functionNeal Norwitz2006-07-161-0/+24
| | | | had more than 255 blank lines. Byte codes need to go first, line #s second.