summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. ↵Zackery Spytz2018-12-177-4/+43
| | | | (GH-11175)
* bpo-35504: Fix a SystemError when delete the characters_written attribute of ↵Serhiy Storchaka2018-12-171-0/+5
| | | | an OSError. (GH-11172)
* bpo-18799: Resurrect test_404 in test_xmlrpc. (GH-11196)Vajrasky Kok2018-12-171-3/+2
|
* bpo-35415: validate fileno argument to socket.socket (GH-10917)Dima Tisnek2018-12-171-5/+44
| | | https://bugs.python.org/issue35415
* bpo-35513, unittest: TextTestRunner uses time.perf_counter() (GH-11180)Victor Stinner2018-12-175-15/+15
| | | | | | | TextTestRunner of unittest.runner now uses time.perf_counter() rather than time.time() to measure the execution time of a test: time.time() can go backwards, whereas time.perf_counter() is monotonic. Similar change made in libregrtest, pprint and random.
* bpo-35513: Replace time.time() with time.monotonic() in tests (GH-11182)Victor Stinner2018-12-1713-66/+66
| | | | | | | Replace time.time() with time.monotonic() in tests to measure time delta. test_zipfile64: display progress every minute (60 secs) rather than every 5 minutes (5*60 seconds).
* bpo-35186: Remove "built with" comment in setup.py upload (GH-10414)Paul Ganssle2018-12-171-8/+2
| | | | | | platform.dist() is deprecated and slated for removal in Python 3.8. The upload command itself should also not be used to upload to PyPI, but while it continues to exist it should not use deprecated functions.
* bpo-35491, multiprocessing: replace "RUN" with RUN (GH-11178)Victor Stinner2018-12-161-1/+1
|
* bpo-35471: Remove the macpath module (GH-11129)Victor Stinner2018-12-144-379/+4
| | | | Python 2.4 dropped MacOS 9 support. The macpath module was deprecated in Python 3.7. This change removes it.
* bpo-35346: Cleanup platform.architecture() (GH-11130)Victor Stinner2018-12-141-6/+2
| | | struct.calcsize('P') now always works.
* bpo-34279: regrtest consider that skipped tests are ran (GH-11132)Victor Stinner2018-12-142-1/+15
| | | | | | bpo-34279, bpo-35412: support.run_unittest() no longer raises TestDidNotRun if a test result contains skipped tests. The exception is now only raised if no test have been run and no test have been skipped.
* bpo-35491: Enhance multiprocessing.BaseProcess.__repr__() (GH-11138)Victor Stinner2018-12-141-11/+16
| | | | | | | | | | | | | | | | * Add the pid and parent pid to multiprocessing.BaseProcess.__repr__(). * Add negative sign (ex: "-SIGTERM") to exitcode (process killed by a signal) * Only call _popen.poll() once. Example: <ForkProcess(ForkPoolWorker-1, started daemon)> becomes: <ForkProcess name='ForkPoolWorker-1' pid=12449 parent=12448 started daemon> Example: <ForkProcess(ForkPoolWorker-1, stopped[SIGTERM] daemon)> becomes: <ForkProcess name='ForkPoolWorker-1' pid=12960 parent=12959 stopped exitcode=-SIGTERM daemon>
* Add multiprocessing.Pool.__repr__() (GH-11137)Victor Stinner2018-12-141-5/+11
| | | | | * Add multiprocessing.Pool.__repr__() to ease debug * RUN, CLOSE and TERMINATE constants values are now strings rather than integer to ease debug
* bpo-35477: multiprocessing.Pool.__enter__() fails if called twice (GH-11134)Victor Stinner2018-12-132-8/+25
| | | | multiprocessing.Pool.__enter__() now fails if the pool is not running: "with pool:" fails if used more than once.
* bpo-35412: Add testcase to test_future4 (GH-11131)Victor Stinner2018-12-121-1/+6
| | | Add testcase to test_future4: check unicode literal.
* bpo-35346: Drop Mac OS 9 support from platform (GH-10959)Victor Stinner2018-12-121-15/+2
| | | | | | Drop Mac OS 9 and Rhapsody support from the platform module: * Rhapsody: last release in 2000 * Mac OS 9: last release in 2001
* bpo-33106: change dbm key deletion error for readonly file from KeyError to ↵Xiang Zhang2018-12-124-4/+26
| | | | | | dbm.error (#6295)
* Add test for double patching instance methods (#11085)Anthony Sottile2018-12-121-0/+14
|
* bpo-17185: Add __signature__ to mock that can be used by inspect for ↵Xtreak2018-12-122-2/+34
| | | | | | | | | | | | | | | | signature (GH11048) * Fix partial and partial method signatures in mock * Add more calls * Add NEWS entry * Use assertEquals and fix markup in NEWS * Refactor branching and add markup reference for functools * Revert partial object related changes and fix pr comments
* bpo-35394: Add empty slots to abstract asyncio protocols (#10889)Andrew Svetlov2018-12-113-24/+67
| | | | | | * bpo-35394: Add empty slots to abstract asyncio protocols * Add missing test file
* bpo-35426: Eliminate race condition in test_interprocess_signal (GH-11087)Pablo Galindo2018-12-111-22/+18
| | | The test only except SIGUSR1Exception inside wait_signal(), but the signal can be sent during subprocess_send_signal() call.
* bpo-35412: Skip test_multiprocessing_fork and ↵Pablo Galindo2018-12-112-0/+7
| | | | | test_multiprocessing_forkserver on Windows (GH-11086) Forkserver and fork are not available on Windows and therefore these test must be skipped.
* bpo-35458: Fix test_shutil.test_disk_usage() (GH-11111)Victor Stinner2018-12-111-1/+5
| | | | | | | | | | The following test fails if a different process creates or removes a file on the same disk partition between the two lines: usage = shutil.disk_usage(os.path.dirname(__file__)) self.assertEqual(usage, shutil.disk_usage(__file__)) Only test that disk_usage() succeed on a filename, but don't check the result. Add also tests on the fields type (must be int).
* bpo-34977: Add Windows App Store package (GH-11027)Steve Dower2018-12-111-1/+1
| | | Also adds the PC/layout script for generating layouts on Windows.
* bpo-34977: Use venv redirector instead of original python.exe on Windows ↵Steve Dower2018-12-102-30/+20
| | | | (GH-11029)
* bpo-32788: Better error handling in sqlite3. (GH-3723)Serhiy Storchaka2018-12-101-3/+25
| | | Propagate unexpected errors (like MemoryError and KeyboardInterrupt) to user.
* bpo-35050: AF_ALG length check off-by-one error (GH-10058)Christian Heimes2018-12-101-0/+18
| | | | | | | | The length check for AF_ALG salg_name and salg_type had a off-by-one error. The code assumed that both values are not necessarily NULL terminated. However the Kernel code for alg_bind() ensures that the last byte of both strings are NULL terminated. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-35052: Fix handler on xml.dom.minidom.cloneNode() (GH-11061)Victor Stinner2018-12-102-4/+55
| | | | | | | | | | | Fix xml.dom.minidom cloneNode() on a document with an entity: pass the correct arguments to the user data handler of an entity (fix an old copy/paste mistake). Bug spotted and fix proposed by Charalampos Stratakis, initial reproducer written by Petr Viktorin. Co-Authored-By: Charalampos Stratakis <cstratak@redhat.com> Co-Authored-By: Petr Viktorin <encukou@gmail.com>
* bpo-33725: skip test_multiprocessing_fork on macOS (GH-11043)Ned Deily2018-12-091-0/+3
|
* bpo-35330: Don't call the wrapped object if `side_effect` is set (GH10973)Mario Corchero2018-12-082-11/+132
| | | | | | | | | | | | | | | | | | | | | | | * tests: Further validate `wraps` functionality in `unittest.mock.Mock` Add more tests to validate how `wraps` interacts with other features of mocks. * Don't call the wrapped object if `side_effect` is set When a object is wrapped using `Mock(wraps=...)`, if an user sets a `side_effect` in one of their methods, return the value of `side_effect` and don't call the original object. * Refactor what to be called on `mock_call` When a `Mock` is called, it should return looking up in the following order: `side_effect`, `return_value`, `wraps`. If any of the first two return `mock.DEFAULT`, lookup in the next option. It makes no sense to check for `wraps` returning default, as it is supposed to be the original implementation and there is nothing to fallback to.
* bpo-33747: Avoid mutating the global sys.modules dict in unittest.mock tests ↵Anirudha Bose2018-12-071-11/+16
| | | | (GH-8520)
* Revert "bpo-34977: Add Windows App Store package (GH-10245)" (GH-11019)Victor Stinner2018-12-073-21/+31
| | | This reverts commit 468a15aaf9206448a744fc5eab3fc21f51966aad.
* bpo-22005: Fixed unpickling instances of datetime classes pickled by Python ↵Serhiy Storchaka2018-12-072-4/+150
| | | | | | 2. (GH-11017) encoding='latin1' should be used for successful decoding.
* bpo-35346, platform: replace os.popen() with subprocess (GH-10786)Victor Stinner2018-12-072-48/+28
| | | | | | | | | | | Replace os.popen() with subprocess.check_output() in the platform module: * platform.uname() (its _syscmd_ver() helper function) now redirects stderr to DEVNULL. * Remove platform.DEV_NULL. * _syscmd_uname() and _syscmd_file() no longer catch AttributeError. The "except AttributeError:" was only needed in Python 2, when os.popen() was not always available. In Python 3, subprocess.check_output() is always available.
* bpo-34864: warn if "Prefer tabs when opening documents" set to "Always" (#10464)Tal Einat2018-12-074-9/+67
| | | | | | | | | | | | * bpo-34864: warn if "Prefer tabs when opening documents" set to "Always" * add NEWS entry * address code review comments * address second code review comments * Add entry for idlelib/NEWS.txt.
* bpo-34977: Add Windows App Store package (GH-10245)Steve Dower2018-12-073-31/+21
|
* bpo-33023: Fix NotImplemented to NotImplementedError. (GH-10934)Serhiy Storchaka2018-12-063-4/+9
|
* Remove unused function in `testmock/support.py` (GH-10975)Mario Corchero2018-12-061-7/+0
| | | | The function is never imported and the implementation is actually buggy. As `warnings.catch_warnings` is not imported here.
* bpo-35363: test_eintr uses print(flush=True) (GH-10990)Victor Stinner2018-12-061-2/+3
|
* bpo-35424: test_multiprocessing: join 3 pools (GH-10986)Victor Stinner2018-12-061-0/+3
| | | | | | Join 3 pools in these tests: * test.test_multiprocessing_spawn.WithProcessesTestPool.test_context * test.test_multiprocessing_spawn.WithProcessesTestPool.test_traceback
* bpo-35384: The repr of ctypes.CArgObject no longer fails for non-ascii ↵Serhiy Storchaka2018-12-061-0/+1
| | | | character. (GH-10863)
* Revert "bpo-34172: multiprocessing.Pool leaks resources after being deleted ↵Victor Stinner2018-12-062-57/+24
| | | | | (GH-8450)" (GH-10971) This reverts commit 97bfe8d3ebb0a54c8798f57555cb4152f9b2e1d0.
* bpo-33709: test_ntpath and test_posixpath fail in Windows with ACP!=1252. ↵native-api2018-12-061-1/+5
| | | | (GH-7278)
* bpo-34162: Update idlelib NEWS to 2018-12-05. (GH-10964)Terry Jan Reedy2018-12-061-0/+32
|
* bpo-35363: test_eintr runs eintr_tester.py in verbose mode (GH-10965)Victor Stinner2018-12-051-1/+15
| | | | | Moreover, "python3 -m test test_eintr -v" now avoids redirecting stdout/stderr to a pipe, the child process inherits stdout/stderr from the parent.
* bpo-35389: test.pythoninfo logs platform.libc_ver (GH-10951)Victor Stinner2018-12-051-0/+4
|
* bpo-35344: platform.platform() uses mac_ver() on macOS (GH-10780)Victor Stinner2018-12-052-0/+41
| | | | | On macOS, platform.platform() now uses mac_ver(), if it returns a non-empty release string, to get the macOS version rather than darwin version.
* bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419)Serhiy Storchaka2018-12-054-10/+25
|
* bpo-34185: Fix test module collision in test_bdb when ran as script. (GH-8537)Alex H2018-12-051-8/+8
| | | | | | When running test_bdb.py as a script, `import test_module` would be importing the existing Lib/test/test_modules.py instead of the tempcwd/test_module.py module which was dynamically created by test_bdb.py itself.
* bpo-34052: Prevent SQLite functions from setting callbacks on exceptions. ↵Sergey Fedoseev2018-12-051-19/+64
| | | | (GH-8113)