summaryrefslogtreecommitdiffstats
path: root/Modules/_decimal/tests
Commit message (Collapse)AuthorAgeFilesLines
* Revert mode change that loses information in directory listings on Linux. ↵Stefan Krah2019-08-211-0/+0
| | | | (#15366)
* Unmark files as executable that can't actually be executed. (GH-15353)Greg Price2019-08-211-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There are plenty of legitimate scripts in the tree that begin with a `#!`, but also a few that seem to be marked executable by mistake. Found them with this command -- it gets executable files known to Git, filters to the ones that don't start with a `#!`, and then unmarks them as executable: $ git ls-files --stage \ | perl -lane 'print $F[3] if (!/^100644/)' \ | while read f; do head -c2 "$f" | grep -qxF '#!' \ || chmod a-x "$f"; \ done Looking at the list by hand confirms that we didn't sweep up any files that should have the executable bit after all. In particular * The `.psd` files are images from Photoshop. * The `.bat` files sure look like things that can be run. But we have lots of other `.bat` files, and they don't have this bit set, so it must not be needed for them. Automerge-Triggered-By: @benjaminp
* bpo-31403: Remove WITHOUT_THREADS from _decimal. (#3474)Stefan Krah2017-09-091-19/+15
|
* bpo-27425: Be more explicit in .gitattributes (GH-840)Zachary Ware2017-06-101-111/+111
| | | Updates checked-in line endings on several files.
* bpo-29919: Remove unused imports found by pyflakes (#137)Victor Stinner2017-03-271-1/+0
| | | Make also minor PEP8 coding style fixes on modified imports.
* Issue #25928: Add Decimal.as_integer_ratio(). Python parts and docs byStefan Krah2015-12-281-3/+3
| | | | Mark Dickinson.
* Closes #17202: Merge with 3.4Zachary Ware2015-04-131-111/+111
|\
| * Issue #17202: Add .bat to .hgeol to force them to CRLF.Zachary Ware2015-04-131-111/+111
| | | | | | | | | | Using LF can a script to fail if it tries to use a label that is split across 512 byte blocks. Who knows why.
* | Issue #23641: Cleaned out legacy dunder names from tests and docs.Serhiy Storchaka2015-03-121-1/+1
|\ \ | |/ | | | | | | Fixed 2 to 3 porting bug in pynche.ColorDB. Added few tests for __truediv__, __floordiv__ and __matmul__.
| * Issue #23641: Cleaned out legacy dunder names from tests and docs.Serhiy Storchaka2015-03-121-1/+1
| | | | | | | | Fixed 2 to 3 porting bug in pynche.ColorDB.
* | Issue #19232: Speed up decimal import. Additionally, since _decimal isStefan Krah2014-09-101-3/+4
|/ | | | | self-contained, this change facilitates maintenance and the Python version can be easily imported for experimentation.
* Issue #19936: Remove executable bits from C source files and several forgottenSerhiy Storchaka2014-01-162-0/+0
| | | | test files.
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-162-0/+0
| | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang line to use python3 executable in the unittestgui script.
* Issue #19936: Disable shebang lines in order to prevent using a randomStefan Krah2014-01-163-6/+0
| | | | system python.
* Support multiarch build in tests.Stefan Krah2013-05-291-7/+8
|
* Issue #17768: Support newline fill character in decimal.py and NUL fillStefan Krah2013-05-292-6/+4
| | | | character in _decimal.c.
* Issue #16422: Use strings for rounding mode constants for better readabilityStefan Krah2013-01-161-22/+14
| | | | and pickling compatibility.
* Issue #15783: Except for the number methods, the C version of decimal nowStefan Krah2012-12-152-0/+52
| | | | | supports all None default values present in decimal.py. These values were largely undocumented.
* Make it clear that the pi function is modified for benchmarking purposes.Stefan Krah2012-09-301-2/+7
|
* Restore the benchmark order to avoid waiting for decimal.py if just theStefan Krah2012-09-251-3/+4
| | | | prec=9 test is used.
* Fix whitespace.Brett Cannon2012-09-251-1/+1
|
* Fix whitespace.Brett Cannon2012-09-251-18/+18
|
* Make the decimal bench file run under Python 2.7.Brett Cannon2012-09-251-18/+28
|
* Use zero bottom margin.Stefan Krah2012-08-221-3/+0
|
* In the 32-bit build, dec_hash() raised InvalidOperation if the operandStefan Krah2012-08-221-0/+45
| | | | | | had a coefficient with MAX_PREC=425000000 digits and a negative exponent. Increasing the context limits above the official values fixes the issue and is safe (in this case!).
* Update test script to Visual Studio 2010.Stefan Krah2012-06-252-42/+32
|
* Make the benchmark more fair for _decimal/decimal.py by setting context.precStefan Krah2012-06-241-6/+6
| | | | only once (float obviously doesn't set any context at all).
* Raise InvalidOperation if exponents of zeros are clamped during exactStefan Krah2012-04-051-0/+1
| | | | | conversion in the Decimal constructor. Exact here refers to the representation and not to the value (clamping does not change the value).
* Fix Overflow exception in the bignum factorial benchmark that is due toStefan Krah2012-04-011-1/+4
| | | | the recent change of the default value for context.Emax.
* Issue #7652: Integrate the decimal floating point libmpdec library to speedStefan Krah2012-03-218-0/+2654
up the decimal module. Performance gains of the new C implementation are between 12x and 80x, depending on the application.