summaryrefslogtreecommitdiff
path: root/tests/modeltests/aggregation/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modeltests/aggregation/models.py')
-rw-r--r--tests/modeltests/aggregation/models.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/modeltests/aggregation/models.py b/tests/modeltests/aggregation/models.py
index 74e43b8cc6..f50abe651b 100644
--- a/tests/modeltests/aggregation/models.py
+++ b/tests/modeltests/aggregation/models.py
@@ -1,11 +1,6 @@
# coding: utf-8
from django.db import models
-try:
- sorted
-except NameError:
- from django.utils.itercompat import sorted # For Python 2.3
-
class Author(models.Model):
name = models.CharField(max_length=100)
age = models.IntegerField()
@@ -48,10 +43,7 @@ class Store(models.Model):
# Different backends and numbers.
__test__ = {'API_TESTS': """
>>> from django.core import management
->>> try:
-... from decimal import Decimal
-... except:
-... from django.utils._decimal import Decimal
+>>> from decimal import Decimal
>>> from datetime import date
# Reset the database representation of this app.