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 1111
1212
1313class 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 ])
You can’t perform that action at this time.
0 commit comments