summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* bpo-10076: Compiled regular expression and match objects now are copyable. ↵Serhiy Storchaka2017-04-161-0/+9
| | | | (#1000)
* bpo-29839: Raise ValueError rather than OverflowError in len() for negative ↵Serhiy Storchaka2017-04-161-0/+8
| | | | values. (#701)
* bpo-30068: add missing iter(self) in _io._IOBase.readlines when hint is ↵Xiang Zhang2017-04-151-0/+1
| | | | present (#1130)
* Fix misplaced positional argument in OS X support library (#1134)Jack McCracken2017-04-141-1/+1
|
* Relax test timing (bpo-29861) to avoid sporadic failures (#1120)Antoine Pitrou2017-04-141-0/+1
|
* bpo-11913: Add README.rst to the distutils standard READMEs list (#563)Ryan Gonzalez2017-04-141-1/+1
|
* bpo-29694: race condition in pathlib mkdir with flags parents=True (GH-1089)Armin Rigo2017-04-132-2/+32
|
* bpo-29995: re.escape() now escapes only special characters. (#1007)Serhiy Storchaka2017-04-133-47/+30
|
* bpo-29869: Allow underscores in numeric literals in lib2to3. (GH-1119)Nevada Sanchez2017-04-132-8/+30
| | | | | * Allow underscores in numeric literals in lib2to3. * Stricter literal parsing for Python 3.6 in lib2to3.pgen2.tokenize. * Add test case for underscores in literals in Python 3.
* bpo-26985: Add missing info of code object in inspect documentation (GH-1090)Xiang Zhang2017-04-131-12/+18
|
* bpo-30017: Allowed calling the close() method of the zip entry writer object ↵Serhiy Storchaka2017-04-122-0/+46
| | | | | | (#1041) multiple times. Writing to closed zip entry writer object now always produce a ValueError.
* Remove two legacy constants which hopefully have no consumers (#1087)Alex Gaynor2017-04-121-2/+0
| | | The data contained in them is nonsensical
* Reimplement tempfile._RandomNameSequence using a generator function. (#1075)Serhiy Storchaka2017-04-112-25/+15
|
* bpo-29692: contextlib.contextmanager may incorrectly unchain RuntimeError ↵svelankar2017-04-112-6/+29
| | | | | | | | | | (GH-949) contextlib._GeneratorContextManager.__exit__ includes a special case to deal with PEP 479 RuntimeErrors created when `StopIteration` is thrown into the context manager body. Previously this check was too permissive, and undid one level of chaining on *all* RuntimeError instances, not just those that wrapped a StopIteration instance.
* Remove superfluous comment in urllib.error. (#1076)Senthil Kumaran2017-04-111-4/+0
|
* Remove OSError related comment in urllib.request. (#1070)Senthil Kumaran2017-04-101-1/+0
|
* bpo-26187: Test that set_trace_callback() is not called multiple times (GH-461)Aviv Palivoda2017-04-091-0/+20
| | | | | | conn.set_trace_callback() shouldn't be called multiple times when the schema is changing. This has indirectly been fixed by using sqlite3_prepare_v2() in bpo-9303.
* 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)