Half-assed use of User model raises exceptions in 1.9b1

This commit is contained in:
jarekwg 2015-10-29 08:12:02 +11:00
parent bbad2b7b47
commit 201aa3bf30

View file

@ -2,9 +2,9 @@ from __future__ import unicode_literals
from datetime import datetime, timedelta
try:
from unittest import skipUnless
from unittest import skipIf, skipUnless
except ImportError: # Python 2.6
from django.utils.unittest import skipUnless
from django.utils.unittest import skipIf, skipUnless
import django
from django.db import models
@ -867,6 +867,8 @@ class InheritanceManagerUsingModelsTests(TestCase):
])
@skipIf(
django.VERSION == (1, 9, 0, 'beta', 1), "Something shonky in 1.9b1 when using Auth like this")
def test_select_subclass_invalid_related_model(self):
"""
Confirming that giving a stupid model doesn't work.