From fb613d3cd9513f283072e2792317a5874e148815 Mon Sep 17 00:00:00 2001 From: Raphaƫl Barrois Date: Wed, 10 Feb 2016 00:32:36 +0100 Subject: Fix "no FloatOperation test", invalid until PY3 --- tests/test_fuzzy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_fuzzy.py b/tests/test_fuzzy.py index d83f3dd..4c3873a 100644 --- a/tests/test_fuzzy.py +++ b/tests/test_fuzzy.py @@ -189,6 +189,7 @@ class FuzzyDecimalTestCase(unittest.TestCase): self.assertEqual(decimal.Decimal('8.001').quantize(decimal.Decimal(10) ** -3), res) + @unittest.skipIf(compat.PY2, "decimal.FloatOperation was added in Py3") def test_no_approximation(self): """We should not go through floats in our fuzzy calls unless actually needed.""" fuzz = fuzzy.FuzzyDecimal(0, 10) -- cgit v1.2.3