mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #32508 -- Raised TypeError instead of using "assert" on unsupported operations for sliced querysets.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user