summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_builtin.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.6] bpo-31160: Backport reap_children() fixes from master to 3.6 (#3060)Victor Stinner2017-08-101-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | * bpo-31160: Fix test_builtin for zombie process (#3043) PtyTests.run_child() now calls os.waitpid() to read the exit status of the child process to avoid creating zombie process and leaking processes in the background. (cherry picked from commit 4baca1b0f7325032598cd38e7ceffc79b616d255) * bpo-31160: regrtest now reaps child processes (#3044) Add a post_test_cleanup() function which currently only calls support.reap_children(). (cherry picked from commit e3510d74aacc477c30f42f2b941d69689bbc478e) * bpo-31160: test_builtin: don't check waitpid() status (#3050) (cherry picked from commit 3ca9f50f96cfa5c1b7aa56639042531b57f07fbb) * bpo-31160: test_tempfile: Fix reap_children() warning (#3056) TestRandomNameSequence.test_process_awareness() now calls os.waitpid() to avoid leaking a zombie process. (cherry picked from commit 6c8c2943d996b59a48d331f61f22cbe72933910e)
* [3.6] bpo-13617: Reject embedded null characters in wchar* strings. ↵Serhiy Storchaka2017-06-281-0/+6
| | | | | | | | | | (GH-2302) (#2462) Based on patch by Victor Stinner. Add private C API function _PyUnicode_AsUnicode() which is similar to PyUnicode_AsUnicode(), but checks for null characters.. (cherry picked from commit f7eae0adfcd4c50034281b2c69f461b43b68db84)
* Issue #29327: Fixed a crash when pass the iterable keyword argument to sorted().Serhiy Storchaka2017-01-201-0/+10
|
* Issue #28385: An error message when non-empty format spec is passed toSerhiy Storchaka2016-10-301-13/+11
|\ | | | | | | object.__format__ now contains the name of actual type.
| * Issue #28385: An error message when non-empty format spec is passed toSerhiy Storchaka2016-10-301-13/+11
| | | | | | | | object.__format__ now contains the name of actual type.
* | Issue #24254: Drop cls.__definition_order__.Eric Snow2016-09-081-191/+1
| |
* | #27364: fix "incorrect" uses of escape character in the stdlib.R David Murray2016-09-081-2/+2
| | | | | | | | | | | | | | And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter.
* | Issue #24254: Preserve class attribute definition order.Eric Snow2016-09-051-1/+191
| |
* | MergeRaymond Hettinger2016-09-031-0/+11
|\ \ | |/
| * Issue 27936: Fix inconsistent round() behavior between float and intRaymond Hettinger2016-09-031-0/+11
| |
* | Issue #27366: Implement PEP 487Nick Coghlan2016-07-301-15/+5
|/ | | | | | - __init_subclass__ called when new subclasses defined - __set_name__ called when descriptors are part of a class definition
* Issue #25983: Added tests for multi-argument type().Serhiy Storchaka2016-02-081-0/+155
|
* Issue #24402: Merge potential test fix from 3.4 into 3.5Martin Panter2015-10-101-45/+48
|\
| * Issue #24402: Factor out PtyTests.run_child() in input() testsMartin Panter2015-10-101-45/+48
| | | | | | | | | | | | This reuses existing code to hopefully make the new test_input_no_stdout_ fileno() test work. It is hanging Free BSD 9 and OS X Tiger buildbots, and I don't know why.
* | Issue #24402: Merge input() fix from 3.4 into 3.5Martin Panter2015-10-101-76/+110
|\ \ | |/
| * Issue #24402: Fix input() when stdout.fileno() fails; diagnosed by EryksunMartin Panter2015-10-101-76/+110
| | | | | | | | Also factored out some test cases into a new PtyTests class.
* | Issue #9517: Move script_helper to the support package.Berker Peksag2015-05-061-1/+1
| | | | | | | | Patch by Christie Wilson.
* | Issue #22777: Test pickling with all protocols.Serhiy Storchaka2014-12-151-11/+14
|\ \ | |/
| * Issue #22777: Test pickling with all protocols.Serhiy Storchaka2014-12-151-11/+14
| |
| * Issue #20599: Don't clear environment in test_cleanup() of test_builtinVictor Stinner2014-02-131-2/+1
| |
| * Issue #20599: Force ASCII encoding for stdout in test_cleanup() of test_builtinVictor Stinner2014-02-121-3/+11
| | | | | | | | | | | | On Windows, the codec of sys.stdout is implemented in Python. At exit, the codec may be unloaded before the destructor tries to write something to sys.stdout.
| * Try to fix test_cleanup (issue #20599).Serhiy Storchaka2014-02-121-2/+2
| |
| * Issue #19255: The builtins module is restored to initial value beforeSerhiy Storchaka2014-02-101-0/+29
| | | | | | | | cleaning other modules. The sys and builtins modules are cleaned last.
* | Issue #22215: Now ValueError is raised instead of TypeError when str or bytesSerhiy Storchaka2014-09-061-2/+2
| | | | | | | | argument contains not permitted null character or byte.
* | test the change of #21193 correctlyBenjamin Peterson2014-04-111-2/+2
| |
* | Issue #21193: Make (e.g.,) pow(2, -3, 5) raise ValueError rather than ↵Mark Dickinson2014-04-111-1/+1
| | | | | | | | TypeError. Patch by Josh Rosenberg.
* | Issue #20599: Don't clear environment in test_cleanup() of test_builtinVictor Stinner2014-02-131-2/+1
| |
* | Issue #20599: Force ASCII encoding for stdout in test_cleanup() of test_builtinVictor Stinner2014-02-121-3/+11
| | | | | | | | | | | | On Windows, the codec of sys.stdout is implemented in Python. At exit, the codec may be unloaded before the destructor tries to write something to sys.stdout.
* | Try to fix test_cleanup (issue #20599).Serhiy Storchaka2014-02-121-2/+2
| |
* | Issue #19255: The builtins module is restored to initial value beforeSerhiy Storchaka2014-02-101-0/+29
|/ | | | cleaning other modules. The sys and builtins modules are cleaned last.
* Issue #3158: doctest can now find doctests in functions and methodsZachary Ware2013-11-241-16/+5
| | | | | | | | written in C. As a part of this, a few doctests have been added to the builtins module (on hex(), oct(), and bin()), a doctest has been fixed (hopefully on all platforms) on float, and test_builtins now runs doctests in builtins.
* Issue #18571: Implementation of the PEP 446: file descriptors and file handlesVictor Stinner2013-08-271-0/+5
| | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
* Cleanup test_builtinVictor Stinner2013-08-211-12/+4
|
* Issue 18111: Add a default argument to min() and max()Raymond Hettinger2013-06-251-0/+28
|
* Make test_builtin work when executed directlyBrett Cannon2013-06-161-1/+4
|
* Revert a premature patch for issue #14010 (changeset 846bd418aee5).Serhiy Storchaka2013-04-061-33/+1
|\
| * Revert a premature patch for issue #14010 (changeset aaaf36026511).Serhiy Storchaka2013-04-061-33/+1
| |
* | Issue #14010: Fix a crash when iterating or deleting deeply nested filtersSerhiy Storchaka2013-04-061-1/+33
|\ \ | |/ | | | | (builting and in itertools module, i.e. map(), itertools.chain(), etc).
| * Issue #14010: Fix a crash when iterating or deleting deeply nested filtersSerhiy Storchaka2013-04-061-1/+33
| | | | | | | | (builting and in itertools module, i.e. map(), itertools.chain(), etc).
* | #17255: merge with 3.3.Ezio Melotti2013-02-211-0/+2
|\ \ | |/
| * #17255: merge with 3.2.Ezio Melotti2013-02-211-0/+2
| |\
| | * #17255: test short-circuiting behavior of any()/all(). Patch by Wim Glenn.Ezio Melotti2013-02-211-0/+2
| | |
* | | Merge: #17142: fix apparent copy and paste error in test_all.R David Murray2013-02-061-1/+1
|\ \ \ | |/ /
| * | Merge: #17142: fix apparent copy and paste error in test_all.R David Murray2013-02-061-1/+1
| |\ \ | | |/
| | * #17142: fix apparent copy and paste error in test_all.R David Murray2013-02-061-1/+1
| | |
* | | Back out fix for issue #13886; it introduced a new bug in interactive ↵Nadeem Vawda2013-02-021-7/+0
|\ \ \ | |/ / | | | | | | readline use.
| * | Back out fix for issue #13886; it introduced a new bug in interactive ↵Nadeem Vawda2013-02-021-7/+0
| |\ \ | | |/ | | | | | | readline use.
| | * Back out fix for issue #13886; it introduced a new bug in interactive ↵Nadeem Vawda2013-02-021-7/+0
| | | | | | | | | | | | readline use.
* | | Issue #13886: Fix input() to not strip out supposedly-invalid input bytes.Nadeem Vawda2013-01-271-0/+7
|\ \ \ | |/ / | | | | | | | | | Also fix sporadic failures in test_builtin due to dependence on whether the readline module has previously been imported.
| * | Issue #13886: Fix input() to not strip out supposedly-invalid input bytes.Nadeem Vawda2013-01-271-0/+7
| |\ \ | | |/ | | | | | | | | | Also fix sporadic failures in test_builtin due to dependence on whether the readline module has previously been imported.