Skip to content

Commit d482988

Browse files
Clean up xpickle_worker.py.
1 parent 8a23399 commit d482988

File tree

1 file changed

+2
-60
lines changed

1 file changed

+2
-60
lines changed

Lib/test/xpickle_worker.py

Lines changed: 2 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@
66
import 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.
1411
test_mod_path = os.path.abspath(os.path.join(os.path.dirname(__file__),
1512
'picklecommon.py'))
1613
spec = importlib.util.spec_from_file_location('test.picklecommon', test_mod_path)
@@ -19,61 +16,6 @@
1916
sys.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-
7719
in_stream = sys.stdin.buffer
7820
out_stream = sys.stdout.buffer
7921

0 commit comments

Comments
 (0)