File tree Expand file tree Collapse file tree 1 file changed +2
-60
lines changed
Expand file tree Collapse file tree 1 file changed +2
-60
lines changed Original file line number Diff line number Diff line change 66import sys
77
88
9- # This allows the xpickle worker to import pickletester.py, which it needs
10- # since some of the pickle objects hold references to pickletester.py.
11- # Also provides the test library over the platform's native one since
12- # pickletester requires some test.support functions (such as os_helper)
13- # which are not available in versions below Python 3.10.
9+ # This allows the xpickle worker to import picklecommon.py, which it needs
10+ # since some of the pickle objects hold references to picklecommon.py.
1411test_mod_path = os .path .abspath (os .path .join (os .path .dirname (__file__ ),
1512 'picklecommon.py' ))
1613spec = importlib .util .spec_from_file_location ('test.picklecommon' , test_mod_path )
1916sys .modules ['test.picklecommon' ] = test_module
2017
2118
22- # To unpickle certain objects, the structure of the class needs to be known.
23- # These classes are mostly copies from pickletester.py.
24-
25- class Nested :
26- class A :
27- class B :
28- class C :
29- pass
30- class C :
31- pass
32-
33- class D (C ):
34- pass
35-
36- class E (C ):
37- pass
38-
39- class H (object ):
40- pass
41-
42- class K (object ):
43- pass
44-
45- class Subclass (tuple ):
46- class Nested (str ):
47- pass
48-
49- class PyMethodsTest :
50- @staticmethod
51- def cheese ():
52- pass
53-
54- @classmethod
55- def wine (cls ):
56- pass
57-
58- def biscuits (self ):
59- pass
60-
61- class Nested :
62- "Nested class"
63- @staticmethod
64- def ketchup ():
65- pass
66- @classmethod
67- def maple (cls ):
68- pass
69- def pie (self ):
70- pass
71-
72-
73- class Recursive :
74- pass
75-
76-
7719in_stream = sys .stdin .buffer
7820out_stream = sys .stdout .buffer
7921
You can’t perform that action at this time.
0 commit comments