summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_builtin.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | #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.
* Issue #10518: Bring back the callable() builtin.Antoine Pitrou2010-11-271-12/+29
| | | | Approved by Guido (BDFL) and Georg (RM).
* merge all range tests into test_rangeBenjamin Peterson2010-11-201-178/+0
|
* enable test that was commented out for whatever reasonBenjamin Peterson2010-11-201-1/+1
|
* count() should return integers #10474Benjamin Peterson2010-11-201-0/+2
|
* #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-6/+6
|
* Issue #9213: Add index and count methods to range objects, needed toDaniel Stutzbach2010-09-131-0/+54
| | | | meet the API of the collections.Sequence ABC.
* Issue 7994: Make object.__format__() raise a PendingDeprecationWarningEric Smith2010-09-131-0/+110
| | | | | | | | | if the format string is not empty. Manually merge r79596 and r84772 from 2.x. Also, apparently test_format() from test_builtin never made it into 3.x. I've added it as well. It tests the basic format() infrastructure.
* Issue #9804: ascii() now always represents unicode surrogate pairs asAntoine Pitrou2010-09-091-0/+22
| | | | | | a single `\UXXXXXXXX`, regardless of whether the character is printable or not. Also, the "backslashreplace" error handler now joins surrogate pairs into a single character on UCS-2 builds.
* only catch AttributeError in hasattr() #9666Benjamin Peterson2010-08-241-5/+6
|
* cleanup importsBenjamin Peterson2010-08-231-9/+7
|
* Issue #665761: functools.reduce() will no longer mask exceptions otherAlexander Belopolsky2010-08-161-0/+1
| | | | | than TypeError raised by the iterator argument. Also added a test to check that zip() already behaves similarly.
* Merged revisions 81525 via svnmerge fromMark Dickinson2010-05-251-0/+18
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81525 | mark.dickinson | 2010-05-25 20:01:08 +0100 (Tue, 25 May 2010) | 3 lines Issue #8816: Extra tests for some built-in functions. These tests are ports of IronPython tests. Thanks Gregory Nofi. ........
* Issue #1533: Merge added trunk range tests to py3k. (The fix itselfMark Dickinson2010-05-051-2/+42
| | | | doesn't need to be merged.) Patch by Alexander Belopolsky.