Skip to content

Commit 8338ba5

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a8476a3 commit 8338ba5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

polymorphic/tests/test_query_translate.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111

1212

1313
class QueryTranslateTests(TestCase):
14-
1514
def test_translate_with_not_pickleable_query(self):
1615
"""
1716
In some cases, Django may attacha _thread object to the query and we
18-
will get the following when we try to deepcopy inside of
17+
will get the following when we try to deepcopy inside of
1918
translate_polymorphic_filter_definitions_in_args:
2019
2120
TypeError: cannot pickle '_thread.lock' object
@@ -48,6 +47,6 @@ def test_translate_with_not_pickleable_query(self):
4847

4948
# I know this doesn't make sense to pass as a Q(), but
5049
# I haven't found another way to trigger the copy.deepcopy failing.
51-
q = Q(blog__info='blog info') | Q(blog__info=threading.Lock())
50+
q = Q(blog__info="blog info") | Q(blog__info=threading.Lock())
5251

5352
translate_polymorphic_filter_definitions_in_args(Bottom, args=[q])

0 commit comments

Comments
 (0)