78a54c03117711de66169230fc4eba7f0abd79af |
|
08-Feb-2016 |
Serhiy Storchaka <storchaka@gmail.com> |
Issue #25983: Added tests for multi-argument type().
/external/python/cpython2/Lib/test/test_builtin.py
|
1f70221b861a3714735251d57695b2f472d0599b |
|
10-Dec-2013 |
Zachary Ware <zachary.ware@gmail.com> |
Issue #19572: More silently skipped tests explicitly skipped.
/external/python/cpython2/Lib/test/test_builtin.py
|
7d0eb4b234bacab520104b6c797f69b101baad64 |
|
21-Feb-2013 |
Ezio Melotti <ezio.melotti@gmail.com> |
#17255: test short-circuiting behavior of any()/all(). Patch by Wim Glenn.
/external/python/cpython2/Lib/test/test_builtin.py
|
9b3085cdf5a99e544fd376b9019544cb6c5de36b |
|
06-Feb-2013 |
R David Murray <rdmurray@bitdance.com> |
#17142: fix apparent copy and paste error in test_all.
/external/python/cpython2/Lib/test/test_builtin.py
|
cddcafaf6b11f4da66fdccba20a777ccb55b800b |
|
22-Dec-2012 |
Andrew Svetlov <andrew.svetlov@gmail.com> |
Issue #16045: add more unit tests for built-in int() Patch by Chris Jerdonek.
/external/python/cpython2/Lib/test/test_builtin.py
|
152d61aa5b38b83e4017e38f0d326f8df8541b4b |
|
06-Nov-2011 |
Ezio Melotti <ezio.melotti@gmail.com> |
Fix tests now that the callable warning is gone.
/external/python/cpython2/Lib/test/test_builtin.py
|
ba8b3a2ca7a43684cf67b174a4b245b8ba596a5c |
|
08-Jul-2011 |
Victor Stinner <victor.stinner@haypocalc.com> |
Close #12501: Adjust callable() warning: callable() is only not supported in Python 3.1. callable() is again supported in Python 3.2.
/external/python/cpython2/Lib/test/test_builtin.py
|
c2077b0d9b5bf99768c6f396bf7ae6c41b682465 |
|
15-Mar-2011 |
Ezio Melotti <ezio.melotti@gmail.com> |
#11565: Fix several typos. Patch by Piotr Kasprzyk.
/external/python/cpython2/Lib/test/test_builtin.py
|
2623a37852153363335956afab010cb0beb7e74e |
|
21-Nov-2010 |
Ezio Melotti <ezio.melotti@gmail.com> |
Merged revisions 86596 via svnmerge from 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. ........
/external/python/cpython2/Lib/test/test_builtin.py
|
20665599131379d7cd9e6a447551f252a2b115c5 |
|
25-May-2010 |
Mark Dickinson <dickinsm@gmail.com> |
Issue #8816: Extra tests for some built-in functions. These tests are ports of IronPython tests. Thanks Gregory Nofi.
/external/python/cpython2/Lib/test/test_builtin.py
|
481ab89b75d197cf11dd3cf0df71477dc8884d2d |
|
06-May-2010 |
Mark Dickinson <dickinsm@gmail.com> |
Issue #1533: test_range in test_builtin: fix test comment and add test for rejection of small floats. Thanks Alexander Belopolsky.
/external/python/cpython2/Lib/test/test_builtin.py
|
a8d26688183bec915dbedc665ff081d2a7966c4b |
|
04-May-2010 |
Mark Dickinson <dickinsm@gmail.com> |
Issue #1533: fix inconsistency in range function argument processing: 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).
/external/python/cpython2/Lib/test/test_builtin.py
|
d44b2fc87c2d9bd9e390eb54d50306959d80ba87 |
|
02-Apr-2010 |
Eric Smith <eric@trueblade.com> |
Issue 7994: Make object.__format__ with a non-empty format string a PendingDecprecationWarning. Still need to remove uses of this from various tests.
/external/python/cpython2/Lib/test/test_builtin.py
|
07627880813ffaad8d9b90bfe8791ccf588b031b |
|
21-Mar-2010 |
Florent Xicluna <florent.xicluna@gmail.com> |
#7092 - Silence more py3k deprecation warnings, using test_support.check_py3k_warnings() helper.
/external/python/cpython2/Lib/test/test_builtin.py
|
a4f46e129294c686ef1effdd89c459bd9a624e6d |
|
07-Feb-2010 |
Georg Brandl <georg@python.org> |
Remove unused imports in test modules.
/external/python/cpython2/Lib/test/test_builtin.py
|
aa98058cc44ba20f35c106d20918c6196b737561 |
|
24-Jan-2010 |
Ezio Melotti <ezio.melotti@gmail.com> |
use assert[Not]In where appropriate
/external/python/cpython2/Lib/test/test_builtin.py
|
ce8e33a095030e7af94f58f9da196b240bdf0476 |
|
08-Jan-2010 |
Senthil Kumaran <orsenthil@gmail.com> |
Reverting the Revision: 77368. I committed Flox's big patch for tests by mistake. ( It may come in for sure tough)
/external/python/cpython2/Lib/test/test_builtin.py
|
3ddc435af6873c6304058d7bcbcb19ee4fba7781 |
|
08-Jan-2010 |
Senthil Kumaran <orsenthil@gmail.com> |
Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. Patch by flox
/external/python/cpython2/Lib/test/test_builtin.py
|
a8fd66d6aaea9cc0a1e7687b082e9fbf5da3cd74 |
|
09-Nov-2009 |
Mark Dickinson <dickinsm@gmail.com> |
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.
/external/python/cpython2/Lib/test/test_builtin.py
|
4e1be94bc6c7ec21daf1de030cc59c9c61b498f8 |
|
27-Oct-2009 |
Georg Brandl <georg@python.org> |
Make sure every run of test_intern() interns a new string, otherwise that test fails e.g. when some other test in test_builtin fails and it is rerun in verbose mode.
/external/python/cpython2/Lib/test/test_builtin.py
|
bfd2dc747979d562916a24c715685d89c194bb56 |
|
17-Oct-2009 |
Mark Dickinson <dickinsm@gmail.com> |
Protect against attempts to replace PyNumber_Add with PyNumber_InPlaceAdd in builtin sum
/external/python/cpython2/Lib/test/test_builtin.py
|
ec812caf5dd4c8e49c24341852181cca1740277e |
|
22-Jul-2009 |
Georg Brandl <georg@python.org> |
Issue #6540: Fixed crash for bytearray.translate() with invalid parameters.
/external/python/cpython2/Lib/test/test_builtin.py
|
5c8da86f3a515ce1a6d5f27fd15e3c5f4d8e931e |
|
01-Jul-2009 |
Benjamin Peterson <benjamin@python.org> |
convert usage of fail* to assert*
/external/python/cpython2/Lib/test/test_builtin.py
|
1bdf7e9caba735ba404d49026dacd67636ea5c5f |
|
18-Apr-2009 |
Mark Dickinson <dickinsm@gmail.com> |
Issue #1869: Fix a couple of minor round() issues.
/external/python/cpython2/Lib/test/test_builtin.py
|
48361f5cbf419cce361fd1aa0389d6304ad167db |
|
11-Aug-2008 |
Nick Coghlan <ncoghlan@gmail.com> |
Issue 2235: Py3k warnings are now emitted for classes that will no longer 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.
/external/python/cpython2/Lib/test/test_builtin.py
|
39fd672dfe0bea76d0ae5823b864460757cb423b |
|
31-Jul-2008 |
Amaury Forgeot d'Arc <amauryfa@gmail.com> |
#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?)
/external/python/cpython2/Lib/test/test_builtin.py
|
9c437af4ebd832d913b85bfb2e666d55565c3665 |
|
25-Jun-2008 |
Raymond Hettinger <python@rcn.com> |
Revert 64424, 64438, and 64439.
/external/python/cpython2/Lib/test/test_builtin.py
|
e0e711446ba62b8b07bc7a14eb53674c9b0a4862 |
|
21-Jun-2008 |
Raymond Hettinger <python@rcn.com> |
Issue 3008: hex/oct/bin can show floats exactly.
/external/python/cpython2/Lib/test/test_builtin.py
|
c6d64ec83fd6bb170725a04409d8383a53559c95 |
|
17-May-2008 |
Benjamin Peterson <benjamin@python.org> |
revert 63425 over Guido's Febuary message about this, that I missed
/external/python/cpython2/Lib/test/test_builtin.py
|
79a922d6df18e0c0e508905aebc8f4fa28052aac |
|
17-May-2008 |
Benjamin Peterson <benjamin@python.org> |
add Py3k warnings to oct and hex. backport hex behavior (because it's not different)
/external/python/cpython2/Lib/test/test_builtin.py
|
b9030f4f0d566c8ae2eeb28ed858f02f3b853ae7 |
|
12-May-2008 |
Benjamin Peterson <benjamin@python.org> |
#2196 hasattr now allows SystemExit and KeyboardInterrupt to propagate
/external/python/cpython2/Lib/test/test_builtin.py
|
979395b7a8be422dfc9a081f1cd77260c6ea9aef |
|
03-May-2008 |
Benjamin Peterson <benjamin@python.org> |
Moved testing of builtin types out of test_builtin and into type specific modules
/external/python/cpython2/Lib/test/test_builtin.py
|
28e0873f1f89d0d80ab64fabeb805de813ec08e4 |
|
30-Apr-2008 |
Georg Brandl <georg@python.org> |
#2719: backport next() from 3k.
/external/python/cpython2/Lib/test/test_builtin.py
|
9ff19b54346d39d15cdcf75e9d66ab46ea6064d6 |
|
17-Mar-2008 |
Eric Smith <eric@trueblade.com> |
Finished backporting PEP 3127, Integer Literal Support and Syntax. 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
/external/python/cpython2/Lib/test/test_builtin.py
|
fb0742fe4f5d07b21764479c3c90ce6c4e1e256f |
|
22-Feb-2008 |
Eric Smith <eric@trueblade.com> |
Tests for bin() builtin. These need to get merged into py3k, which has no tests for bin.
/external/python/cpython2/Lib/test/test_builtin.py
|
ce584d420d012b7bc3998ad0fb055c464ad58e37 |
|
21-Feb-2008 |
Eric Smith <eric@trueblade.com> |
Moved test_format into the correct TestCase.
/external/python/cpython2/Lib/test/test_builtin.py
|
a9f7d6248032c9572b4d2024a1be8bd2823af09f |
|
17-Feb-2008 |
Eric Smith <eric@trueblade.com> |
Backport of PEP 3101, Advanced String Formatting, from py3k. 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).
/external/python/cpython2/Lib/test/test_builtin.py
|
d058cd2cc8e2a3f61609b92a8fc821ea8ec524ca |
|
10-Feb-2008 |
Mark Dickinson <dickinsm@gmail.com> |
Rename rational.Rational to fractions.Fraction, to avoid name clash with numbers.Rational. See issue #1682 for related discussion.
/external/python/cpython2/Lib/test/test_builtin.py
|
a26cf9b7609fc1c08fd1a69ddf5e44dc98a70dce |
|
04-Feb-2008 |
Jeffrey Yasskin <jyasskin@gmail.com> |
Make int() and long() fall back to __trunc__(). See issue 2002.
/external/python/cpython2/Lib/test/test_builtin.py
|
4cab8ece0a4a447ce6db928e8f78e57195c18388 |
|
01-Feb-2008 |
Raymond Hettinger <python@rcn.com> |
Test round-trip on float.as_integer_ratio() and float.__truediv__().
/external/python/cpython2/Lib/test/test_builtin.py
|
04c96d52a4be897792e3ad5c6ad77775aaa18d4b |
|
01-Feb-2008 |
Raymond Hettinger <python@rcn.com> |
Issue #1996: float.as_integer_ratio() should return fraction in lowest terms.
/external/python/cpython2/Lib/test/test_builtin.py
|
ca2b69f765dd8a7f5c8e5c5346572519a8768ec4 |
|
01-Feb-2008 |
Jeffrey Yasskin <jyasskin@gmail.com> |
Move __builtins__.trunc() to math.trunc() per http://mail.python.org/pipermail/python-dev/2008-January/076626.html and issue 1965.
/external/python/cpython2/Lib/test/test_builtin.py
|
3ea7b41b5805c60a05e697211d0bfc14a62a19fb |
|
28-Jan-2008 |
Jeffrey Yasskin <jyasskin@gmail.com> |
Moved Rational._binary_float_to_ratio() to float.as_integer_ratio() because 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.
/external/python/cpython2/Lib/test/test_builtin.py
|
14404b68d8c5a501a2f5ee6f45494865b7b38276 |
|
19-Jan-2008 |
Georg Brandl <georg@python.org> |
Fix #1679: "0x" was taken as a valid integer literal. Fixes the tokenizer, tokenize.py and int() to reject this. Patches by Malte Helmert.
/external/python/cpython2/Lib/test/test_builtin.py
|
9871d8fe22566acf68bf336d04d3a1dbd51f3269 |
|
05-Jan-2008 |
Jeffrey Yasskin <jyasskin@gmail.com> |
Continue rolling back pep-3141 changes that changed behavior from 2.5. This 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.
/external/python/cpython2/Lib/test/test_builtin.py
|
3b83549ea0b0c3e8d1919925a8875052e13367cf |
|
05-Jan-2008 |
Guido van Rossum <guido@python.org> |
Patch #1725 by Mark Dickinson, fixes incorrect conversion of -1e1000 and adds errors for -0x.
/external/python/cpython2/Lib/test/test_builtin.py
|
2f3c16be73a8562d357b9b13bbb8088e275840a7 |
|
03-Jan-2008 |
Jeffrey Yasskin <jyasskin@gmail.com> |
Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (just 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.
/external/python/cpython2/Lib/test/test_builtin.py
|
5240d7416c739e22298463cb08ba8aad7c762a4a |
|
13-Mar-2007 |
Georg Brandl <georg@python.org> |
Patch #1444529: the builtin compile() now accepts keyword arguments. (backport)
/external/python/cpython2/Lib/test/test_builtin.py
|
871f1bc6011c1644b1be2e87518c435e7fb552ad |
|
12-Mar-2007 |
Georg Brandl <georg@python.org> |
Backport from Py3k branch: 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.
/external/python/cpython2/Lib/test/test_builtin.py
|
00cd818dea72177dd79a3d86562d52f1433f9f49 |
|
06-Mar-2007 |
Georg Brandl <georg@python.org> |
Patch #1638879: don't accept strings with embedded NUL bytes in long().
/external/python/cpython2/Lib/test/test_builtin.py
|
2c1375c8db6d62128f594aec3820292576daff8b |
|
12-Oct-2006 |
Georg Brandl <georg@python.org> |
Bug #1545497: when given an explicit base, int() did ignore NULs embedded in the string to convert.
/external/python/cpython2/Lib/test/test_builtin.py
|
7ccbca93a27e22f0b06316b0d9760fbf7b19cbda |
|
04-Oct-2006 |
Armin Rigo <arigo@tunes.org> |
Forward-port of r52136,52138: a review of overflow-detecting code. * unified the way intobject, longobject and mystrtoul handle values around -sys.maxint-1. * in general, trying to entierely avoid overflows in any computation involving signed ints or longs is extremely involved. Fixed a few simple cases where a compiler might be too clever (but that's all guesswork). * more overflow checks against bad data in marshal.c. * 2.5 specific: fixed a number of places that were still confusing int and Py_ssize_t. Some of them could potentially have caused "real-world" breakage. * list.pop(x): fixing overflow issues on x was messy. I just reverted to PyArg_ParseTuple("n"), which does the right thing. (An obscure test was trying to give a Decimal to list.pop()... doesn't make sense any more IMHO) * trying to write a few tests...
/external/python/cpython2/Lib/test/test_builtin.py
|
820d6ac9d7c2743e6804914471159a1ca74cbd41 |
|
04-Oct-2006 |
Martin v. Löwis <martin@v.loewis.de> |
Fix integer negation and absolute value to not rely on undefined behaviour of the C compiler anymore. Will backport to 2.5 and 2.4.
/external/python/cpython2/Lib/test/test_builtin.py
|
51fc8c456e9bbb97f42c6990e40019cd4a5eb615 |
|
09-Aug-2006 |
Armin Rigo <arigo@tunes.org> |
Fix and test for an infinite C recursion.
/external/python/cpython2/Lib/test/test_builtin.py
|
ab2f8f7bd556c16a2b30aa8ec05d4c9d8c50d311 |
|
09-Aug-2006 |
Martin v. Löwis <martin@v.loewis.de> |
__hash__ may now return long int; the final hash value is obtained by invoking hash on the long int. Fixes #1536021.
/external/python/cpython2/Lib/test/test_builtin.py
|
8e24a9678f497ef40b01040d29ff260337da1e77 |
|
09-Aug-2006 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/test/test_builtin.py
|
d336e98ed999c80df2fa8829622aa443136c655d |
|
06-Aug-2006 |
Georg Brandl <georg@python.org> |
Don't produce output in test_builtin.
/external/python/cpython2/Lib/test/test_builtin.py
|
7e3ba2a699d6a5660fc7bf239b2090d5b2961b8c |
|
06-Aug-2006 |
Georg Brandl <georg@python.org> |
Bug #1535165: fixed a segfault in input() and raw_input() when sys.stdin is closed.
/external/python/cpython2/Lib/test/test_builtin.py
|
fcfff0a7fa6ece4c806b6e1a0a66b5ce214b9a28 |
|
03-Jul-2006 |
Martin v. Löwis <martin@v.loewis.de> |
Bug #1417699: Reject locale-specific decimal point in float() and atof().
/external/python/cpython2/Lib/test/test_builtin.py
|
215f13dd118f67fb8c3d3663dbbe11ed33691c4f |
|
06-Jun-2006 |
Martin Blais <blais@furius.ca> |
Normalized a few cases of whitespace in function declarations. Found them using:: find . -name '*.py' | while read i ; do grep 'def[^(]*( ' $i /dev/null ; done find . -name '*.py' | while read i ; do grep ' ):' $i /dev/null ; done (I was doing this all over my own code anyway, because I'd been using spaces in all defs, so I thought I'd make a run on the Python code as well. If you need to do such fixes in your own code, you can use xx-rename or parenregu.el within emacs.)
/external/python/cpython2/Lib/test/test_builtin.py
|
696cf43b58cf1ddb7a3ab3c5bee6709e3b3653d9 |
|
24-May-2006 |
Tim Peters <tim.peters@gmail.com> |
Heavily fiddled variant of patch #1442927: PyLong_FromString optimization. ``long(str, base)`` is now up to 6x faster for non-power-of-2 bases. The largest speedup is for inputs with about 1000 decimal digits. Conversion from non-power-of-2 bases remains quadratic-time in the number of input digits (it was and remains linear-time for bases 2, 4, 8, 16 and 32). Speedups at various lengths for decimal inputs, comparing 2.4.3 with current trunk. Note that it's actually a bit slower for 1-digit strings: len speedup ---- ------- 1 -4.5% 2 4.6% 3 8.3% 4 12.7% 5 16.9% 6 28.6% 7 35.5% 8 44.3% 9 46.6% 10 55.3% 11 65.7% 12 77.7% 13 73.4% 14 75.3% 15 85.2% 16 103.0% 17 95.1% 18 112.8% 19 117.9% 20 128.3% 30 174.5% 40 209.3% 50 236.3% 60 254.3% 70 262.9% 80 295.8% 90 297.3% 100 324.5% 200 374.6% 300 403.1% 400 391.1% 500 388.7% 600 440.6% 700 468.7% 800 498.0% 900 507.2% 1000 501.2% 2000 450.2% 3000 463.2% 4000 452.5% 5000 440.6% 6000 439.6% 7000 424.8% 8000 418.1% 9000 417.7%
/external/python/cpython2/Lib/test/test_builtin.py
|
b713ec2531b61568dd2e768455e37e160b578d76 |
|
23-May-2006 |
Tim Peters <tim.peters@gmail.com> |
Bug #1334662 / patch #1335972: int(string, base) wrong answers. In rare cases of strings specifying true values near sys.maxint, and oddball bases (not decimal or a power of 2), int(string, base) could deliver insane answers. This repairs all such problems, and also speeds string->int significantly. On my box, here are % speedups for decimal strings of various lengths: length speedup ------ ------- 1 12.4% 2 15.7% 3 20.6% 4 28.1% 5 33.2% 6 37.5% 7 41.9% 8 46.3% 9 51.2% 10 19.5% 11 19.9% 12 23.9% 13 23.7% 14 23.3% 15 24.9% 16 25.3% 17 28.3% 18 27.9% 19 35.7% Note that the difference between 9 and 10 is the difference between short and long Python ints on a 32-bit box. The patch doesn't actually do anything to speed conversion to long: the speedup is due to detecting "unsigned long" overflow more quickly. This is a bugfix candidate, but it's a non-trivial patch and it would be painful to separate the "bug fix" from the "speed up" parts.
/external/python/cpython2/Lib/test/test_builtin.py
|
de9b624fb943295263f8140d9d2eda393348b8ec |
|
30-Apr-2006 |
Georg Brandl <georg@python.org> |
Bug #1473625: stop cPickle making float dumps locale dependent in protocol 0. On the way, add a decorator to test_support to facilitate running single test functions in different locales with automatic cleanup.
/external/python/cpython2/Lib/test/test_builtin.py
|
8ddab27182d7d00f32f423955d2344b8ba40b9d7 |
|
04-Apr-2006 |
Thomas Wouters <thomas@python.org> |
Fix __import__("") to raise ValueError rather than return None.
/external/python/cpython2/Lib/test/test_builtin.py
|
ccadf84a1bc1b7908f5dcefd6897f93e174c57b9 |
|
31-Mar-2006 |
Georg Brandl <georg@python.org> |
Patch #1460496: round() now accepts keyword arguments.
/external/python/cpython2/Lib/test/test_builtin.py
|
b82cb8dcd513d49dc674f6973c984628c14cf045 |
|
28-Mar-2006 |
Tim Peters <tim.peters@gmail.com> |
Part of bug 1459808: fiddle test_input_and_raw_input() so it passes w/ -Qnew.
/external/python/cpython2/Lib/test/test_builtin.py
|
ed1e497fb2315d9a768a459c133a2b0275081e9e |
|
09-Jan-2006 |
Georg Brandl <georg@python.org> |
Correct test_builtin locale handling.
/external/python/cpython2/Lib/test/test_builtin.py
|
e7214a130b3fb1c4850a1e644b9e240087f6e982 |
|
18-Dec-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
Get float() to be more portable across platforms. Disable hex strings.
/external/python/cpython2/Lib/test/test_builtin.py
|
ede187f0225a400e3b44915c71f1f6280380fd36 |
|
29-Nov-2005 |
Walter Dörwald <walter@livinglogic.de> |
Test another error case in PyFloat_FromString().
/external/python/cpython2/Lib/test/test_builtin.py
|
fcf4435ae02c3962a8ad71a9539877060c694468 |
|
27-Nov-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
Improve test coverage. Hope the test_file changes work the same on windows.
/external/python/cpython2/Lib/test/test_builtin.py
|
5898fa2dcd4cfae3429e8789ae067ffe1940a461 |
|
22-Nov-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
improve test coverage in Python/pystrtod.c and Python/mystrtoul.c.
/external/python/cpython2/Lib/test/test_builtin.py
|
4e41a4b64cb9e69d15ebe0cdf752c5e105318a94 |
|
03-Aug-2005 |
Walter Dörwald <walter@livinglogic.de> |
Disable a few other tests, that can't work if Python is compiled without Unicode support.
/external/python/cpython2/Lib/test/test_builtin.py
|
c3647ac93e2a38762de8a23b1d94a6380e9ad468 |
|
26-Apr-2005 |
Brett Cannon <bcannon@gmail.com> |
Make subclasses of int, long, complex, float, and unicode perform type conversion using the proper magic slot (e.g., __int__()). Also move conversion code out of PyNumber_*() functions in the C API into the nb_* function. Applied patch #1109424. Thanks Walter Doewald.
/external/python/cpython2/Lib/test/test_builtin.py
|
96229b191814556622b575fd320e822f918f355a |
|
11-Mar-2005 |
Raymond Hettinger <python@rcn.com> |
Add two new functions, any() and all().
/external/python/cpython2/Lib/test/test_builtin.py
|
fee7b93c60310413db31973c13e5abb4c7620ef4 |
|
16-Jan-2005 |
Guido van Rossum <guido@python.org> |
Use decorators.
/external/python/cpython2/Lib/test/test_builtin.py
|
7f06187d3101acd1af8221fde8b69d96ae8655a4 |
|
07-Dec-2004 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/test/test_builtin.py
|
3b0c7c20a10349fbedeb3779582280363a46f087 |
|
03-Dec-2004 |
Raymond Hettinger <python@rcn.com> |
SF patch #1077353: add key= argument to min and max (First draft of patch contributed by Steven Bethard.)
/external/python/cpython2/Lib/test/test_builtin.py
|
5ea7e31076ad80af028d6cb0fa5d4e17f2b467fa |
|
30-Sep-2004 |
Raymond Hettinger <python@rcn.com> |
Improve test coverage.
/external/python/cpython2/Lib/test/test_builtin.py
|
aa241e014979612e2c8851bf9b12c16bcc07b161 |
|
26-Sep-2004 |
Raymond Hettinger <python@rcn.com> |
Checkin Tim's fix to an error discussed on python-dev. Also, add a testcase. Formerly, the list_extend() code used several local variables to remember its state across iterations. Since an iteration could call arbitrary Python code, it was possible for the list state to be changed. The new code uses dynamic structure references instead of C locals. So, they are always up-to-date. After list_resize() is called, its size has been updated but the new cells are filled with NULLs. These needed to be filled before arbitrary iteration code was called; otherwise, that code could attempt to modify a list that was in a semi-invalid state. The solution was to change the ob->size field back to a value reflecting the actual number of valid cells.
/external/python/cpython2/Lib/test/test_builtin.py
|
4c989ddc9c8bd38ab14c9f42511eb567ed219604 |
|
07-Aug-2004 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Subclasses of string can no longer be interned. The semantics of interning were not clear here -- a subclass could be mutable, for example -- and had bugs. Explicitly interning a subclass of string via intern() will raise a TypeError. Internal operations that attempt to intern a string subclass will have no effect. Added a few tests to test_builtin that includes the old buggy code and verifies that calls like PyObject_SetAttr() don't fail. Perhaps these tests should have gone in test_string.
/external/python/cpython2/Lib/test/test_builtin.py
|
2a7dedef9e3d94fbbad3782fd4757c6b7ba91c09 |
|
07-Aug-2004 |
Raymond Hettinger <python@rcn.com> |
SF bug #1004669: Type returned from .keys() is not checked
/external/python/cpython2/Lib/test/test_builtin.py
|
66bd23322567a9ef0ad7bbe2436fef73b18bc9db |
|
02-Aug-2004 |
Raymond Hettinger <python@rcn.com> |
Completed the patch for Bug #215126. * Fixes an incorrect variable in a PyDict_CheckExact. * Allow general mapping locals arguments for the execfile() function and exec statement. * Add tests.
/external/python/cpython2/Lib/test/test_builtin.py
|
513ffe81122274973d2adeff13345589d4313d47 |
|
06-Jul-2004 |
Raymond Hettinger <python@rcn.com> |
* Fix missing return after error message is set. * Add a test case that would have caught it.
/external/python/cpython2/Lib/test/test_builtin.py
|
214b1c3aaea3e83302df9ea37a37b3c7548b92b1 |
|
02-Jul-2004 |
Raymond Hettinger <python@rcn.com> |
SF Bug #215126: Over restricted type checking on eval() function The builtin eval() function now accepts any mapping for the locals argument. Time sensitive steps guarded by PyDict_CheckExact() to keep from slowing down the normal case. My timings so no measurable impact.
/external/python/cpython2/Lib/test/test_builtin.py
|
70a6b49821a3226f55e9716f32d802d06640cb89 |
|
12-Feb-2004 |
Walter Dörwald <walter@livinglogic.de> |
Replace backticks with repr() or "%r" From SF patch #852334.
/external/python/cpython2/Lib/test/test_builtin.py
|
ff83c2bacc2acd782d20b589a02420df571b89a2 |
|
02-Feb-2004 |
Hye-Shik Chang <hyeshik@gmail.com> |
Fix input() builtin function to respect compiler flags. (SF patch 876178, patch by mwh, unittest by perky)
/external/python/cpython2/Lib/test/test_builtin.py
|
64958a15d7c03efdc3d2eddf247666e18d1fd910 |
|
17-Dec-2003 |
Raymond Hettinger <python@rcn.com> |
Guido grants a Christmas wish: sorted() becomes a regular function instead of a classmethod.
/external/python/cpython2/Lib/test/test_builtin.py
|
6c9e130524533263b690e86639a36b6f3e7a8eeb |
|
30-Nov-2003 |
Guido van Rossum <guido@python.org> |
- Removed FutureWarnings related to hex/oct literals and conversions and left shifts. (Thanks to Kalle Svensson for SF patch 849227.) This addresses most of the remaining semantic changes promised by PEP 237, except for repr() of a long, which still shows the trailing 'L'. The PEP appears to promise warnings for operations that changed semantics compared to Python 2.3, but this is not implemented; we've suffered through enough warnings related to hex/oct literals and I think it's best to be silent now.
/external/python/cpython2/Lib/test/test_builtin.py
|
a690a9967e715663b7a421c9ebdad91381cdf1e4 |
|
16-Nov-2003 |
Raymond Hettinger <python@rcn.com> |
* Migrate set() and frozenset() from the sandbox. * Install the unittests, docs, newsitem, include file, and makefile update. * Exercise the new functions whereever sets.py was being used. Includes the docs for libfuncs.tex. Separate docs for the types are forthcoming.
/external/python/cpython2/Lib/test/test_builtin.py
|
2b3eb4062c5e50abf854f7e68038243ca7c07217 |
|
28-Oct-2003 |
Armin Rigo <arigo@tunes.org> |
Deleting cyclic object comparison. SF patch 825639 http://mail.python.org/pipermail/python-dev/2003-October/039445.html
/external/python/cpython2/Lib/test/test_builtin.py
|
c8cb5d9d6950bb9e3b407c6b4a8dd2831f5edee9 |
|
15-Aug-2003 |
Walter Dörwald <walter@livinglogic.de> |
Make a copy of L before appending, so the global L remains unchanged (and sys.gettotalrefcount() remains constant). Fix a few typos.
/external/python/cpython2/Lib/test/test_builtin.py
|
eaef61511656071194565878dc80c46096d46415 |
|
02-Aug-2003 |
Raymond Hettinger <python@rcn.com> |
As discussed on python-dev, changed builtin.zip() to handle zero arguments by returning an empty list instead of raising a TypeError.
/external/python/cpython2/Lib/test/test_builtin.py
|
5edd785bbb1825e8b4e89525b2dad0cec3a9394d |
|
18-Jun-2003 |
Walter Dörwald <walter@livinglogic.de> |
Port test_complex.py to unittest. Move the constructor tests from test_builtin to test_complex. Add a bunch of tests (code coverage is a 94%). From SF patch #736962.
/external/python/cpython2/Lib/test/test_builtin.py
|
91bbd9a7b9735cba07b06400a7c467aab6facfde |
|
02-May-2003 |
Raymond Hettinger <python@rcn.com> |
Used sets.Set() to compare unordered sequences. Improves clarity and brevity.
/external/python/cpython2/Lib/test/test_builtin.py
|
21d3a32b99c5763444c34c189ef653ac9745f3c4 |
|
01-May-2003 |
Walter Dörwald <walter@livinglogic.de> |
Combine the functionality of test_support.run_unittest() and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807.
/external/python/cpython2/Lib/test/test_builtin.py
|
a70b19147fd163744be34745d393af7be603629f |
|
22-Apr-2003 |
Alex Martelli <aleaxit@gmail.com> |
Adding new built-in function sum, with docs and tests.
/external/python/cpython2/Lib/test/test_builtin.py
|
357981e99ddd31009367bd61ac6b476212ee3612 |
|
15-Apr-2003 |
Walter Dörwald <walter@livinglogic.de> |
Add a few errors tests for range().
/external/python/cpython2/Lib/test/test_builtin.py
|
299b3dffd2d4700f0212694aba98d987435cb555 |
|
15-Apr-2003 |
Tim Peters <tim.peters@gmail.com> |
test_range(): The C code changed to raise TypeError in one of these cases, but the test still expected ValueError. Repaired that.
/external/python/cpython2/Lib/test/test_builtin.py
|
efbbb1c60237a9a2997dc4b1ab213e4c6f0da824 |
|
11-Apr-2003 |
Guido van Rossum <guido@python.org> |
Patch by Chad Netzer (with significant change): - range() now works even if the arguments are longs with magnitude larger than sys.maxint, as long as the total length of the sequence fits. E.g., range(2**100, 2**101, 2**100) is the following list: [1267650600228229401496703205376L]. (SF patch #707427.)
/external/python/cpython2/Lib/test/test_builtin.py
|
f2715e076435b74638acb81512c2ee014f75aea2 |
|
19-Feb-2003 |
Tim Peters <tim.peters@gmail.com> |
Whitespace normalization.
/external/python/cpython2/Lib/test/test_builtin.py
|
8dd19321bbb3b4f94d15ca3a405053265b99e91e |
|
10-Feb-2003 |
Walter Dörwald <walter@livinglogic.de> |
Change filtertuple() to use tp_as_sequence->sq_item instead of PyTuple_GetItem, so an overwritten __getitem__ in a tuple subclass works. SF bug #665835.
/external/python/cpython2/Lib/test/test_builtin.py
|
1918f7755e03900224c5a53cca9fc0088c3186d3 |
|
10-Feb-2003 |
Walter Dörwald <walter@livinglogic.de> |
Change filterstring() and filterunicode(): If the object is not a real str or unicode but an instance of a subclass, construct the output via looping over __getitem__. This guarantees that the result is the same for function==None and function==lambda x:x This doesn't happen for tuples, because filtertuple() uses PyTuple_GetItem(). (This was discussed on SF bug #665835).
/external/python/cpython2/Lib/test/test_builtin.py
|
3aaf42c6139ed211a59b200130d1d205982b9818 |
|
10-Feb-2003 |
Just van Rossum <just@letterror.com> |
patch #683515: "Add unicode support to compile(), eval() and exec" Incorporated nnorwitz's comment re. Py__USING_UNICODE.
/external/python/cpython2/Lib/test/test_builtin.py
|
f032f86e9e828dfe1147852783aa6784e3ddf610 |
|
09-Feb-2003 |
Just van Rossum <just@letterror.com> |
patch 680474 that fixes bug 679880: compile/eval/exec refused utf-8 bom mark. Added unit test.
/external/python/cpython2/Lib/test/test_builtin.py
|
c3da83fcd7e25ffb1ed15f5adad4efa1c03ebc03 |
|
04-Feb-2003 |
Walter Dörwald <walter@livinglogic.de> |
Make sure filter() never returns tuple, str or unicode subclasses. (Discussed in SF patch #665835)
/external/python/cpython2/Lib/test/test_builtin.py
|
5e61e24d5527246e1602ce6ad428248f5f4eda94 |
|
04-Feb-2003 |
Walter Dörwald <walter@livinglogic.de> |
Add a test that checks that filter() honors the sq_item slot for str and unicode subclasses not just for generating the output but for testing too.
/external/python/cpython2/Lib/test/test_builtin.py
|
903f1e0c40cd25489cdf8856ccb1bb8932c819f8 |
|
04-Feb-2003 |
Walter Dörwald <walter@livinglogic.de> |
filterstring() and filterunicode() in Python/bltinmodule.c blindly assumed that tp_as_sequence->sq_item always returns a str or unicode object. This might fail with str or unicode subclasses. This patch checks whether the object returned from __getitem__ is a str/unicode object and raises a TypeError if not (and the filter function returned true). Furthermore the result for __getitem__ can be more than one character long, so checks for enough memory have to be done.
/external/python/cpython2/Lib/test/test_builtin.py
|
abcb0c03ade3cee52b71362f57b16af3e00c743b |
|
28-Jan-2003 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix SF bug# 676155, RuntimeWarning with tp_compare Check return value of PyLong_AsDouble(), it can return an error.
/external/python/cpython2/Lib/test/test_builtin.py
|
bf5170793c7569d648b8cd89a2275768c78d821f |
|
27-Jan-2003 |
Walter Dörwald <walter@livinglogic.de> |
Fix comment typos
/external/python/cpython2/Lib/test/test_builtin.py
|
8afd7571a18593bef57d98ccd68865fd1d400643 |
|
25-Jan-2003 |
Martin v. Löwis <martin@v.loewis.de> |
Patch #636005: Filter unicode into unicode.
/external/python/cpython2/Lib/test/test_builtin.py
|
919497ea743174665958520a5647ab0ae87ecb0b |
|
19-Jan-2003 |
Walter Dörwald <walter@livinglogic.de> |
Combine test_b1.py and test_b2.py into test_builtin.py, port the tests to PyUnit and add many tests for error cases. This increases code coverage in Python/bltinmodule.c from 75% to 92%. (From SF patch #662807, with assert_(not fcmp(x, y)) replaced with assertAlmostEqual(x, y) where possible)
/external/python/cpython2/Lib/test/test_builtin.py
|
408b6d34de2b1a6ba690557def435adce9314184 |
|
31-Jul-2002 |
Barry Warsaw <barry@python.org> |
Complete the absolute import patch for the test suite. All relative imports of test modules now import from the test package. Other related oddities are also fixed (like DeprecationWarning filters that weren't specifying the full import part, etc.). Also did a general code cleanup to remove all "from test.test_support import *"'s. Other from...import *'s weren't changed.
/external/python/cpython2/Lib/test/test_builtin.py
|
3bead0984c802a2f709076bb9c8531fc67f56ee8 |
|
27-Jan-1992 |
Guido van Rossum <guido@python.org> |
Initial revision
/external/python/cpython2/Lib/test/test_builtin.py
|