diff --git a/tests/utils_tests/models.py b/tests/utils_tests/models.py index 97e9a97ef8..866a37debc 100644 --- a/tests/utils_tests/models.py +++ b/tests/utils_tests/models.py @@ -4,14 +4,6 @@ from django.db import models class Category(models.Model): name = models.CharField(max_length=100) - def next(self): - return self - - -class Thing(models.Model): - name = models.CharField(max_length=100) - category = models.ForeignKey(Category, models.CASCADE) - class CategoryInfo(models.Model): category = models.OneToOneField(Category, models.CASCADE) diff --git a/tests/utils_tests/test_itercompat.py b/tests/utils_tests/test_itercompat.py deleted file mode 100644 index 02d3463370..0000000000 --- a/tests/utils_tests/test_itercompat.py +++ /dev/null @@ -1,11 +0,0 @@ -from django.test import TestCase - -from .models import Category, Thing - - -class TestIsIterator(TestCase): - def test_regression(self): - """This failed on Django 1.5/Py2.6 because category has a next method.""" - category = Category.objects.create(name='category') - Thing.objects.create(category=category) - Thing.objects.filter(category=category)