summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_int.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed Py3k warnings in tests for issue #24731.Serhiy Storchaka2015-11-291-7/+10
|
* Issue #24731: Fixed crash on converting objects with special methodsSerhiy Storchaka2015-11-251-0/+15
| | | | | __str__, __trunc__, and __float__ returning instances of subclasses of str, long, and float to subclasses of str, long, and float correspondingly.
* Issue #25678: Copy buffer objects to null-terminated strings.Serhiy Storchaka2015-11-201-4/+21
| | | | | | | | Avoid buffer overreads when int(), long(), float(), and compile() are passed buffer objects. Similar code is removed from the complex() constructor, where it was not reachable. Patch backported from issue #24802 by Eryk Sun.
* Issue #16761: Raise TypeError when int() or long() called with base argument ↵Serhiy Storchaka2012-12-281-12/+2
| | | | only.
* Issue #16792: Use assertIs() to test identity.Serhiy Storchaka2012-12-271-4/+4
|
* Issue #16793. Replace deprecated unittest asserts with modern counterparts.Serhiy Storchaka2012-12-271-5/+5
|
* Issue #16792: Mark small ints test as CPython-only.Serhiy Storchaka2012-12-271-0/+8
|
* Issue #16790: add some of the recent issue #16045 int tests to test_long.Chris Jerdonek2012-12-271-10/+19
| | | | | This patch also provides a simple way to share tests going forward between test_int and test_long.
* Issue #16045: add more unit tests for built-in int()Andrew Svetlov2012-12-231-0/+54
| | | | Patch by Chris Jerdonek.
* Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-1/+1
| | | | | | | | | | 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 #8825: additional testcases for int(string, 0) and long(string, 0).Mark Dickinson2010-05-261-0/+6
|
* use assert[Not]IsInstance where appropriateEzio Melotti2010-01-241-5/+5
|
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-6/+6
|
* Issue #3166: Make long -> float (and int -> float) conversionsMark Dickinson2009-04-201-0/+34
| | | | | | correctly rounded, using round-half-to-even. This ensures that the value of float(n) doesn't depend on whether we're using 15-bit digits or 30-bit digits for Python longs.
* Issue #3439: add bit_length method to int and long.Mark Dickinson2008-12-171-0/+35
| | | | | Thanks Fredrik Johansson and Victor Stinner for code, Raymond Hettinger for review.
* Moved testing of builtin types out of test_builtin and into type specific ↵Benjamin Peterson2008-05-031-0/+331
modules