File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ def _extract_code_globals(co):
250
250
if co .co_consts :
251
251
for const in co .co_consts :
252
252
if isinstance (const , types .CodeType ):
253
- out_names |= _extract_code_globals (const )
253
+ out_names . update ( _extract_code_globals (const ) )
254
254
255
255
_extract_code_globals_cache [co ] = out_names
256
256
Original file line number Diff line number Diff line change @@ -2332,6 +2332,10 @@ def __type__(self):
2332
2332
o = MyClass ()
2333
2333
pickle_depickle (o , protocol = self .protocol )
2334
2334
2335
+ @pytest .mark .skipif (
2336
+ sys .version_info < (3 , 7 ),
2337
+ reason = "Determinism can only be guaranteed for Python 3.7+"
2338
+ )
2335
2339
def test_deterministic_pickle_bytes_for_function (self ):
2336
2340
# Ensure that functions with references to several global names are
2337
2341
# pickled to fixed bytes that do not depend on the PYTHONHASHSEED of
You can’t perform that action at this time.
0 commit comments