Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython2
/
d8590ff209369f45a5ed417c79ce255a33f70a1d
/
Lib
/
test
/
test_decimal.py
c63be46
Remove overeager test (don't depend on the sign of a nan; cf. issue #14521)
by Mark Dickinson
· 13 years ago
088cec3
Issue #15544: Fix Decimal.__float__ to work with payload-carrying NaNs.
by Mark Dickinson
· 13 years ago
c2077b0
#11565: Fix several typos. Patch by Piotr Kasprzyk.
by Ezio Melotti
· 14 years ago
99d848b
Merged revisions 85503 via svnmerge from
by Antoine Pitrou
· 15 years ago
e85aa73
Merged revisions 82646,82649-82650 via svnmerge from
by Mark Dickinson
· 15 years ago
4f96f5f
Issue #8567: Fix incorrect precedence of signals in Decimal module.
by Mark Dickinson
· 15 years ago
16cd2be
Fix incorrect use of a list as the target of an 'except' clause in test_decimal.py.
by Mark Dickinson
· 15 years ago
856a3be
Use more specific assert* methods in test_decimal.
by Ezio Melotti
· 15 years ago
ed171ab
Issue 8257: Decimal constructor to accept float.
by Raymond Hettinger
· 15 years ago
f3eeca1
Issue #7279: Make Decimal('nan') hashable. Decimal('snan') remains unhashable.
by Mark Dickinson
· 15 years ago
e096e82
Issue #7279: Make comparisons involving a Decimal sNaN signal InvalidOperation.
by Mark Dickinson
· 15 years ago
99d8096
Issue #2531: Make float-to-decimal comparisons return correct results.
by Mark Dickinson
· 15 years ago
6032c25
Issue #8248: Add some tests for the bool type. Patch by Gregory Nofi.
by Antoine Pitrou
· 15 years ago
8f43cec
Fix py3k warnings in test_decimal, using unittest.assertItemsEqual.
by Florent Xicluna
· 15 years ago
6d8effb
Issue #7633: Context method in the decimal module (with the exception
by Mark Dickinson
· 15 years ago
a4f46e1
Remove unused imports in test modules.
by Georg Brandl
· 15 years ago
b0f5adc
use assert[Not]IsInstance where appropriate
by Ezio Melotti
· 16 years ago
aa98058
use assert[Not]In where appropriate
by Ezio Melotti
· 16 years ago
ce8e33a
Reverting the Revision: 77368. I committed Flox's big patch for tests by
by Senthil Kumaran
· 16 years ago
3ddc435
Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. Patch by flox
by Senthil Kumaran
· 16 years ago
0c67312
Issue #7233: A number of two-argument Decimal methods were failing to
by Mark Dickinson
· 16 years ago
539bff4
Update decimal test data to the most recent set from Mike Cowlishaw.
by Mark Dickinson
· 16 years ago
5cfa804
Issue #6857: Fix Decimal formatting to be consistent with existing float
by Mark Dickinson
· 16 years ago
968f169
#Issue 6795: Fix infinite recursion in long(Decimal('nan')); change int(Decimal('nan')) to raise ValueError instead of either returning NaN or raising InvalidContext.
by Mark Dickinson
· 16 years ago
491ea55
Issue #6850: Fix bug in Decimal._parse_format_specifier for formats
by Mark Dickinson
· 16 years ago
4326ad8
Issue #6595: Allow Decimal constructor to accept non-European decimal
by Mark Dickinson
· 16 years ago
5c8da86
convert usage of fail* to assert*
by Benjamin Peterson
· 16 years ago
bec087f
fix incorrect auto-translation of TestSkipped -> unittest.SkipTest
by Benjamin Peterson
· 16 years ago
888a39b
remove test_support.TestSkipped and just use unittest.SkipTest
by Benjamin Peterson
· 16 years ago
b14514a
Fix bug in _insert_thousands_sep: too much zero padding could be
by Mark Dickinson
· 16 years ago
277859d
Issue #2110: Add support for thousands separator and 'n' format specifier
by Mark Dickinson
· 16 years ago
b065e52
Fix bug in Decimal __format__ method that swapped left and right alignment.
by Mark Dickinson
· 16 years ago
2c8585b
Register decimals as numbers.Number
by Raymond Hettinger
· 17 years ago
da62f81
Remove an unnecessary check from test_decimal.
by Mark Dickinson
· 17 years ago
f4d8597
Issue 4796: Add from_float methods to the decimal module.
by Raymond Hettinger
· 17 years ago
70c3289
Replace occurrences of '\d' with '[0-9]' in Decimal regex, to make sure
by Mark Dickinson
· 17 years ago
ee340e5
Fixed some test structures. Thanks Mark Dickinson.
by Facundo Batista
· 17 years ago
95287fa
Remove some from __future__ import with_statements
by Benjamin Peterson
· 17 years ago
8e85ffa
Issue #2482: Make sure that the coefficient of a Decimal
by Mark Dickinson
· 17 years ago
3b24ccb
Issue #2478: Decimal(sqrt(0)) failed when the decimal context
by Mark Dickinson
· 17 years ago
6415667
Small fix that complicated the test actually when that test failed.
by Facundo Batista
· 17 years ago
1ddf1d8
Add __format__ method to Decimal, to support PEP 3101
by Mark Dickinson
· 17 years ago
abe3237
Fix decimal repr which should have used single quotes like other reprs.
by Raymond Hettinger
· 17 years ago
2fc9263
Issue 1979: Make Decimal comparisons (other than !=, ==) involving NaN
by Mark Dickinson
· 18 years ago
ca2b69f
Move __builtins__.trunc() to math.trunc() per
by Jeffrey Yasskin
· 18 years ago
5a05364
Add support for trunc().
by Raymond Hettinger
· 18 years ago
59bc20b
Issue 1780: Allow leading and trailing whitespace in Decimal constructor,
by Mark Dickinson
· 18 years ago
52b2579
Issue #1757: The hash of a Decimal instance is no longer affected
by Facundo Batista
· 18 years ago
72bc54f
Major change in the internal structure of the Decimal
by Facundo Batista
· 18 years ago
9b5e231
The constructor from tuple was way too permissive: it allowed bad
by Facundo Batista
· 18 years ago
1a191df
Made the various is_* operations return booleans. This was discussed
by Facundo Batista
· 18 years ago
8c20244
Issue #1772851. Optimization of __hash__ to behave better for big big numbers.
by Facundo Batista
· 18 years ago
b3e6e8c
Fix obvious typo in threaded test.
by Thomas Wouters
· 18 years ago
6c398da
The methods always return Decimal classes, even if they're
by Facundo Batista
· 18 years ago
353750c
Merged the decimal-branch (revisions 54886 to 58140). Decimal is now
by Facundo Batista
· 18 years ago
ced1218
Make decimal.ContextManager a private implementation detail of decimal.localcontext()
by Nick Coghlan
· 19 years ago
8b6999b
Fix the wrongheaded implementation of context management in the decimal module and add unit tests. (python-dev discussion is ongoing regarding what we do about Python 2.5)
by Nick Coghlan
· 19 years ago
ce4a9c9
Fix tests so they pass in -R mode
by Neal Norwitz
· 19 years ago
46cc702
test_main(): Restore the decimal context that was in
by Tim Peters
· 19 years ago
4ef3a23
whitespace normalisation
by Anthony Baxter
· 19 years ago
96c3f7f
Make test_decimal work with -Qnew.
by Georg Brandl
· 19 years ago
267b868
* Fix decimal's handling of foreign types. Now returns NotImplemented
by Raymond Hettinger
· 20 years ago
bea3f6f
Bug #1163325: "special" decimals aren't hashable
by Raymond Hettinger
· 20 years ago
7e71fa5
Bug #1083645
by Raymond Hettinger
· 21 years ago
605ed02
SF bug #1071588 coercing decimal to int doesn't work between -1 and 1
by Raymond Hettinger
· 21 years ago
ed20ad8
Change the strategy for coping with time intensive tests from
by Raymond Hettinger
· 21 years ago
f04d8a8
There are no longer any special case test skips.
by Raymond Hettinger
· 21 years ago
f63ba43
* Dynamically build a list of files to be tested (necessary because
by Raymond Hettinger
· 21 years ago
955d2b2
Add a test for Context.copy().
by Raymond Hettinger
· 21 years ago
b91af52
* Hide a loop induction variable that was inadvertantly being picked up
by Raymond Hettinger
· 21 years ago
fed5296
* Rename "Signals" to "_signals" making it non-public.
by Raymond Hettinger
· 21 years ago
bf44069
Improve Context construction and representation:
by Raymond Hettinger
· 21 years ago
d87ac8f
* Update the test suite to reflect that ConversionSyntax was no longer
by Raymond Hettinger
· 21 years ago
5aa478b
Module and tests:
by Raymond Hettinger
· 21 years ago
0aeac10
* Add __eq__ and __ne__ so that things like list.index() work properly
by Raymond Hettinger
· 21 years ago
5548be2
Test the logic for int(d).
by Raymond Hettinger
· 21 years ago
6ea4845
* Make the tests independent of the default precision.
by Raymond Hettinger
· 21 years ago
d9c0a7a
Work through several open todos:
by Raymond Hettinger
· 21 years ago
7c85fa4
Move Decimal from the sandbox into production.
by Raymond Hettinger
· 21 years ago