mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Fixed #26026 -- Fixed isinstance crash comparing EmptyQuerySet to non-QuerySet.
This commit is contained in:
parent
b643386668
commit
b5f8c81ce1
2 changed files with 2 additions and 1 deletions
|
@ -367,6 +367,7 @@ class ModelTest(TestCase):
|
|||
with self.assertRaises(TypeError):
|
||||
EmptyQuerySet()
|
||||
self.assertIsInstance(Article.objects.none(), EmptyQuerySet)
|
||||
self.assertFalse(isinstance('', EmptyQuerySet))
|
||||
|
||||
def test_emptyqs_values(self):
|
||||
# test for #15959
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue