- 14 Dec, 2018 5 commits
-
-
Victor Stinner authored
* 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>
-
Jules Lasne (jlasne) authored
# Fixed missing colun in library/sys.po [bpo-35492](https://bugs.python.org/issue35492): Fixed missing colun in library/sys.po
-
Victor Stinner authored
* Add multiprocessing.Pool.__repr__() to ease debug * RUN, CLOSE and TERMINATE constants values are now strings rather than integer to ease debug
-
Serhiy Storchaka authored
-
Vladimir Matveev authored
-
- 13 Dec, 2018 1 commit
-
-
Victor Stinner authored
multiprocessing.Pool.__enter__() now fails if the pool is not running: "with pool:" fails if used more than once.
-
- 12 Dec, 2018 5 commits
-
-
Victor Stinner authored
Add testcase to test_future4: check unicode literal.
-
Victor Stinner authored
Drop Mac OS 9 and Rhapsody support from the platform module: * Rhapsody: last release in 2000 * Mac OS 9: last release in 2001
-
Xiang Zhang authored
-
Anthony Sottile authored
-
Xtreak authored
* 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
-
- 11 Dec, 2018 12 commits
-
-
Andrew Svetlov authored
* bpo-35394: Add empty slots to abstract asyncio protocols * Add missing test file
-
Serhiy Storchaka authored
-
Pablo Galindo authored
The test only except SIGUSR1Exception inside wait_signal(), but the signal can be sent during subprocess_send_signal() call.
-
Pablo Galindo authored
Forkserver and fork are not available on Windows and therefore these test must be skipped.
-
Victor Stinner authored
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).
-
Serhiy Storchaka authored
* bpo-35454: Fix miscellaneous minor issues in error handling. * Fix a null pointer dereference.
-
Serhiy Storchaka authored
This speeds up pickling of some iterators. This fixes also error handling in pickling methods when fail to look up builtin "getattr".
-
Ned Deily authored
-
-
Steve Dower authored
-
Steve Dower authored
-
Steve Dower authored
Also adds the PC/layout script for generating layouts on Windows.
-
- 10 Dec, 2018 10 commits
-
-
Steve Dower authored
-
Victor Stinner authored
-
Serhiy Storchaka authored
Propagate unexpected errors (like MemoryError and KeyboardInterrupt) to user.
-
Serhiy Storchaka authored
-
Victor Stinner authored
Include <pyconfig.h> ealier in Modules/expat/xmltok.c to define properly _POSIX_C_SOURCE. Python defines _POSIX_C_SOURCE as 200809L, whereas <features.h> (included indirectly by <string.h>) defines _POSIX_C_SOURCE as 199506L.
-
Christian Heimes authored
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>
-
Victor Stinner authored
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>
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Jeremy Kloth authored
-
- 09 Dec, 2018 5 commits
-
-
Serhiy Storchaka authored
-
Gregory P. Smith authored
-
jdemeyer authored
-
Andre Delfino authored
-
Ned Deily authored
-
- 08 Dec, 2018 2 commits
-
-
Zackery Spytz authored
In _localemodule.c and selectmodule.c, remove dead code that would cause double decrefs if run. In addition, replace PyList_SetItem() with PyList_SET_ITEM() in cases where a new list is populated and there is no possibility of an error. In addition, check if the list changed size in the loop in array_array_fromlist().
-
Mario Corchero authored
* 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.
-