summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_dates.py1
-rw-r--r--tests/test_numbers.py6
2 files changed, 2 insertions, 5 deletions
diff --git a/tests/test_dates.py b/tests/test_dates.py
index 8ef3591..9d559ae 100644
--- a/tests/test_dates.py
+++ b/tests/test_dates.py
@@ -13,7 +13,6 @@
import calendar
from datetime import date, datetime, time, timedelta
-import doctest
import new
import unittest
diff --git a/tests/test_numbers.py b/tests/test_numbers.py
index 00ceca1..9a0caf2 100644
--- a/tests/test_numbers.py
+++ b/tests/test_numbers.py
@@ -12,10 +12,8 @@
# history and logs, available at http://babel.edgewall.org/log/.
from decimal import Decimal
-import doctest
import unittest
import pytest
-import sys
from babel import numbers
@@ -244,8 +242,8 @@ def test_format_scientific():
def test_parse_number():
- assert numbers.parse_number('1,099', locale='en_US') == 1099L
- assert numbers.parse_number('1.099', locale='de_DE') == 1099L
+ assert numbers.parse_number('1,099', locale='en_US') == 1099
+ assert numbers.parse_number('1.099', locale='de_DE') == 1099
with pytest.raises(numbers.NumberFormatError) as excinfo:
numbers.parse_number('1.099,98', locale='de')