summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Issue #5677: Explicitly forbid write operations on read-only file objects,Antoine Pitrou2010-02-052-1/+37
| | | | | | and read operations on write-only file objects. On Windows, the system C library would return a bogus result; on Solaris, it was possible to crash the interpreter. Patch by Stefan Krah.
* Issue #7857: test_logging: listener tests disabled for now.Vinay Sajip2010-02-051-2/+2
|
* Issue #7857: test_logging: listener test now uses find_unused_port().Vinay Sajip2010-02-051-18/+20
|
* normalize exceptions passed to the __exit__ method #7853Benjamin Peterson2010-02-052-1/+11
| | | | | | | | | In Python 2.x, exceptions in finally blocks are not normalized. Since with statements are implemented using finally blocks, ceval.c had to be tweaked to distinguish between with finally blocks and normal ones. A test for the finalization of generators containing with statements was also added.
* add a test for #7853; the exception must be normalized for withBenjamin Peterson2010-02-051-3/+20
|
* Added unit test for cfg:// resolution.Vinay Sajip2010-02-041-0/+33
|
* Logging: Implemented PEP 391.Vinay Sajip2010-02-041-9/+664
|
* Fix a typo in a docstring introduced in r77956.Brett Cannon2010-02-031-1/+1
|
* Update a docstring to suggest using importlib.import_module instead of ↵Brett Cannon2010-02-031-1/+1
| | | | calling __import__ directly.
* Fix test_inspect.py data to match recent change to inspect_fodder.py (r77942).Mark Dickinson2010-02-031-1/+1
|
* #7092: Silence more py3k warnings. Patch by Florent Xicluna.Ezio Melotti2010-02-0334-74/+91
|
* sysconfig.get_scheme_names now returns a sorted tupleTarek Ziadé2010-02-021-1/+7
|
* #7092: Silence py3k warnings in test_exceptions and test_pep352. Patch by ↵Ezio Melotti2010-02-022-69/+78
| | | | Florent Xicluna.
* Fix idioms and a couple of py3k warnings. Patch by Florent Xicluna.Ezio Melotti2010-02-021-2/+1
|
* Silence a couple of -3 warningsEzio Melotti2010-02-021-2/+5
|
* #7092: silence py3k warnings for bsddb. Patch by Florent Xicluna.Ezio Melotti2010-02-021-0/+2
|
* Issue #7819: Check sys.call_tracing() arguments types.Victor Stinner2010-01-311-0/+4
| | | | py3k was already patched by issue #3661.
* - Issue #6939: Fix file I/O objects in the `io` module to keep the originalAntoine Pitrou2010-01-314-7/+33
| | | | | | file position when calling `truncate()`. It would previously change the file position to the given argument, which goes against the tradition of ftruncate() and other truncation APIs. Patch by Pascal Chambon.
* fix windows buildbotBenjamin Peterson2010-01-311-1/+1
|
* #7092: silence more -3 and -Wd warningsEzio Melotti2010-01-314-32/+40
|
* #7092: silence py3k warnings for deprecated modulesEzio Melotti2010-01-3014-30/+47
|
* Issue #7788: Fix a crash produced by deleting a list slice with hugeMark Dickinson2010-01-293-1/+7
| | | | step value. Patch by Marcin Bachry.
* Issue #7610: Reworked implementation of the internalAntoine Pitrou2010-01-271-0/+84
| | | | | | | | :class:`zipfile.ZipExtFile` class used to represent files stored inside an archive. The new implementation is significantly faster and can be wrapped in a :class:`io.BufferedReader` object for more speedups. It also solves an issue where interleaved calls to `read()` and `readline()` give wrong results. Patch by Nir Aides.
* Issue #6963: Added maxtasksperchild argument to multiprocessing.PoolJesse Noller2010-01-271-1/+25
|
* raise a clear TypeError when trying to register a non-classBenjamin Peterson2010-01-271-0/+6
|
* Added named (but not numbered) attributes to sys.getwindowsversion() test.Eric Smith2010-01-271-0/+4
|
* Switch to test_support.get_attribute.Eric Smith2010-01-271-23/+24
|
* Removed unneeded test.Eric Smith2010-01-271-1/+0
|
* Issue #7766: Change sys.getwindowsversion() return value to a named tuple ↵Eric Smith2010-01-271-1/+17
| | | | and add the additional members returned in an OSVERSIONINFOEX structure. The new members are service_pack_major, service_pack_minor, suite_mask, and product_type.
* fix an UnboundLocalError when the release file is empty #7773Benjamin Peterson2010-01-251-0/+1
|
* remove archaic functions from test_supportEzio Melotti2010-01-243-69/+42
|
* use assert[Not]IsInstance where appropriateEzio Melotti2010-01-2457-272/+269
|
* use assert[Not]In where appropriateEzio Melotti2010-01-2386-599/+622
|
* fixed the 64bits tests for get_platform() - mac osxTarek Ziadé2010-01-231-1/+27
|
* Increased the overflow value on test_dealloc to make sure that it is big ↵Ezio Melotti2010-01-231-1/+5
| | | | enough even for wide builds.
* taking sysconfig out of distutilsTarek Ziadé2010-01-232-0/+222
|
* This should fix the failure introduced in r77680. The error message is now ↵Ezio Melotti2010-01-221-1/+1
| | | | different and it caused the test to fail. The failing test is not present in 2.5 so it is failing only on 2.6 and newer versions.
* Use // for floor division.Mark Dickinson2010-01-211-2/+2
|
* Add two more test_strtod test values.Mark Dickinson2010-01-211-0/+36
|
* Additional testcases for strtod.Mark Dickinson2010-01-211-0/+54
|
* Various dtoa.c cleanups. 1. Despagghetify _Py_dg_strtod parsing codeMark Dickinson2010-01-201-4/+41
| | | | | | and exit points. 2. Simplify bigcomp comparison loop. 3. Don't set ERANGE on _Py_dg_strtod underflow (it was set inconsistently anyway). 4. Remove unused dsign field from BCinfo struct.
* Revert debugprint code in r77607.Gregory P. Smith2010-01-191-4/+0
|
* Add a pydebug mode only debug print to help debug the errors inGregory P. Smith2010-01-191-0/+4
| | | | | | http://www.python.org/dev/buildbot/all/builders/x86%20gentoo%20trunk/builds/5700/ Will be removed shortly.
* data descriptors do not override the class dictionary if __get__ is not definedBenjamin Peterson2010-01-181-0/+20
| | | | | | | Adjust documentation and add a test to verify this behavior. See http://mail.python.org/pipermail/python-dev/2010-January/095637.html for discussion.
* Issue #7561: Operations on empty bytearrays (such as `int(bytearray())`)Antoine Pitrou2010-01-171-0/+7
| | | | | | could crash in many places because of the PyByteArray_AS_STRING() macro returning NULL. The macro now returns a statically allocated empty string instead.
* Increase number of strtod tests slightly, to make it more likely that a ↵Mark Dickinson2010-01-171-1/+1
| | | | memory leak is detected.
* Add better error reporting for MemoryErrors caused by str->float conversions.Mark Dickinson2010-01-161-0/+2
|
* Issue #7632: Fix one more case of incorrect rounding for str -> floatMark Dickinson2010-01-161-6/+3
| | | | conversion (see bug 5 in the issue tracker).
* Followup to #7703: a2b_hqx() didn't follow the new buffer API (neither in trunkAntoine Pitrou2010-01-161-30/+72
| | | | nor in py3k). Patch by Florent Xicluna as well as additional tests.
* Issue #7632: Fix a serious wrong output bug for string -> float conversion.Mark Dickinson2010-01-161-0/+2
| | | | | | Also remove some now unused variables, and add comments clarifying the possible outputs of the parsing section of _Py_dg_strtod. Thanks Eric Smith for reviewing.