diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-11-22 20:04:19 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-11-22 20:04:19 -0500 |
commit | 6b79d2ea7951abc2bb6083b541db0fbf71590dd3 (patch) | |
tree | 4c1edc6856fe743b44e69c1f70750d469b642ed5 /test/requirements.py | |
parent | f112dc1d533033f19186eb65227aba1660d03102 (diff) | |
download | sqlalchemy-6b79d2ea7951abc2bb6083b541db0fbf71590dd3.tar.gz |
- The precision used when coercing a returned floating point value to
Python ``Decimal`` via string is now configurable. The
flag ``decimal_return_scale`` is now supported by all :class:`.Numeric`
and :class:`.Float` types, which will ensure this many digits are taken
from the native floating point value when it is converted to string.
If not present, the type will make use of the value of ``.scale``, if
the type supports this setting and it is non-None. Otherwise the original
default length of 10 is used. [ticket:2867]
Diffstat (limited to 'test/requirements.py')
-rw-r--r-- | test/requirements.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/requirements.py b/test/requirements.py index 4ed0a9289..b6fca06ed 100644 --- a/test/requirements.py +++ b/test/requirements.py @@ -541,6 +541,13 @@ class DefaultRequirements(SuiteRequirements): ) @property + def precision_generic_float_type(self): + """target backend will return native floating point numbers with at + least seven decimal places when using the generic Float type.""" + + return fails_if('mysql', 'mysql FLOAT type only returns 4 decimals') + + @property def floats_to_four_decimals(self): return fails_if("mysql+oursql", "Floating point error") |