diff options
author | Anderson Resende <andersonresende86@gmail.com> | 2016-01-05 23:47:27 -0300 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-01-07 10:57:05 -0500 |
commit | b5f8c81ce18528ecf7cb4605dca864c961da9373 (patch) | |
tree | 9327e44fb58c8c63f66c9729ca4bc4393945f3ac /tests/basic | |
parent | b6433866682baac35a953e59298dff7f399ac49b (diff) | |
download | django-b5f8c81ce18528ecf7cb4605dca864c961da9373.tar.gz |
Fixed #26026 -- Fixed isinstance crash comparing EmptyQuerySet to non-QuerySet.
Diffstat (limited to 'tests/basic')
-rw-r--r-- | tests/basic/tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/basic/tests.py b/tests/basic/tests.py index c67f78926f..c334a8bfc6 100644 --- a/tests/basic/tests.py +++ b/tests/basic/tests.py @@ -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 |