1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Refs #20094 -- Removed obsolete tests/utils_tests/test_itercompat.py

The is_iterator() function was removed in 2456ffa42c.
This commit is contained in:
Tim Graham 2017-04-26 10:54:06 -04:00 committed by GitHub
parent 8f50ca11eb
commit 309c10c2cb
2 changed files with 0 additions and 19 deletions

View File

@ -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)

View File

@ -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)