summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* bpo-30406: Make async and await proper keywords (#1669)Jelle Zijlstra2017-10-064-41/+23
| | | Per PEP 492, 'async' and 'await' should become proper keywords in 3.7.
* PEP 553 built-in breakpoint() function (bpo-31353) (#3355)Barry Warsaw2017-10-052-2/+111
| | | Implement PEP 553, built-in breakpoint() with support from sys.breakpointhook(), along with documentation and tests. Closes bpo-31353
* bpo-31556: asyncio.wait_for can cancel futures faster with timeout <= 0 (#3703)Victor K2017-10-051-0/+70
|
* bpo-31178: Mock os.waitpid() in test_subprocess (#3896)Victor Stinner2017-10-051-4/+8
| | | | | | Fix test_exception_errpipe_bad_data() and test_exception_errpipe_normal() of test_subprocess: mock os.waitpid() to avoid calling the real os.waitpid(0, 0) which is an unexpected side effect of the test.
* closes bpo-31596: Add an interface for pthread_getcpuclockid(3) (#3756)pdox2017-10-051-0/+20
|
* bpo-30404: The -u option now makes the stdout and stderr streams totally ↵Serhiy Storchaka2017-10-041-4/+3
| | | | unbuffered. (#1667)
* bpo-30397: Add re.Pattern and re.Match. (#1646)Serhiy Storchaka2017-10-042-5/+3
|
* bpo-31675: Fix memory leaks in Tkinter's methods splitlist() and split() (#3866)Serhiy Storchaka2017-10-031-21/+33
| | | | | when pass a string larger than 2 GiB. Decrease memory requirements for Tcl's bigmem tests.
* bpo-31657: Add test coverage for the __debug__ case (GH-3450)diana2017-10-031-8/+11
| | | | | | Update the compile tests for optimization levels to also check that __debug__ blocks are included or excluded based on the optimization level. Patch by Diana Clarke.
* bpo-31619: Fixed a ValueError when convert a string with large number of ↵Serhiy Storchaka2017-10-031-0/+8
| | | | | underscores (#3827) to integer with binary base.
* bpo-31540: Allow passing multiprocessing context to ProcessPoolExecutor (#3682)Thomas Moreau2017-10-031-9/+120
|
* bpo-31510: Fix multiprocessing test_many_processes() on macOS (#3857)Victor Stinner2017-10-021-1/+6
| | | | On macOS, a process can exit with -SIGKILL if it is killed "early" with SIGTERM.
* bpo-31516: current_thread() should not return a dummy thread at shutdown (#3673)Antoine Pitrou2017-10-021-0/+29
| | | | bpo-31516: current_thread() should not return a dummy thread at shutdown
* bpo-31158: Fix nondeterministic read in test_pty (#3808)Cornelius Diekmann2017-10-021-2/+19
| | | | | | | | | | | | | * bpo-31158: Fix nondeterministic read in test_pty * Reuse existing readline implementation from io. Thx to @pitrou * Updated comment Ideally, this commit is fixuped into the previous commit. Since there is already a comment on github, I won't rebase.
* bpo-31592: Fix an assertion failure in Python parser in case of a bad ↵Oren Milman2017-09-301-0/+10
| | | | unicodedata.normalize(). (#3767)
* bpo-31627: Make test_mailbox be lenient to empty hostname. (#3821)Serhiy Storchaka2017-09-301-1/+1
|
* bpo-31648: Improve ElementPath (#3835)scoder2017-09-301-0/+33
| | | | | * Allow whitespace inside of ElementPath predicates. * Add ElementPath predicate support for text comparison of the current node, like "[.='text']".
* bpo-31581: Reduce the number of imports for functools (GH-3757)INADA Naoki2017-09-301-83/+84
|
* bpo-30806 netrc.__repr__() is broken for writing to file (GH-2491)James Sexton2017-09-301-3/+6
| | | | | netrc file format doesn't support quotes and escapes. See https://linux.die.net/man/5/netrc
* bpo-31641: Allow arbitrary iterables in `concurrent.futures.as_completed()` ↵Łukasz Langa2017-09-291-1/+5
| | | | | | | (#3830) This was possible before. GH-1560 introduced a regression after 3.6.2 got released where only sequences were accepted now. This commit addresses this problem.
* bpo-31602: Fix an assertion failure in zipimporter.get_source() in case of a ↵Oren Milman2017-09-291-0/+17
| | | | | | | bad zlib.decompress() (GH-3784) While a rare potential failure (it requires swapping out zlib.decompress() itself and forcing it to return a non-bytes object), this change prevents a potential C-level assertion failure and instead substitutes it with an exception. Thanks to Oren Milman for the patch.
* bpo-31638: Add compression support to zipapp (GH-3819)Zhiming Wang2017-09-291-0/+14
| | | | Add optional argument `compressed` to `zipapp.create_archive`, and add option `--compress` to the command line interface of `zipapp`.
* remove support for BSD/OS (closes bpo-31624) (#3812)Benjamin Peterson2017-09-291-1/+1
|
* bpo-11063, bpo-20519: avoid ctypes and improve import time for uuid (#3796)Antoine Pitrou2017-09-281-138/+177
| | | | bpo-11063, bpo-20519: avoid ctypes and improve import time for uuid.
* bpo-31478: Fix an assertion failure in random.seed() in case a seed has a ↵Oren Milman2017-09-281-0/+11
| | | | bad __abs__() method. (#3596)
* bpo-31588: Validate return value of __prepare__() methods (GH-3764)Oren Milman2017-09-271-0/+22
| | | | | | | | | | Class execution requires that __prepare__() methods return a proper execution namespace. Check for that immediately after calling __prepare__(), rather than passing it through to the code execution machinery and potentially triggering SystemError (in debug builds) or a cryptic TypeError (in release builds). Patch by Oren Milman.
* bpo-30347: Stop crashes when concurrently iterate over itertools.groupby() ↵Serhiy Storchaka2017-09-261-0/+24
| | | | iterators. (#1557)
* bpo-31170: Write unit test for Expat 2.2.4 UTF-8 bug (#3570)Victor Stinner2017-09-252-0/+34
| | | Non-regression tests for the Expat 2.2.3 UTF-8 decoder bug.
* bpo-31566: Fix an assertion failure in _warnings.warn() in case of a bad ↵Oren Milman2017-09-241-0/+10
| | | | __name__ global. (#3717)
* bpo-31285: Fix an assertion failure and a SystemError in ↵Oren Milman2017-09-241-0/+36
| | | | warnings.warn_explicit. (#3219)
* bpo-30346: An iterator produced by the itertools.groupby() iterator (#1569)Serhiy Storchaka2017-09-241-0/+20
| | | now becames exhausted after advancing the groupby iterator.
* bpo-31505: Fix an assertion failure in json, in case _json.make_encoder() ↵Oren Milman2017-09-241-0/+21
| | | | received a bad encoder() argument. (#3643)
* bpo-31389 Add an optional `header` argument to pdb.set_trace() (#3438)Barry Warsaw2017-09-221-0/+12
| | | | | | | | | | * Give pdb.set_trace() an optional `header` argument * What's new. * Give pdb.set_trace() an optional `header` argument * What's new.
* bpo-27541: Reprs of subclasses of some classes now contain actual type name. ↵Serhiy Storchaka2017-09-211-2/+2
| | | | | (#3631) Affected classes are bytearray, array, deque, defaultdict, count and repeat.
* bpo-31351: Set return code in ensurepip when pip fails (GH-3626)Igor Filatov2017-09-211-2/+17
| | | | Previously ensurepip would always report success, even if the pip installation failed.
* bpo-26510: make argparse subparsers required by default (#3027)Anthony Sottile2017-09-201-1/+36
| | | | | | This fixes a regression from Python 2. To get optional subparsers, use the new parameter ``add_subparsers(required=False)``. Patch by Anthony Sottile.
* bpo-31479: Always reset the signal alarm in tests (#3588)Victor Stinner2017-09-196-40/+56
| | | | | | | | | | | | | * bpo-31479: Always reset the signal alarm in tests Use "try: ... finally: signal.signal(0)" pattern to make sure that tests don't "leak" a pending fatal signal alarm. * Move two more alarm() calls into the try block Fix also typo: replace signal.signal(0) with signal.alarm(0) * Move another signal.alarm() into the try block
* pythoninfo: ignore OSError(ENOSYS) on getrandom() (#3655)Victor Stinner2017-09-191-5/+12
|
* bpo-31293: Fix crashes in truediv and mul of a timedelta by a float with a ↵Oren Milman2017-09-191-0/+20
| | | | bad as_integer_ratio() method. (#3227)
* bpo-31315: Fix an assertion failure in imp.create_dynamic(), when spec.name ↵Oren Milman2017-09-191-0/+11
| | | | is not a string. (#3257)
* bpo-31492: Fix assertion failures in case of a module with a bad __name__ ↵Oren Milman2017-09-191-0/+12
| | | | attribute. (#3620)
* Trivial cleanups following bpo-31370 (#3649)Antoine Pitrou2017-09-1811-19/+9
| | | | | | * Trivial cleanups following bpo-31370 * Also cleanup the "importlib._bootstrap_external" module
* Restore dummy_threading and _dummy_thread, but deprecate them (bpo-31370) ↵Antoine Pitrou2017-09-182-0/+315
| | | | (#3648)
* os.test_utime_current(): tolerate 50 ms delta (#3646)Victor Stinner2017-09-181-5/+4
|
* bpo-31499, xml.etree: Fix xmlparser_gc_clear() crash (#3641)Victor Stinner2017-09-181-0/+20
| | | | | | | | | | * bpo-31499, xml.etree: Fix xmlparser_gc_clear() crash xml.etree: xmlparser_gc_clear() now sets self.parser to NULL to prevent a crash in xmlparser_dealloc() if xmlparser_gc_clear() was called previously by the garbage collector, because the parser was part of a reference cycle. Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>
* bpo-31482: Missing bytes support for random.seed() version 1 (#3614)Raymond Hettinger2017-09-171-0/+27
| | | bpo-31482: Missing bytes support for random.seed() version 1 #3614
* bpo-31431: SSLContext.check_hostname auto-sets CERT_REQUIRED (#3531)Christian Heimes2017-09-151-3/+24
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-31346: Use PROTOCOL_TLS_CLIENT/SERVER (#3058)Christian Heimes2017-09-159-305/+312
| | | | | | Replaces PROTOCOL_TLSv* and PROTOCOL_SSLv23 with PROTOCOL_TLS_CLIENT and PROTOCOL_TLS_SERVER. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-31386: Custom wrap_bio and wrap_socket type (#3426)Christian Heimes2017-09-151-0/+16
| | | | | | | | | SSLSocket.wrap_bio() and SSLSocket.wrap_socket() hard-code SSLObject and SSLSocket as return types. In the light of future deprecation of ssl.wrap_socket() module function and direct instantiation of SSLSocket, it is desirable to make the return type of SSLSocket.wrap_bio() and SSLSocket.wrap_socket() customizable. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-31234: test_multiprocessing: wait 30 seconds (#3599)Victor Stinner2017-09-151-14/+17
| | | | Give 30 seconds to join_process(), instead of 5 or 10 seconds, to wait until the process completes.