Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from functools import reduce
import operator
import re
from pickle import PicklingError
import platform
import unittest
from unittest import mock
Expand Down Expand Up @@ -659,7 +660,7 @@ def test_366(self):
def test_385(self):
Client.objects.create(name='Client Name')

with self.assertRaisesRegex(AttributeError, "local object"):
with self.assertRaisesRegex((AttributeError, PicklingError), "local object"):
Client.objects.filter(name='Client Name').cache().first()

invalidate_model(Client)
Expand Down
Loading