diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-03-10 09:16:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-10 09:16:28 +0100 |
commit | ba9a2b754452b542d3f472f0acce6f940911aced (patch) | |
tree | 3ef805503af0ff58dedba310ae18a0b1f14c8edd /tests/update | |
parent | 6f5dbe9dbe45b23b3befe4f1cd2ea13b6049ab96 (diff) | |
download | django-ba9a2b754452b542d3f472f0acce6f940911aced.tar.gz |
Refs #32508 -- Raised TypeError instead of using "assert" on unsupported operations for sliced querysets.
Diffstat (limited to 'tests/update')
-rw-r--r-- | tests/update/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/update/tests.py b/tests/update/tests.py index 588db40de6..0ba6fe43c3 100644 --- a/tests/update/tests.py +++ b/tests/update/tests.py @@ -130,7 +130,7 @@ class AdvancedTests(TestCase): """ method = DataPoint.objects.all()[:2].update msg = 'Cannot update a query once a slice has been taken.' - with self.assertRaisesMessage(AssertionError, msg): + with self.assertRaisesMessage(TypeError, msg): method(another_value='another thing') def test_update_respects_to_field(self): |