@@ -25,7 +25,6 @@ def exec_module(self, name):
25
25
self .assertEqual (module .__spec__ .origin , 'frozen' )
26
26
return module , stdout .getvalue ()
27
27
28
- @impl_detail ("GR-26392: add support for frozen modules" , graalvm = False )
29
28
def test_module (self ):
30
29
name = '__hello__'
31
30
module , output = self .exec_module (name )
@@ -35,7 +34,6 @@ def test_module(self):
35
34
self .assertEqual (output , 'Hello world!\n ' )
36
35
self .assertTrue (hasattr (module , '__spec__' ))
37
36
38
- @impl_detail ("GR-26392: add support for frozen modules" , graalvm = False )
39
37
def test_package (self ):
40
38
name = '__phello__'
41
39
module , output = self .exec_module (name )
@@ -48,7 +46,6 @@ def test_package(self):
48
46
expected = value ))
49
47
self .assertEqual (output , 'Hello world!\n ' )
50
48
51
- @impl_detail ("GR-26392: add support for frozen modules" , graalvm = False )
52
49
def test_lacking_parent (self ):
53
50
name = '__phello__.spam'
54
51
with util .uncache ('__phello__' ):
@@ -62,7 +59,6 @@ def test_lacking_parent(self):
62
59
expected = value ))
63
60
self .assertEqual (output , 'Hello world!\n ' )
64
61
65
- @impl_detail ("GR-26392: add support for frozen modules" , graalvm = False )
66
62
def test_module_repr (self ):
67
63
name = '__hello__'
68
64
module , output = self .exec_module (name )
@@ -72,7 +68,6 @@ def test_module_repr(self):
72
68
self .assertEqual (repr_str ,
73
69
"<module '__hello__' (frozen)>" )
74
70
75
- @impl_detail ("GR-26392: add support for frozen modules" , graalvm = False )
76
71
def test_module_repr_indirect (self ):
77
72
name = '__hello__'
78
73
module , output = self .exec_module (name )
@@ -82,7 +77,6 @@ def test_module_repr_indirect(self):
82
77
# No way to trigger an error in a frozen module.
83
78
test_state_after_failure = None
84
79
85
- @impl_detail ("GR-26392: add support for frozen modules" , graalvm = False )
86
80
def test_unloadable (self ):
87
81
assert self .machinery .FrozenImporter .find_module ('_not_real' ) is None
88
82
with self .assertRaises (ImportError ) as cm :
@@ -97,7 +91,6 @@ def test_unloadable(self):
97
91
98
92
class LoaderTests (abc .LoaderTests ):
99
93
100
- @impl_detail ("GR-26392: add support for frozen modules" , graalvm = False )
101
94
def test_module (self ):
102
95
with util .uncache ('__hello__' ), captured_stdout () as stdout :
103
96
with warnings .catch_warnings ():
@@ -112,7 +105,6 @@ def test_module(self):
112
105
self .assertEqual (stdout .getvalue (), 'Hello world!\n ' )
113
106
self .assertFalse (hasattr (module , '__file__' ))
114
107
115
- @impl_detail ("GR-26392: add support for frozen modules" , graalvm = False )
116
108
def test_package (self ):
117
109
with util .uncache ('__phello__' ), captured_stdout () as stdout :
118
110
with warnings .catch_warnings ():
@@ -131,7 +123,6 @@ def test_package(self):
131
123
self .assertEqual (stdout .getvalue (), 'Hello world!\n ' )
132
124
self .assertFalse (hasattr (module , '__file__' ))
133
125
134
- @impl_detail ("GR-26392: add support for frozen modules" , graalvm = False )
135
126
def test_lacking_parent (self ):
136
127
with util .uncache ('__phello__' , '__phello__.spam' ), \
137
128
captured_stdout () as stdout :
@@ -150,7 +141,6 @@ def test_lacking_parent(self):
150
141
self .assertEqual (stdout .getvalue (), 'Hello world!\n ' )
151
142
self .assertFalse (hasattr (module , '__file__' ))
152
143
153
- @impl_detail ("GR-26392: add support for frozen modules" , graalvm = False )
154
144
def test_module_reuse (self ):
155
145
with util .uncache ('__hello__' ), captured_stdout () as stdout :
156
146
with warnings .catch_warnings ():
@@ -161,7 +151,6 @@ def test_module_reuse(self):
161
151
self .assertEqual (stdout .getvalue (),
162
152
'Hello world!\n Hello world!\n ' )
163
153
164
- @impl_detail ("GR-26392: add support for frozen modules" , graalvm = False )
165
154
def test_module_repr (self ):
166
155
with util .uncache ('__hello__' ), captured_stdout ():
167
156
with warnings .catch_warnings ():
@@ -171,7 +160,6 @@ def test_module_repr(self):
171
160
self .assertEqual (repr_str ,
172
161
"<module '__hello__' (frozen)>" )
173
162
174
- @impl_detail ("GR-26392: add support for frozen modules" , graalvm = False )
175
163
def test_module_repr_indirect (self ):
176
164
with util .uncache ('__hello__' ), captured_stdout ():
177
165
module = self .machinery .FrozenImporter .load_module ('__hello__' )
@@ -181,7 +169,6 @@ def test_module_repr_indirect(self):
181
169
# No way to trigger an error in a frozen module.
182
170
test_state_after_failure = None
183
171
184
- @impl_detail ("GR-26392: add support for frozen modules" , graalvm = False )
185
172
def test_unloadable (self ):
186
173
assert self .machinery .FrozenImporter .find_module ('_not_real' ) is None
187
174
with self .assertRaises (ImportError ) as cm :
@@ -198,7 +185,6 @@ class InspectLoaderTests:
198
185
199
186
"""Tests for the InspectLoader methods for FrozenImporter."""
200
187
201
- @impl_detail ("GR-26392: add support for frozen modules" , graalvm = False )
202
188
def test_get_code (self ):
203
189
# Make sure that the code object is good.
204
190
name = '__hello__'
@@ -209,13 +195,11 @@ def test_get_code(self):
209
195
self .assertTrue (hasattr (mod , 'initialized' ))
210
196
self .assertEqual (stdout .getvalue (), 'Hello world!\n ' )
211
197
212
- @impl_detail ("GR-26392: add support for frozen modules" , graalvm = False )
213
198
def test_get_source (self ):
214
199
# Should always return None.
215
200
result = self .machinery .FrozenImporter .get_source ('__hello__' )
216
201
self .assertIsNone (result )
217
202
218
- @impl_detail ("GR-26392: add support for frozen modules" , graalvm = False )
219
203
def test_is_package (self ):
220
204
# Should be able to tell what is a package.
221
205
test_for = (('__hello__' , False ), ('__phello__' , True ),
@@ -224,7 +208,6 @@ def test_is_package(self):
224
208
result = self .machinery .FrozenImporter .is_package (name )
225
209
self .assertEqual (bool (result ), is_package )
226
210
227
- @impl_detail ("GR-26392: add support for frozen modules" , graalvm = False )
228
211
def test_failure (self ):
229
212
# Raise ImportError for modules that are not frozen.
230
213
for meth_name in ('get_code' , 'get_source' , 'is_package' ):
0 commit comments