Commits

Mike Bayer committed 819ad89

- add an exclusion for "floats to four decimals", backported from 0.9 and applies to
firebird

Comments (0)

Files changed (2)

lib/sqlalchemy/testing/requirements.py

         return exclusions.closed()
 
     @property
+    def floats_to_four_decimals(self):
+        """target backend can return a floating-point number with four
+        significant digits (such as 15.7563) accurately
+        (i.e. without FP inaccuracies, such as 15.75629997253418).
+
+        """
+        return exclusions.open()
+
+    @property
     def text_type(self):
         """Target database must support an unbounded Text() "
         "type such as TEXT or CLOB"""

lib/sqlalchemy/testing/suite/test_types.py

             [15.7563, None],
         )
 
+    @testing.requires.floats_to_four_decimals
     def test_float_as_decimal(self):
         self._do_test(
             Float(precision=8, asdecimal=True),