summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_builtin.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Clean up the manipulation of the warnings filter in test_builtin.Brett Cannon2010-03-201-8/+5
|
* Merged revisions 78093 via svnmerge fromGeorg Brandl2010-03-141-4/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78093 | georg.brandl | 2010-02-07 18:03:15 +0100 (So, 07 Feb 2010) | 1 line Remove unused imports in test modules. ........
* Issue #6697: catch _PyUnicode_AsString() errors in getattr() and setattr()Victor Stinner2010-03-121-0/+2
| | | | builtin functions.
* use assert[Not]In where appropriateBenjamin Peterson2010-01-191-14/+14
| | | | A patch from Dave Malcolm.
* Issue #7435: Remove duplicate int/long tests, and otherMark Dickinson2009-12-051-51/+5
| | | | references to long in py3k. Patch provided by flox.
* Merged revisions 76176 via svnmerge fromMark Dickinson2009-11-091-0/+22
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76176 | mark.dickinson | 2009-11-09 17:03:34 +0000 (Mon, 09 Nov 2009) | 7 lines Issue #7251: Break out round tests for large values into a separate test function, and skip that test on Linux/alpha systems with a broken system round function. This should turn the Debian/alpha buildbot green. ........
* Merged revisions 75470 via svnmerge fromMark Dickinson2009-10-171-0/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r75470 | mark.dickinson | 2009-10-17 22:46:32 +0100 (Sat, 17 Oct 2009) | 1 line Protect against attempts to replace PyNumber_Add with PyNumber_InPlaceAdd in builtin sum ........
* Merged revisions 74167 via svnmerge fromGeorg Brandl2009-07-221-0/+5
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74167 | georg.brandl | 2009-07-22 13:57:15 +0200 (Mi, 22 Jul 2009) | 1 line Issue #6540: Fixed crash for bytearray.translate() with invalid parameters. ........
* convert old fail* assertions to assert*Benjamin Peterson2009-06-301-37/+37
|
* Issue #6334: Fix buggy internal length calculation in builtin range functionMark Dickinson2009-06-241-0/+18
|
* fix len() when __len__() returns a non number type #5137Benjamin Peterson2009-02-081-0/+12
|
* Issue #1717: remove the cmp builtin function, the C-API functionsMark Dickinson2009-02-011-3/+1
| | | | PyObject_Cmp, PyObject_Compare, and various support functions.
* Issue #4707: round(x, n) now returns an integer when x is an integer.Mark Dickinson2009-01-281-3/+3
| | | | Previously it returned a float.
* Issue #1717: Remove cmp. Stage 1: remove all uses of cmp and __cmp__ fromMark Dickinson2009-01-271-19/+4
| | | | the standard library and tests.
* #3946 fix PyObject_CheckBuffer on a memoryview objectBenjamin Peterson2008-09-261-0/+1
| | | | reviewed by Antoine
* Merged revisions 65339-65340,65342 via svnmerge fromAmaury Forgeot d'Arc2008-08-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r65339 | amaury.forgeotdarc | 2008-07-31 23:28:03 +0200 (jeu., 31 juil. 2008) | 5 lines #3479: unichr(2**32) used to return u'\x00'. The argument was fetched in a long, but PyUnicode_FromOrdinal takes an int. (why doesn't gcc issue a truncation warning in this case?) ........ r65340 | amaury.forgeotdarc | 2008-07-31 23:35:03 +0200 (jeu., 31 juil. 2008) | 2 lines Remove a dummy test that was checked in by mistake ........ r65342 | amaury.forgeotdarc | 2008-08-01 01:39:05 +0200 (ven., 01 août 2008) | 8 lines Correct a crash when two successive unicode allocations fail with a MemoryError: the freelist contained half-initialized objects with freed pointers. The comment /* XXX UNREF/NEWREF interface should be more symmetrical */ was copied from tupleobject.c, and appears in some other places. I sign the petition. ........
* Revert 64451.Raymond Hettinger2008-06-241-27/+0
|
* Merge 64438: hex/oct/bin can show floats exactly.Raymond Hettinger2008-06-221-0/+27
|
* #2630: Implement PEP 3138.Georg Brandl2008-06-111-0/+14
| | | | | | | The repr() of a string now contains printable Unicode characters unescaped. The new ascii() builtin can be used to get a repr() with only ASCII characters in it. PEP and patch were written by Atsuo Ishimoto.
* Revert r63934 -- it was mixing two patches.Georg Brandl2008-06-041-3/+0
|
* Remove meaning of -ttt, but still accept -t option on cmdline for compatibility.Georg Brandl2008-06-041-0/+3
|