Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #24497: update link in test_decimal comments | Ned Deily | 2015-06-24 | 1 | -1/+1 |
| | |||||
* | Issue #23474: Enhanced locale testing. | Serhiy Storchaka | 2015-02-18 | 1 | -1/+19 |
| | |||||
* | Issue #22777: Test pickling with all protocols. | Serhiy Storchaka | 2014-12-15 | 1 | -9/+11 |
| | |||||
* | Issue #21855: Fixed the decimal module in unicode disabled build. | Serhiy Storchaka | 2014-10-14 | 1 | -4/+5 |
| | |||||
* | Issue 22090: Fix '%' formatting for infinities and NaNs. | Stefan Krah | 2014-08-26 | 1 | -0/+5 |
| | |||||
* | Issue #18492: Allow all resources when tests are not run by regrtest.py. | Zachary Ware | 2014-06-02 | 1 | -2/+2 |
| | | | | This changeset also includes cleanup allowed by this behavior change. | ||||
* | Issue #19572: More silently skipped tests explicitly skipped. | Zachary Ware | 2013-12-10 | 1 | -16/+2 |
| | |||||
* | Remove overeager test (don't depend on the sign of a nan; cf. issue #14521) | Mark Dickinson | 2012-08-24 | 1 | -2/+0 |
| | |||||
* | Issue #15544: Fix Decimal.__float__ to work with payload-carrying NaNs. | Mark Dickinson | 2012-08-24 | 1 | -0/+14 |
| | |||||
* | #11565: Fix several typos. Patch by Piotr Kasprzyk. | Ezio Melotti | 2011-03-16 | 1 | -1/+1 |
| | |||||
* | Merged revisions 85503 via svnmerge from | Antoine Pitrou | 2010-10-14 | 1 | -8/+9 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85503 | antoine.pitrou | 2010-10-15 00:11:44 +0200 (ven., 15 oct. 2010) | 2 lines More proper closing of files ........ | ||||
* | Merged revisions 82646,82649-82650 via svnmerge from | Mark Dickinson | 2010-07-08 | 1 | -41/+35 |
| | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82646 | mark.dickinson | 2010-07-08 18:23:40 +0100 (Thu, 08 Jul 2010) | 1 line In test_decimal, convert heuristic for skipping tests into an explicit skiplist. ........ r82649 | mark.dickinson | 2010-07-08 20:03:34 +0100 (Thu, 08 Jul 2010) | 1 line Fix a performance issue in Decimal.pow. Thanks Stefan Krah for finding this. ........ r82650 | mark.dickinson | 2010-07-08 20:09:16 +0100 (Thu, 08 Jul 2010) | 1 line Fix misplaced exactness check that was causing unnecessary work in Decimal.__pow__. ........ | ||||
* | Issue #8567: Fix incorrect precedence of signals in Decimal module. | Mark Dickinson | 2010-05-04 | 1 | -0/+25 |
| | | | | | | | | | | When a Decimal operation raises multiple signals and more than one of those signals is trapped, the specification determines the order in which the signals should be handled. In many cases this order wasn't being followed, leading to the wrong Python exception being raised. This commit fixes those cases, and adds extra tests. The tests are only enabled when EXTENDEDERRORTESTS is True, since they involve rerunning each Decimal testcase several times. | ||||
* | Fix incorrect use of a list as the target of an 'except' clause in ↵ | Mark Dickinson | 2010-05-01 | 1 | -1/+1 |
| | | | | test_decimal.py. | ||||
* | Use more specific assert* methods in test_decimal. | Ezio Melotti | 2010-04-03 | 1 | -43/+43 |
| | |||||
* | Issue 8257: Decimal constructor to accept float. | Raymond Hettinger | 2010-04-02 | 1 | -0/+26 |
| | |||||
* | Issue #7279: Make Decimal('nan') hashable. Decimal('snan') remains unhashable. | Mark Dickinson | 2010-04-02 | 1 | -1/+5 |
| | | | | | | Also rewrite the Decimal __hash__ method so that it doesn't rely on float('inf') being valid: float('inf') could raise an exception on platforms not using IEEE 754 arithmetic. | ||||
* | Issue #7279: Make comparisons involving a Decimal sNaN signal InvalidOperation. | Mark Dickinson | 2010-04-02 | 1 | -8/+47 |
| | |||||
* | Issue #2531: Make float-to-decimal comparisons return correct results. | Mark Dickinson | 2010-04-02 | 1 | -0/+26 |
| | | | | | | | Float to decimal comparison operations now return a result based on the numeric values of the operands. Decimal.__hash__ has also been fixed so that Decimal and float values that compare equal have equal hash value. | ||||
* | Issue #8248: Add some tests for the bool type. Patch by Gregory Nofi. | Antoine Pitrou | 2010-03-30 | 1 | -0/+6 |
| | |||||
* | Fix py3k warnings in test_decimal, using unittest.assertItemsEqual. | Florent Xicluna | 2010-03-21 | 1 | -17/+15 |
| | |||||
* | Issue #7633: Context method in the decimal module (with the exception | Mark Dickinson | 2010-02-18 | 1 | -0/+438 |
| | | | | | | of the 'canonical' and 'is_canonical' methods) now consistently accept integer arguments wherever a Decimal instance is accepted. Thanks Juan José Conti for the patch. | ||||
* | Remove unused imports in test modules. | Georg Brandl | 2010-02-07 | 1 | -1/+0 |
| | |||||
* | use assert[Not]IsInstance where appropriate | Ezio Melotti | 2010-01-24 | 1 | -2/+2 |
| | |||||
* | use assert[Not]In where appropriate | Ezio Melotti | 2010-01-23 | 1 | -2/+2 |
| | |||||
* | Reverting the Revision: 77368. I committed Flox's big patch for tests by | Senthil Kumaran | 2010-01-08 | 1 | -24/+14 |
| | | | | mistake. ( It may come in for sure tough) | ||||
* | Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. ↵ | Senthil Kumaran | 2010-01-08 | 1 | -14/+24 |
| | | | | Patch by flox | ||||
* | Issue #7233: A number of two-argument Decimal methods were failing to | Mark Dickinson | 2009-10-29 | 1 | -0/+47 |
| | | | | accept ints and longs for the second argument. | ||||
* | Update decimal test data to the most recent set from Mike Cowlishaw. | Mark Dickinson | 2009-10-08 | 1 | -0/+11 |
| | |||||
* | Issue #6857: Fix Decimal formatting to be consistent with existing float | Mark Dickinson | 2009-09-08 | 1 | -1/+2 |
| | | | | formatting: both are now right-aligned by default. | ||||
* | #Issue 6795: Fix infinite recursion in long(Decimal('nan')); change ↵ | Mark Dickinson | 2009-09-07 | 1 | -0/+10 |
| | | | | int(Decimal('nan')) to raise ValueError instead of either returning NaN or raising InvalidContext. | ||||
* | Issue #6850: Fix bug in Decimal._parse_format_specifier for formats | Mark Dickinson | 2009-09-07 | 1 | -0/+3 |
| | | | | with no type specifier. | ||||
* | Issue #6595: Allow Decimal constructor to accept non-European decimal | Mark Dickinson | 2009-08-02 | 1 | -3/+9 |
| | | | | | digits, as recommended by the specification. (Backport of r74279 from py3k.) | ||||
* | convert usage of fail* to assert* | Benjamin Peterson | 2009-06-30 | 1 | -46/+46 |
| | |||||
* | fix incorrect auto-translation of TestSkipped -> unittest.SkipTest | Benjamin Peterson | 2009-03-26 | 1 | -3/+2 |
| | |||||
* | remove test_support.TestSkipped and just use unittest.SkipTest | Benjamin Peterson | 2009-03-26 | 1 | -2/+2 |
| | |||||
* | Fix bug in _insert_thousands_sep: too much zero padding could be | Mark Dickinson | 2009-03-18 | 1 | -0/+22 |
| | | | | added for 'n' formats with non-repeating thousands-separator. | ||||
* | Issue #2110: Add support for thousands separator and 'n' format specifier | Mark Dickinson | 2009-03-17 | 1 | -1/+97 |
| | | | | to Decimal __format__ method. | ||||
* | Fix bug in Decimal __format__ method that swapped left and right | Mark Dickinson | 2009-03-17 | 1 | -0/+6 |
| | | | | alignment. | ||||
* | Register decimals as numbers.Number | Raymond Hettinger | 2009-02-03 | 1 | -0/+7 |
| | |||||
* | Remove an unnecessary check from test_decimal. | Mark Dickinson | 2009-01-10 | 1 | -1/+0 |
| | |||||
* | Issue 4796: Add from_float methods to the decimal module. | Raymond Hettinger | 2009-01-03 | 1 | -0/+49 |
| | |||||
* | Replace occurrences of '\d' with '[0-9]' in Decimal regex, to make sure | Mark Dickinson | 2008-07-02 | 1 | -0/+3 |
| | | | | | | | | that the behaviour of Decimal doesn't change if/when re.UNICODE becomes assumed in Python 3.0. Also add a check that alternative Unicode digits (e.g. u'\N{FULLWIDTH DIGIT ONE}') are *not* accepted in a numeric string. | ||||
* | Fixed some test structures. Thanks Mark Dickinson. | Facundo Batista | 2008-05-02 | 1 | -16/+9 |
| | |||||
* | Remove some from __future__ import with_statements | Benjamin Peterson | 2008-04-30 | 1 | -1/+0 |
| | |||||
* | Issue #2482: Make sure that the coefficient of a Decimal | Mark Dickinson | 2008-03-25 | 1 | -0/+16 |
| | | | | | instance is always stored as a str instance, even when that Decimal has been created from a unicode string. | ||||
* | Issue #2478: Decimal(sqrt(0)) failed when the decimal context | Mark Dickinson | 2008-03-25 | 1 | -0/+6 |
| | | | | was not explicitly supplied. | ||||
* | Small fix that complicated the test actually when that | Facundo Batista | 2008-03-22 | 1 | -4/+10 |
| | | | | test failed. | ||||
* | Add __format__ method to Decimal, to support PEP 3101 | Mark Dickinson | 2008-02-29 | 1 | -0/+93 |
| | |||||
* | Fix decimal repr which should have used single quotes like other reprs. | Raymond Hettinger | 2008-02-14 | 1 | -1/+1 |
| |