summaryrefslogtreecommitdiff
path: root/tests/test_numbers.py
diff options
context:
space:
mode:
authorIsaac Jurado <diptongo@gmail.com>2015-10-11 14:26:04 +0200
committerIsaac Jurado <diptongo@gmail.com>2015-10-14 19:54:12 +0200
commitfe77bb3e66a7838b119e6b8ca92c2e0396ed84dd (patch)
treeebaf38db523250c447d61e52f03f068343f0e9ec /tests/test_numbers.py
parentb6169be329e121111dc9c3242c3538ee3b0a3aaa (diff)
downloadbabel-fe77bb3e66a7838b119e6b8ca92c2e0396ed84dd.tar.gz
tests: Use the automatically chosen Decimal class
Now that the babel._compat module can automatically select a faster decimal implementation if available, be more consistent across the rest of the code when dealing with Decimal instances.
Diffstat (limited to 'tests/test_numbers.py')
-rw-r--r--tests/test_numbers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_numbers.py b/tests/test_numbers.py
index 0d8fa00..f042833 100644
--- a/tests/test_numbers.py
+++ b/tests/test_numbers.py
@@ -11,13 +11,13 @@
# individuals. For the exact contribution history, see the revision
# history and logs, available at http://babel.edgewall.org/log/.
-from decimal import Decimal
import unittest
import pytest
from datetime import date
from babel import numbers
+from babel._compat import Decimal
class FormatDecimalTestCase(unittest.TestCase):