summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_builtin.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.
| | * 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.
| | * Improve str() and object.__str__() documentation (issue #13538).Chris Jerdonek2012-11-211-0/+1
| | |
* | | Issue #9856: Replace deprecation warinigs to raising TypeError in ↵Andrew Svetlov2012-12-231-10/+4
| | | | | | | | | | | | | | | | | | object.__format__ Patch by Florent Xicluna.
* | | Issue #16045: add more unit tests for built-in int()Andrew Svetlov2012-12-231-0/+2
|\ \ \ | |/ / | | | | | | Patch by Chris Jerdonek.
| * | Issue #16045: add more unit tests for built-in int()Andrew Svetlov2012-12-231-0/+2
| | | | | | | | | | | | Patch by Chris Jerdonek.
* | | use error label instead of breaking eval loop (closes #16693)Benjamin Peterson2012-12-151-0/+5
|/ /
* | Improve str() and object.__str__() documentation (issue #13538).Chris Jerdonek2012-11-211-0/+1
| |
* | Issue #11022 and #15287: correctly remove the TESTFN file in test_builtin.Florent Xicluna2012-07-081-1/+2
| |
* | Close #11022: TextIOWrapper doesn't call locale.setlocale() anymoreVictor Stinner2012-06-051-9/+31
| | | | | | | | | | | | | | | | | | | | open() and io.TextIOWrapper are now calling locale.getpreferredencoding(False) instead of locale.getpreferredencoding() in text mode if the encoding is not specified. Don't change temporary the locale encoding using locale.setlocale(), use the current locale encoding instead of the user preferred encoding. Explain also in open() documentation that locale.getpreferredencoding(False) is called if the encoding is not specified.
* | Issue #14385: Support other types than dict for __builtins__Victor Stinner2012-04-181-0/+33
| | | | | | | | | | | | It is now possible to use a custom type for the __builtins__ namespace, instead of a dict. It can be used for sandboxing for example. Raise also a NameError instead of ImportError if __build_class__ name if not found in __builtins__.
* | Issue #14288: Serialization support for builtin iterators.Kristján Valur Jónsson2012-04-031-0/+41
| |
* | Skip early if stdin and stdout are not ttysAntoine Pitrou2011-11-061-0/+2
|\ \ | |/
| * Skip early if stdin and stdout are not ttysAntoine Pitrou2011-11-061-0/+2
| |
| * Backport robustness fix for test_builtinAntoine Pitrou2011-11-061-21/+31
| |
* | Try to make the tty input() tests more robustAntoine Pitrou2011-11-061-21/+31
| |
* | Issue #13342: input() used to ignore sys.stdin's and sys.stdout's unicodeAntoine Pitrou2011-11-051-0/+70
|\ \ | |/ | | | | error handler in interactive mode (when calling into PyOS_Readline()).
| * Issue #13342: input() used to ignore sys.stdin's and sys.stdout's unicodeAntoine Pitrou2011-11-051-0/+70
| | | | | | | | error handler in interactive mode (when calling into PyOS_Readline()).
* | #13054: fix usage of sys.maxunicode after PEP-393.Ezio Melotti2011-10-041-2/+1
| |
* | also make NotImplementedType callableBenjamin Peterson2011-07-291-1/+1
| |
* | make the types of None and Ellipsis callableBenjamin Peterson2011-07-291-0/+7
| |
* | bytes should be verboten in sum() (fixes #12654)Benjamin Peterson2011-07-291-0/+3
| |
* | allow __dir__ to return any sequenceBenjamin Peterson2011-06-111-1/+9
| |
* | test that object has a __dir__() implementationBenjamin Peterson2011-05-251-0/+2
| |
* | Issue 9856: Change object.__format__ with a non-empty format string from a ↵Eric V. Smith2011-03-121-3/+3
| | | | | | | | PendingDeprecationWarning to a DeprecationWarning.
* | Removed fcmp and FUZZ from test.support, following the discussion on python-dev:Eli Bendersky2011-02-251-5/+8
|/ | | | http://mail.python.org/pipermail/python-dev/2011-January/107735.html
* Add an "optimize" parameter to compile() to control the optimization level, ↵Georg Brandl2010-12-041-0/+29
| | | | and provide an interface to it in py_compile, compileall and PyZipFile.