diff options
author | Isaac Jurado <diptongo@gmail.com> | 2015-10-11 14:26:04 +0200 |
---|---|---|
committer | Isaac Jurado <diptongo@gmail.com> | 2015-10-14 19:54:12 +0200 |
commit | fe77bb3e66a7838b119e6b8ca92c2e0396ed84dd (patch) | |
tree | ebaf38db523250c447d61e52f03f068343f0e9ec /tests/test_numbers.py | |
parent | b6169be329e121111dc9c3242c3538ee3b0a3aaa (diff) | |
download | babel-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.py | 2 |
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): |