summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
...
| * Issue #22289: Prevent test_urllib2net failures due to ftp connection timeout.Ned Deily2015-03-221-1/+2
| |
* | Issue #23571: Fix test_capiVictor Stinner2015-03-211-2/+2
| |
* | Issue #23571: _Py_CheckFunctionResult() now gives the name of the functionVictor Stinner2015-03-211-0/+44
| | | | | | | | | | | | | | | | | | | | | | which returned an invalid result (result+error or no result without error) in the exception message. Add also unit test to check that the exception contains the name of the function. Special case: the final _PyEval_EvalFrameEx() check doesn't mention the function since it didn't execute a single function but a whole frame.
* | Issue 23704: Add index(), copy(), and insert() to deques. Register deques ↵Raymond Hettinger2015-03-212-1/+59
| | | | | | | | as a MutableSequence.
* | Issue #22351: The nntplib.NNTP constructor no longer leaves the connectionSerhiy Storchaka2015-03-211-4/+98
|\ \ | |/ | | | | | | and socket open until the garbage collector cleans them up. Patch by Martin Panter.
| * Issue #22351: The nntplib.NNTP constructor no longer leaves the connectionSerhiy Storchaka2015-03-211-4/+98
| | | | | | | | | | and socket open until the garbage collector cleans them up. Patch by Martin Panter.
* | Issue 23705: Improve the performance of __contains__ checks for deques.Raymond Hettinger2015-03-201-0/+20
| |
* | Issue #23681: The -b option now affects comparisons of bytes with int.Serhiy Storchaka2015-03-201-13/+28
| |
* | Issue #23681: Fixed Python 2 to 3 poring bugs.Serhiy Storchaka2015-03-202-7/+8
|\ \ | |/ | | | | Indexing bytes retiurns an integer, not bytes.
| * Issue #23681: Fixed Python 2 to 3 poring bugs.Serhiy Storchaka2015-03-202-7/+8
| | | | | | | | Indexing bytes retiurns an integer, not bytes.
* | Issue #23715: Fix test_script_helperVictor Stinner2015-03-201-2/+2
| |
* | Issue #23696: Remove test on ZipImportError.__context__ because the context isVictor Stinner2015-03-201-1/+0
| | | | | | | | | | | | | | | | | | None on Windows. When the file is not readable, the error occurs at open on UNIX. On Windows, the error only occurs at the first operation on the open file. It would require to many changes to set __context__ to an OSError for all file operations, for a little benefit (__context__ is almost never used).
* | Issue #23715: Fix test_eintr, skip tests on signal.sigwaitinfo() andVictor Stinner2015-03-201-0/+4
| | | | | | | | signal.sigtimedwait() if functions are missing
* | Issue #23715: Enhance test.script_helper to investigate test_eintr failureVictor Stinner2015-03-201-4/+23
| | | | | | | | If Python failed, show also stdout in the assertion error.
* | Issue #23715: signal.sigwaitinfo() and signal.sigtimedwait() are now retriedVictor Stinner2015-03-202-30/+37
| | | | | | | | | | | | | | | | | | | | when interrupted by a signal not in the *sigset* parameter, if the signal handler does not raise an exception. signal.sigtimedwait() recomputes the timeout with a monotonic clock when it is retried. Remove test_signal.test_sigwaitinfo_interrupted() because sigwaitinfo() doesn't raise InterruptedError anymore if it is interrupted by a signal not in its sigset parameter.
* | Issue #23696: Chain ZipImportError to the OSErrorVictor Stinner2015-03-201-1/+4
| |
* | Issue #23001: Few functions in modules mmap, ossaudiodev, socket, ssl, andSerhiy Storchaka2015-03-204-2/+19
| | | | | | | | | | codecs, that accepted only read-only bytes-like object now accept writable bytes-like object too.
* | Issue #23646: Enhance precision of time.sleep() and socket timeout whenVictor Stinner2015-03-201-5/+2
| | | | | | | | | | | | | | | | interrupted by a signal Add a new _PyTime_AddDouble() function and remove _PyTime_ADD_SECONDS() macro. The _PyTime_ADD_SECONDS only supported an integer number of seconds, the _PyTime_AddDouble() has subsecond resolution.
* | Issue #23632: Memoryviews now allow tuple indexing (including for ↵Antoine Pitrou2015-03-191-6/+50
| | | | | | | | multi-dimensional memoryviews).
* | Issue #22181: The availability of the getrandom() is now checked in configure,Victor Stinner2015-03-191-0/+3
| | | | | | | | | | | | and stored in pyconfig.h as the new HAVE_GETRANDOM_SYSCALL define. Fix os.urandom() tests using file descriptors if os.urandom() uses getrandom().
* | Issue #23646: If time.sleep() is interrupted by a signal, the sleep is nowVictor Stinner2015-03-192-15/+36
| | | | | | | | | | | | | | retried with the recomputed delay, except if the signal handler raises an exception (PEP 475). Modify also test_signal to use a monotonic clock instead of the system clock.
* | Issue #23136: _strptime now uniformly handles all days in week 0, includingSerhiy Storchaka2015-03-191-0/+18
|\ \ | |/ | | | | Jan 30 of previous year. Based on patch by Jim Carroll.
| * Issue #23136: _strptime now uniformly handles all days in week 0, includingSerhiy Storchaka2015-03-191-0/+18
| | | | | | | | Jan 30 of previous year. Based on patch by Jim Carroll.
* | Issue #23700: Iterator of NamedTemporaryFile now keeps a reference toSerhiy Storchaka2015-03-191-0/+13
|\ \ | |/ | | | | NamedTemporaryFile instance. Patch by Bohuslav Kabrda.
| * Issue #23700: Iterator of NamedTemporaryFile now keeps a reference toSerhiy Storchaka2015-03-191-0/+13
| | | | | | | | NamedTemporaryFile instance. Patch by Bohuslav Kabrda.
| * issue23673Ethan Furman2015-03-192-0/+13
| | | | | | | | | | | | | | | | | | add private method to enum to support replacing global constants with Enum members: - search for candidate constants via supplied filter - create new enum class and members - insert enum class and replace constants with members via supplied module name - replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle modify IntEnum classes to use new method
* | issue23673Ethan Furman2015-03-192-0/+13
| | | | | | | | | | | | | | | | | | add private method to enum to support replacing global constants with Enum members: - search for candidate constants via supplied filter - create new enum class and members - insert enum class and replace constants with members via supplied module name - replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle modify IntEnum classes to use new method
* | Issue #23353: improve exceptions tests for generatorsAntoine Pitrou2015-03-181-0/+46
|\ \ | |/
| * Issue #23353: improve exceptions tests for generatorsAntoine Pitrou2015-03-181-0/+46
| |
* | Restored backward compatibility of pickling http.cookies.Morsel. It wasSerhiy Storchaka2015-03-181-0/+20
| | | | | | | | broken after converting instance attributes to properies in issue #2211.
* | Issue #2211: Updated the implementation of the http.cookies.Morsel class.Serhiy Storchaka2015-03-181-0/+179
| | | | | | | | | | | | | | | | | | Setting attributes key, value and coded_value directly now is deprecated. update() and setdefault() now transform and check keys. Comparing for equality now takes into account attributes key, value and coded_value. copy() now returns a Morsel, not a dict. repr() now contains all attributes. Optimized checking keys and quoting values. Added new tests. Original patch by Demian Brecht.
* | Issue #23207: merged fix from 3.4.Vinay Sajip2015-03-181-0/+4
|\ \ | |/
| * Issue #23207: Improved kwarg validation.Vinay Sajip2015-03-181-0/+4
| |
| * Issue #22585: make URandomFDTests test case actually runNed Deily2015-03-171-0/+1
| |
* | Issue #18983: Allow selection of output units in timeit.Robert Collins2015-03-171-0/+20
| | | | | | | | | | | | | | | | This allows manual selection of a specific unit such as usecs rather than the use of a heuristic. This is intended to aid machine processing of timeit output. Patch by Serhiy Storchaka.
* | Revert changeset d927047b1d8eb87738676980a24930d053ba2150Victor Stinner2015-03-172-26/+8
| | | | | | | | Sorry, it was a mistake, the patch is still under review: issue #23646.
* | Issue #23680: Reduce risk of race condition in check_interrupted_write() ofVictor Stinner2015-03-161-2/+2
| | | | | | | | | | | | test_io. Allocate the large data before scheduling an alarm in 1 second. On very slow computer, the alarm rings sometimes during the memory allocation.
* | Issue #23680: Reduce risk of race condition in check_interrupted_write_retry()Victor Stinner2015-03-161-1/+8
| | | | | | | | | | | | of test_io. Allocate the large data before scheduling an alarm in 1 second. On very slow computer, the alarm rings sometimes during the memory allocation.
* | Use non-zero and non-last positions in error handler tests.Serhiy Storchaka2015-03-161-30/+37
|\ \ | |/
| * Use non-zero and non-last positions in error handler tests.Serhiy Storchaka2015-03-161-24/+28
| |
* | Issue #23631: Fix traceback.format_list when a traceback has been mutated.Robert Collins2015-03-161-1/+9
| |
* | Increased coverage of standard codec error handlers.Serhiy Storchaka2015-03-151-133/+197
|\ \ | |/
| * Increased coverage of standard codec error handlers.Serhiy Storchaka2015-03-151-76/+158
| |
* | Issue #2052: Add charset parameter to HtmlDiff.make_file().Berker Peksag2015-03-142-1/+36
| |
* | Issue #23491: Implement PEP 441: Improving Python Zip Application SupportBrett Cannon2015-03-131-0/+250
| | | | | | | | Thanks to Paul Moore for the PEP and implementation.
* | Issue #23566: Skip "fd" tests of test_faulthandler on WindowsVictor Stinner2015-03-131-0/+8
| | | | | | | | subprocess doesn't support pass_fds on Windows.
* | testVictor Stinner2015-03-122-8/+26
| |
* | Issue #23138: Fixed parsing cookies with absent keys or values in cookiejar.Serhiy Storchaka2015-03-131-0/+23
|\ \ | |/ | | | | Patch by Demian Brecht.
| * Issue #23138: Fixed parsing cookies with absent keys or values in cookiejar.Serhiy Storchaka2015-03-131-0/+23
| | | | | | | | Patch by Demian Brecht.
* | Issue #23051: multiprocessing.Pool methods imap() and imap_unordered() nowSerhiy Storchaka2015-03-131-0/+46
|\ \ | |/ | | | | | | handle exceptions raised by an iterator. Patch by Alon Diamant and Davin Potts.