File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11
11
12
12
13
13
class QueryTranslateTests (TestCase ):
14
-
15
14
def test_translate_with_not_pickleable_query (self ):
16
15
"""
17
16
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
19
18
translate_polymorphic_filter_definitions_in_args:
20
19
21
20
TypeError: cannot pickle '_thread.lock' object
@@ -48,6 +47,6 @@ def test_translate_with_not_pickleable_query(self):
48
47
49
48
# I know this doesn't make sense to pass as a Q(), but
50
49
# 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 ())
52
51
53
52
translate_polymorphic_filter_definitions_in_args (Bottom , args = [q ])
You can’t perform that action at this time.
0 commit comments