Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | test_builtin: TestExecFile removes created file (#4525) | Victor Stinner | 2017-11-23 | 1 | -7/+17 |
| | | | | | | | | | Fix the following warning: Warning -- files was modified by test_builtin Before: [] After: ['@test_19422_tmp'] 1 test altered the execution environment: test_builtin | ||||
* | Issue #25983: Added tests for multi-argument type(). | Serhiy Storchaka | 2016-02-08 | 1 | -1/+129 |
| | |||||
* | Issue #19572: More silently skipped tests explicitly skipped. | Zachary Ware | 2013-12-10 | 1 | -53/+56 |
| | |||||
* | #17255: test short-circuiting behavior of any()/all(). Patch by Wim Glenn. | Ezio Melotti | 2013-02-21 | 1 | -0/+2 |
| | |||||
* | #17142: fix apparent copy and paste error in test_all. | R David Murray | 2013-02-06 | 1 | -1/+1 |
| | |||||
* | Issue #16045: add more unit tests for built-in int() | Andrew Svetlov | 2012-12-23 | 1 | -0/+2 |
| | | | | Patch by Chris Jerdonek. | ||||
* | Fix tests now that the callable warning is gone. | Ezio Melotti | 2011-11-06 | 1 | -1/+0 |
| | |||||
* | Close #12501: Adjust callable() warning: callable() is only not supported in | Victor Stinner | 2011-07-08 | 1 | -0/+1 |
| | | | | Python 3.1. callable() is again supported in Python 3.2. | ||||
* | #11565: Fix several typos. Patch by Piotr Kasprzyk. | Ezio Melotti | 2011-03-16 | 1 | -1/+1 |
| | |||||
* | Merged revisions 86596 via svnmerge from | Ezio Melotti | 2010-11-21 | 1 | -7/+7 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........ | ||||
* | Issue #8816: Extra tests for some built-in functions. These tests are | Mark Dickinson | 2010-05-25 | 1 | -14/+69 |
| | | | | ports of IronPython tests. Thanks Gregory Nofi. | ||||
* | Issue #1533: test_range in test_builtin: fix test comment and add test | Mark Dickinson | 2010-05-05 | 1 | -2/+2 |
| | | | | for rejection of small floats. Thanks Alexander Belopolsky. | ||||
* | Issue #1533: fix inconsistency in range function argument processing: | Mark Dickinson | 2010-05-04 | 1 | -0/+50 |
| | | | | | | | | | any non-float non-integer argument is now converted to an integer (if possible) using its __int__ method. Previously, only small arguments were treated this way; larger arguments (those whose __int__ was outside the range of a C long) would produce a TypeError. Patch by Alexander Belopolsky (with minor modifications). | ||||
* | Issue 7994: Make object.__format__ with a non-empty format string a ↵ | Eric Smith | 2010-04-02 | 1 | -0/+36 |
| | | | | PendingDecprecationWarning. Still need to remove uses of this from various tests. | ||||
* | #7092 - Silence more py3k deprecation warnings, using ↵ | Florent Xicluna | 2010-03-21 | 1 | -9/+14 |
| | | | | test_support.check_py3k_warnings() helper. | ||||
* | Remove unused imports in test modules. | Georg Brandl | 2010-02-07 | 1 | -3/+3 |
| | |||||
* | use assert[Not]In where appropriate | Ezio Melotti | 2010-01-23 | 1 | -14/+14 |
| | |||||
* | Reverting the Revision: 77368. I committed Flox's big patch for tests by | Senthil Kumaran | 2010-01-08 | 1 | -20/+7 |
| | | | | mistake. ( It may come in for sure tough) | ||||
* | Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵ | Senthil Kumaran | 2010-01-08 | 1 | -7/+20 |
| | | | | Patch by flox | ||||
* | Issue #7251: Break out round tests for large values into a separate | Mark Dickinson | 2009-11-09 | 1 | -3/+22 |
| | | | | | | | test function, and skip that test on Linux/alpha systems with a broken system round function. This should turn the Debian/alpha buildbot green. | ||||
* | Make sure every run of test_intern() interns a new string, otherwise that ↵ | Georg Brandl | 2009-10-27 | 1 | -1/+4 |
| | | | | test fails e.g. when some other test in test_builtin fails and it is rerun in verbose mode. | ||||
* | Protect against attempts to replace PyNumber_Add with PyNumber_InPlaceAdd in ↵ | Mark Dickinson | 2009-10-17 | 1 | -0/+4 |
| | | | | builtin sum | ||||
* | Issue #6540: Fixed crash for bytearray.translate() with invalid parameters. | Georg Brandl | 2009-07-22 | 1 | -0/+5 |
| | |||||
* | convert usage of fail* to assert* | Benjamin Peterson | 2009-06-30 | 1 | -42/+42 |
| | |||||
* | Issue #1869: Fix a couple of minor round() issues. | Mark Dickinson | 2009-04-18 | 1 | -0/+3 |
| | |||||
* | Issue 2235: Py3k warnings are now emitted for classes that will no longer ↵ | Nick Coghlan | 2008-08-11 | 1 | -0/+1 |
| | | | | inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings. | ||||
* | #3479: unichr(2**32) used to return u'\x00'. | Amaury Forgeot d'Arc | 2008-07-31 | 1 | -0/+1 |
| | | | | | | The argument was fetched in a long, but PyUnicode_FromOrdinal takes an int. (why doesn't gcc issue a truncation warning in this case?) | ||||
* | Revert 64424, 64438, and 64439. | Raymond Hettinger | 2008-06-24 | 1 | -27/+0 |
| | |||||
* | Issue 3008: hex/oct/bin can show floats exactly. | Raymond Hettinger | 2008-06-21 | 1 | -0/+27 |
| | |||||
* | revert 63425 over Guido's Febuary message about this, that I missed | Benjamin Peterson | 2008-05-17 | 1 | -4/+0 |
| | |||||
* | add Py3k warnings to oct and hex. backport hex behavior (because it's not ↵ | Benjamin Peterson | 2008-05-17 | 1 | -0/+4 |
| | | | | different) | ||||
* | #2196 hasattr now allows SystemExit and KeyboardInterrupt to propagate | Benjamin Peterson | 2008-05-12 | 1 | -0/+10 |
| | |||||
* | Moved testing of builtin types out of test_builtin and into type specific ↵ | Benjamin Peterson | 2008-05-03 | 1 | -692/+0 |
| | | | | modules | ||||
* | #2719: backport next() from 3k. | Georg Brandl | 2008-04-30 | 1 | -0/+27 |
| | |||||
* | Finished backporting PEP 3127, Integer Literal Support and Syntax. | Eric Smith | 2008-03-17 | 1 | -0/+45 |
| | | | | | | | | Added 0b and 0o literals to tokenizer. Modified PyOS_strtoul to support 0b and 0o inputs. Modified PyLong_FromString to support guessing 0b and 0o inputs. Renamed test_hexoct.py to test_int_literal.py and added binary tests. Added upper and lower case 0b, 0O, and 0X tests to test_int_literal.py | ||||
* | Tests for bin() builtin. These need to get merged into py3k, which has no ↵ | Eric Smith | 2008-02-22 | 1 | -0/+9 |
| | | | | tests for bin. | ||||
* | Moved test_format into the correct TestCase. | Eric Smith | 2008-02-21 | 1 | -39/+39 |
| | |||||
* | Backport of PEP 3101, Advanced String Formatting, from py3k. | Eric Smith | 2008-02-17 | 1 | -0/+95 |
| | | | | | | | | | | | | | | | Highlights: - Adding PyObject_Format. - Adding string.Format class. - Adding __format__ for str, unicode, int, long, float, datetime. - Adding builtin format. - Adding ''.format and u''.format. - str/unicode fixups for formatters. The files in Objects/stringlib that implement PEP 3101 (stringdefs.h, unicodedefs.h, formatter.h, string_format.h) are identical in trunk and py3k. Any changes from here on should be made to trunk, and changes will propogate to py3k). | ||||
* | Rename rational.Rational to fractions.Fraction, to avoid name clash | Mark Dickinson | 2008-02-10 | 1 | -2/+2 |
| | | | | with numbers.Rational. See issue #1682 for related discussion. | ||||
* | Make int() and long() fall back to __trunc__(). See issue 2002. | Jeffrey Yasskin | 2008-02-04 | 1 | -0/+102 |
| | |||||
* | Test round-trip on float.as_integer_ratio() and float.__truediv__(). | Raymond Hettinger | 2008-02-01 | 1 | -0/+6 |
| | |||||
* | Issue #1996: float.as_integer_ratio() should return fraction in lowest terms. | Raymond Hettinger | 2008-02-01 | 1 | -0/+8 |
| | |||||
* | Move __builtins__.trunc() to math.trunc() per | Jeffrey Yasskin | 2008-02-01 | 1 | -32/+0 |
| | | | | | http://mail.python.org/pipermail/python-dev/2008-January/076626.html and issue 1965. | ||||
* | Moved Rational._binary_float_to_ratio() to float.as_integer_ratio() because | Jeffrey Yasskin | 2008-01-27 | 1 | -1/+20 |
| | | | | | | | it's useful outside of rational numbers. This is my first C code that had to do anything significant. Please be more careful when looking over it. | ||||
* | Fix #1679: "0x" was taken as a valid integer literal. | Georg Brandl | 2008-01-19 | 1 | -0/+5 |
| | | | | | Fixes the tokenizer, tokenize.py and int() to reject this. Patches by Malte Helmert. | ||||
* | Continue rolling back pep-3141 changes that changed behavior from 2.5. This | Jeffrey Yasskin | 2008-01-05 | 1 | -13/+11 |
| | | | | | | | | | | | | round included: * Revert round to its 2.6 behavior (half away from 0). * Because round, floor, and ceil always return float again, it's no longer necessary to have them delegate to __xxx___, so I've ripped that out of their implementations and the Real ABC. This also helps in implementing types that work in both 2.6 and 3.0: you return int from the __xxx__ methods, and let it get enabled by the version upgrade. * Make pow(-1, .5) raise a ValueError again. | ||||
* | Patch #1725 by Mark Dickinson, fixes incorrect conversion of -1e1000 | Guido van Rossum | 2008-01-05 | 1 | -0/+6 |
| | | | | and adds errors for -0x. | ||||
* | Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (just | Jeffrey Yasskin | 2008-01-03 | 1 | -1/+74 |
| | | | | | | | the complex_pow part), r56649, r56652, r56715, r57296, r57302, r57359, r57361, r57372, r57738, r57739, r58017, r58039, r58040, and r59390, and new documentation. The only significant difference is that round(x) returns a float to preserve backward-compatibility. See http://bugs.python.org/issue1689. | ||||
* | Patch #1444529: the builtin compile() now accepts keyword arguments. | Georg Brandl | 2007-03-13 | 1 | -0/+9 |
| | | | | (backport) | ||||
* | Backport from Py3k branch: | Georg Brandl | 2007-03-12 | 1 | -4/+59 |
| | | | | | | | Patch #1591665: implement the __dir__() special function lookup in PyObject_Dir. Had to change a few bits of the patch because classobjs and __methods__ are still in Py2.6. |