summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Reverting the Revision: 77368. I committed Flox's big patch for tests bySenthil Kumaran2010-01-08107-800/+442
| | | | mistake. ( It may come in for sure tough)
* Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵Senthil Kumaran2010-01-08107-442/+800
| | | | Patch by flox
* Backport some float repr tests that were missed in issue 7117.Mark Dickinson2010-01-081-0/+49
|
* Issue #7455: Fix possible crash in cPickle on invalid input. Patch byAntoine Pitrou2010-01-071-0/+9
| | | | Florent Xicluna.
* #5991: let completion for the "help" command include help topics.Georg Brandl2010-01-061-2/+4
| | | | | This also simplifies the Cmd.get_names() method implementation; it was written at a time where dir() didn't consider base class attributes.
* Small fixes to test_cmd: fix signature of do_shell, remove duplicate import, ↵Georg Brandl2010-01-061-2/+4
| | | | add option to run the custom Cmd class.
* add a test about hashing array.arrayBenjamin Peterson2010-01-051-0/+9
|
* Kill a couple of "<>"Antoine Pitrou2010-01-041-2/+2
|
* do correct lookup of the __complex__ methodBenjamin Peterson2010-01-041-0/+3
|
* Issue #7471: Improve the performance of GzipFile's buffering mechanism,Antoine Pitrou2010-01-031-0/+11
| | | | | and make it implement the `io.BufferedIOBase` ABC to allow for further speedups by wrapping it in an `io.BufferedReader`. Patch by Nir Aides.
* Fix testSourceAddress to not test the host, it wasn't passing on some platforms.Gregory P. Smith2010-01-031-9/+4
|
* issue3972: HTTPConnection and HTTPSConnection now support aGregory P. Smith2010-01-031-2/+35
| | | | | | source_address parameter. Also cleans up an annotation in the socket documentation.
* Adds an optional source_address parameter to socket.create_connection().Gregory P. Smith2010-01-031-1/+14
| | | | For use by issue3972.
* Import all implementations of the hash algorithms (OpenSSL & builtin) and runGregory P. Smith2010-01-031-10/+75
| | | | | | | | | the test suite across all that are available. Warns about extension modules that could not be imported when python was compiled with Py_DEBUG. That warning could be made fatal but I didn't want to do that initially as I suspect non setup.py based build processes (windows, any others?) won't compile them all conditionally based on the Py_DEBUG setting today.
* Issue #3745: Undo the requirement for new buffer API only objects to be passedGregory P. Smith2010-01-021-11/+16
| | | | | | to hashlib functions in python 2.x. The module now uses the 's*' for argument parsing which auto encodes unicode objects to the system default encoding for us.
* Remove silly conditional.Antoine Pitrou2010-01-021-4/+2
|
* Add tests for issue #7458: str.rfind() would crash when called with an invalidAntoine Pitrou2010-01-021-0/+6
| | | | | start value. The offending code itself was removed as part of #7462. This patch by Victor Stinner.
* Issue #7462: Implement the stringlib fast search algorithm for the `rfind`,Antoine Pitrou2010-01-022-3/+33
| | | | `rindex`, `rsplit` and `rpartition` methods. Patch by Florent Xicluna.
* Issue #5080: turn the DeprecationWarning from float arguments passedMark Dickinson2010-01-013-25/+29
| | | | | | to integer PyArg_Parse* format codes into a TypeError. Add a DeprecationWarning for floats passed with the 'L' format code, which didn't previously have a warning.
* More yearly updates.Georg Brandl2010-01-012-3/+3
|
* indentation and further alignment with py3kEzio Melotti2009-12-311-3/+3
|
* cleanup and refactoringEzio Melotti2009-12-311-128/+123
|
* check if the attribute is set before deleting it with T_OBJECT_EX (fixes #7604)Benjamin Peterson2009-12-301-0/+5
| | | | | Also, add a note to the docs about the better behavior of T_OBJECT_EX as compared to T_OBJECT.
* Issue #7534: Fix handling of nans, infinities, and negative zero in **Mark Dickinson2009-12-302-2/+216
| | | | operator, on IEEE 754 platforms. Thanks Marcos Donolo for original patch.
* #5511: Added the ability to use ZipFile as a context manager. Patch by Brian ↵Ezio Melotti2009-12-301-489/+452
| | | | Curtin.
* #7413: Passing '\0' as the separator to datetime.datetime.isoformat()Amaury Forgeot d'Arc2009-12-291-0/+1
| | | | used to drop the time part of the result.
* Issue #7575: An overflow test for math.expm1 was failing on OS X 10.4/Intel,Mark Dickinson2009-12-291-1/+7
| | | | | | | due to a defect in the platform's implementation of expm1. Since the issue is of low severity, and appears to be fixed in OS X 10.5 and 10.6, it doesn't seem worth working around, so I'm just weakening the relevant test so that it passes on 10.4.
* enable test_main.pyBenjamin Peterson2009-12-291-2/+3
|
* #7033: add new API function PyErr_NewExceptionWithDoc, for easily giving new ↵Georg Brandl2009-12-281-0/+39
| | | | exceptions a docstring.
* Use a more idiomatic check in check_truediv.Mark Dickinson2009-12-271-3/+2
|
* Use ldexp(q, exp) instead of q*2.**exp in true division test, to avoid bogus ↵Mark Dickinson2009-12-271-1/+2
| | | | failures on platforms with broken pow (e.g., Ubuntu/ia64).
* Issue #1811: Improve accuracy and consistency of true division for integers.Mark Dickinson2009-12-271-0/+168
|
* #6108: unicode(exception) and str(exception) should return the same messageEzio Melotti2009-12-241-1/+109
|
* fix alleged refleakBenjamin Peterson2009-12-241-3/+8
|
* Fix possible integer overflow in lchown and fchown functions. For issue1747858.Gregory P. Smith2009-12-231-25/+48
|
* Issue #7553: test_long_future wasn't testing properly. Thanks Florent XiclunaMark Dickinson2009-12-211-9/+7
| | | | for bug report and patch.
* Issue #7554: Various fixups in test_cmath.py: remove code duplication,Mark Dickinson2009-12-201-63/+50
| | | | use new-style formatting. Thanks Florent Xicluna for the patch.
* Silence -3 warnings. Thanks Florent Xicluna.Mark Dickinson2009-12-201-2/+4
|
* Fix for consistency with py3k keyword-only version of assertAlmostEqualMark Dickinson2009-12-201-4/+4
|
* Issue #7554: Fix incorrect usage of rAssertAlmostEqual. Thanks Florent ↵Mark Dickinson2009-12-201-2/+2
| | | | Xicluna.
* Add missing tests for PyArg_Parse* with format 'h'Mark Dickinson2009-12-201-1/+18
|
* Fix for issue 7291 - urllib2 cannot handle https with proxy requiring authSenthil Kumaran2009-12-201-31/+74
| | | | Refactored HTTPHandler tests and added testcase for proxy authorization.
* Issue #3366: Add error function and complementary error function toMark Dickinson2009-12-191-0/+82
| | | | math module.
* Issue #3366: Add expm1 function to math module. Thanks Eric Smith forMark Dickinson2009-12-162-7/+76
| | | | testing on Windows.
* Issue #7396: fix -s, which was broken by the -j enhancement.R. David Murray2009-12-161-11/+9
|
* remove lib2to3 resourceBenjamin Peterson2009-12-161-2/+0
|
* Issue #7498: make test_multiprocessing use test_support.find_unused_portR. David Murray2009-12-141-2/+3
| | | | instead of a hard coded port number in test_rapid_restart.
* Issue #1680159: unicode coercion during an 'in' operation was maskingR. David Murray2009-12-141-1/+3
| | | | | | | any errors that might occur during coercion of the left operand and turning them into a TypeError with a message text that was confusing in the given context. This patch lets any errors through, as was already done during coercion of the right hand side.
* accept None as the same as having passed no argument in file types #7349Benjamin Peterson2009-12-132-4/+41
| | | | | | | This is for consistency with imitation file objects like StringIO and BytesIO. This commit also adds a few tests, where they were lacking for concerned methods.
* #7342: make sure that the datetime object in test_fraction always has a ↵Ezio Melotti2009-12-131-3/+4
| | | | number of microseconds != 0