diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2016-02-10 00:32:36 +0100 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2016-02-10 00:32:36 +0100 |
commit | fb613d3cd9513f283072e2792317a5874e148815 (patch) | |
tree | f4bdc19244f526ae9e3cddb86368158cc637ae10 /tests | |
parent | efd5c65b99a31992001a9581a41ec4627c4d94fa (diff) | |
download | factory-boy-fb613d3cd9513f283072e2792317a5874e148815.tar factory-boy-fb613d3cd9513f283072e2792317a5874e148815.tar.gz |
Fix "no FloatOperation test", invalid until PY3
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_fuzzy.py | 1 |
1 files changed, 1 insertions, 0 deletions
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) |