summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* bpo-29951: Include function name for some error messages in ↵Michael Seifert2017-04-093-11/+12
| | | | | | | `PyArg_ParseTuple*` (#916) Also changed format specifier for function name from "%s" to "%.200s" and exception messages should start with lowercase letter.
* Remove invalid comment in urllib.request. (#1054)Senthil Kumaran2017-04-091-6/+2
|
* bpo-29998: Pickling and copying ImportError now preserves name and path (#1010)Serhiy Storchaka2017-04-081-0/+20
| | | attributes.
* bpo-29914: Fix default implementations of __reduce__ and __reduce_ex__(). (#843)Serhiy Storchaka2017-04-081-1/+14
| | | | object.__reduce__() no longer takes arguments, object.__reduce_ex__() now requires one argument.
* bpo-29958: Minor improvements to zipfile and tarfile CLI. (#944)Serhiy Storchaka2017-04-074-14/+28
|
* Remove Invalid comment in test_urllib2.py (#1020)Senthil Kumaran2017-04-071-1/+0
|
* bpo-28837: Fix lib2to3 handling of map/zip/filter calls when followed with a ↵Stuart Berg2017-04-064-26/+109
| | | | 'trailer', e.g. zip()[x] (#24)
* bpo-29962: add math.remainder (#950)Mark Dickinson2017-04-051-0/+135
| | | | | | | | | | | | | | * Implement math.remainder. * Fix markup for arguments; use double spaces after period. * Mark up function reference in what's new entry. * Add comment explaining the calculation in the final branch. * Fix out-of-order entry in whatsnew. * Add comment explaining why it's good enough to compare m with c, in spite of possible rounding error.
* bpo-29762: More use "raise from None". (#569)Serhiy Storchaka2017-04-0528-44/+46
| | | This hides unwanted implementation details from tracebacks.
* correct parse_qs and parse_qsl test case descriptions. (#968)Senthil Kumaran2017-04-052-19/+23
| | | * correct parse_qs and parse_qsl test case descriptions.
* bpo-29649: Improve struct.pack_into() boundary error messages (#424)Andrew Nester2017-04-041-0/+20
|
* bpo-29972: Skip tests known to fail on AIX (#979)Victor Stinner2017-04-045-5/+23
| | | | | | | | | | | | | | | | | | | | | | * bpo-29972: Fix test_eintr on AIX On AIX, sigtimedwait(0.2) sleeps 199.8 ms, whereas the test expects 200 ms or longer. * bpo-29972: Skip some inet_pton() tests on AIX Skip some inet_pton() tests of test_socket on AIX. inet_pton() on AIX is less strict than on Linux and doesn't reject some invalid IP addresses. The unit tests test more the libc than Python itself. * bpo-29972: Skip tests known to fail on AIX * test_locale.test_strcoll_with_diacritic() * test_locale.test_strxfrm_with_diacritic() * test_strptime.test_week_of_year_and_day_of_week_calculation() * test_tools.test_POT_Creation_Date()
* test_locale now ignores the DeprecationWarning (#977)Victor Stinner2017-04-032-12/+14
| | | | | Don't fail anymore if test run with python3 -Werror. Fix also deprecation message: add a space.
* bpo-29654 : Support If-Modified-Since HTTP header (browser cache) (#298)Pierre Quentel2017-04-022-5/+93
| | | | Return 304 response if file was not modified.
* Minor spell fix and formatting fixes in urllib tests. (#959)Senthil Kumaran2017-04-022-2/+6
|
* bpo-29957: change LBYL key lookup to dict.setdefault (#938)Michael Selik2017-04-021-5/+0
| | | | | | | | | | | | | * change LBYL key lookup to dict.setdefault The ``results`` was constructed as a defaultdict and we could simply delete the check ``if key not in results``. However, I think it's safer to use dict.setdefault as I'm not sure whether the caller expects a regular dict or defaultdict. * add name to the acknowledgements file * use defaultdict to make the key-lookup cleaner
* Revert "bpo-29763: Use unittest cleanup in test_site (GH-841)" (GH-942)Zachary Ware2017-04-011-34/+45
| | | This reverts commit b94d7fd4efa877d649cea9c8125c8869ffe0c32d.
* bpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and v6. (#879)s-sanjay2017-04-012-10/+33
| | | | | | | | the original logic was just comparing the network address but this is wrong because if the network address is equal then we need to compare the ip address for breaking the tie add more ip_interface comparison tests
* Add helpful explaination to test_password_manager tests. (#936)Senthil Kumaran2017-04-011-15/+26
| | | Also uncomment and fix a path test.
* bpo-29763: Use unittest cleanup in test_site (GH-841)Zachary Ware2017-04-011-45/+34
|
* bpo-29953: Fix memory leaks in the replace() method of datetime and time (#927)Serhiy Storchaka2017-03-311-0/+5
| | | objects when pass out of bound fold argument.
* Remove catching OSError in ftphandler test. Only URLError is raised in ↵Senthil Kumaran2017-03-311-3/+1
| | | | urllib.request module. (#918)
* bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. (#889)T. Wouters2017-03-301-0/+8
| | | | | Fix the use of recursion in itertools.chain.from_iterable. Using recursion is unnecessary, and can easily cause stack overflows, especially when building in low optimization modes or with Py_DEBUG enabled.
* bpo-10030: Sped up reading encrypted ZIP files by 2 times. (#550)Serhiy Storchaka2017-03-301-57/+55
|
* bpo-29204: Emit warnings for already deprecated ElementTree features. (#773)Serhiy Storchaka2017-03-303-50/+49
| | | | | | | | Element.getiterator() and the html parameter of XMLParser() were deprecated only in the documentation (since Python 3.2 and 3.4 correspondintly). Now using them emits a deprecation warning. * Don’t need check_warnings any more.
* bpo-29887: Test normalization now fails if download fails (#905)Victor Stinner2017-03-301-4/+9
| | | | | | | | | | | | * test_normalization fails if download fails bpo-29887. The test is still skipped if "-u urlfetch" option is not passed to regrtest (python3 -m test -u urlfetch test_normalization). * Fix ResourceWarning in test_normalization bpo-29887: Fix ResourceWarning in test_normalization if tests are interrupted by CTRL+c.
* bpo-20548: Use specific asserts in warnings and exceptions tests (#788)Serhiy Storchaka2017-03-303-35/+35
|
* bpo-27863: Fixed multiple crashes in ElementTree. (#765)Serhiy Storchaka2017-03-301-0/+112
|
* bpo-29816: Shift operation now has less opportunity to raise OverflowError. ↵Serhiy Storchaka2017-03-301-2/+30
| | | | | | | (#680) ValueError always is raised rather than OverflowError for negative counts. Shifting zero with non-negative count always returns zero.
* bpo-25996: Added support of file descriptors in os.scandir() on Unix. (#502)Serhiy Storchaka2017-03-302-18/+55
| | | | os.fwalk() is sped up by 2 times by using os.scandir().
* Remove an unrequired TODO in test_urllib2. (#897)Senthil Kumaran2017-03-301-1/+0
|
* bpo-28699: fix abnormal behaviour of pools in multiprocessing.pool (GH-693)Xiang Zhang2017-03-292-25/+113
| | | | | an exception raised at the very first of an iterable would cause pools behave abnormally (swallow the exception or hang)
* bpo-19791: Use functions from test support to check the symlink support. ↵Vajrasky Kok2017-03-281-35/+20
| | | | (GH-822)
* bpo-10379: add 'monetary' to format_string, deprecate formatGarvit Khatri2017-03-283-23/+33
| | | | | | | Add the 'monetary' parameter to format_string so that all uses of format can be converted to format_string. Adjust the documentation accordingly, and add a deprecation warning when format is used.
* Fix ref cycles in TestCase.assertRaises() (#193)Victor Stinner2017-03-272-22/+43
| | | | bpo-23890: unittest.TestCase.assertRaises() now manually breaks a reference cycle to not keep objects alive longer than expected.
* bpo-29912: Remove redundant tests in list_tests that are found in seq_tests ↵Jim Fasarakis-Hilliard2017-03-272-63/+4
| | | | (GH-847)
* bpo-29919: Remove unused imports found by pyflakes (#137)Victor Stinner2017-03-2735-49/+28
| | | Make also minor PEP8 coding style fixes on modified imports.
* bpo-20552: Use specific asserts in bytes tests (#790)Serhiy Storchaka2017-03-271-15/+15
|
* Minor test cleanup (GH-837)Zachary Ware2017-03-272-7/+0
| | | | | | * Remove unused test file * Remove duplicated text in sndhdrdata README
* import sys before we use it on line 9 (#828)Jelle Zijlstra2017-03-271-1/+2
|
* Fix small exception typos in Lib (#818)Jim Fasarakis-Hilliard2017-03-262-3/+3
|
* bpo-29900: Simplify pathlib implementation. (#814)Serhiy Storchaka2017-03-251-29/+17
| | | | Since functions in the os module support path-like objects, explicit converting Path to str no longer needed.
* bpo-29901: Improve support of path-like objects in zipapp. (#815)Serhiy Storchaka2017-03-251-7/+4
| | | Now general path-like objects are supported, not just pathlib.Path.
* bpo-29862: Fix grammar in importlib.reload() exception (GH-809)Mandeep Bhutani2017-03-251-1/+1
|
* bpo-29894: Deprecate returning an instance of complex subclass from ↵Serhiy Storchaka2017-03-242-3/+5
| | | | | __complex__. (#798) In a future versions of Python this can be an error.
* bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True) (#805)Serhiy Storchaka2017-03-242-17/+20
| | | | when the OS gives priority to errors such as EACCES over EEXIST.
* bpo-29861: release references to multiprocessing Pool tasks (#743)Antoine Pitrou2017-03-242-1/+34
| | | | | | | | | | * bpo-29861: release references to multiprocessing Pool tasks Release references to tasks, their arguments and their results as soon as they are finished, instead of keeping them alive until another task arrives. * Comments in test
* bpo-19930: The mode argument of os.makedirs() no longer affects the file (#799)Serhiy Storchaka2017-03-242-1/+13
| | | permission bits of newly-created intermediate-level directories.
* bpo-6532: Make the thread id an unsigned integer. (#781)Serhiy Storchaka2017-03-235-8/+13
| | | | | | | | | | | * bpo-6532: Make the thread id an unsigned integer. From C API side the type of results of PyThread_start_new_thread() and PyThread_get_thread_ident(), the id parameter of PyThreadState_SetAsyncExc(), and the thread_id field of PyThreadState changed from "long" to "unsigned long". * Restore a check in thread_get_ident().
* fix function name in tabnanny documentation (GH-759)Jelle Zijlstra2017-03-221-1/+1
|