Skip to content

Commit 638c8ab

Browse files
committed
mark hanging/failing tests
1 parent 40b0a55 commit 638c8ab

File tree

5 files changed

+20
-11
lines changed

5 files changed

+20
-11
lines changed

Lib/importlib/metadata/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ def name(self):
5555
(name,) = self.args
5656
return name
5757

58+
# TODO: RUSTPYTHON; the entire setter is added to avoid errors
59+
@name.setter
60+
def name(self, value):
61+
import sys
62+
sys.stderr.write("set value to PackageNotFoundError ignored\n")
63+
5864

5965
class Sectioned:
6066
"""

Lib/test/test_importlib/source/test_file_loader.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,6 @@ def test_unloadable(self):
238238
warnings.simplefilter('ignore', DeprecationWarning)
239239
loader.load_module('bad name')
240240

241-
# TODO: RUSTPYTHON
242-
@unittest.expectedFailure
243241
@util.writes_bytecode_files
244242
def test_checked_hash_based_pyc(self):
245243
with util.create_modules('_temp') as mapping:
@@ -271,8 +269,6 @@ def test_checked_hash_based_pyc(self):
271269
data[8:16],
272270
)
273271

274-
# TODO: RUSTPYTHON
275-
@unittest.expectedFailure
276272
@util.writes_bytecode_files
277273
def test_overridden_checked_hash_based_pyc(self):
278274
with util.create_modules('_temp') as mapping, \
@@ -298,8 +294,6 @@ def test_overridden_checked_hash_based_pyc(self):
298294
loader.exec_module(mod)
299295
self.assertEqual(mod.state, 'old')
300296

301-
# TODO: RUSTPYTHON
302-
@unittest.expectedFailure
303297
@util.writes_bytecode_files
304298
def test_unchecked_hash_based_pyc(self):
305299
with util.create_modules('_temp') as mapping:
@@ -330,8 +324,6 @@ def test_unchecked_hash_based_pyc(self):
330324
data[8:16],
331325
)
332326

333-
# TODO: RUSTPYTHON
334-
@unittest.expectedFailure
335327
@util.writes_bytecode_files
336328
def test_overridden_unchecked_hash_based_pyc(self):
337329
with util.create_modules('_temp') as mapping, \

Lib/test/test_importlib/test_locks.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,10 @@ def test_all_locks(self):
138138
self.bootstrap._module_locks)
139139

140140

141-
(Frozen_LifetimeTests,
142-
Source_LifetimeTests
143-
) = test_util.test_both(LifetimeTests, init=init)
141+
# TODO: RUSTPYTHON
142+
# (Frozen_LifetimeTests,
143+
# Source_LifetimeTests
144+
# ) = test_util.test_both(LifetimeTests, init=init)
144145

145146

146147
def setUpModule():

Lib/test/test_importlib/test_metadata_api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def test_retrieves_version_of_distinfo_pkg(self):
4545
assert isinstance(pkg_version, str)
4646
assert re.match(self.version_pattern, pkg_version)
4747

48+
# TODO: RUSTPYTHON
4849
def test_for_name_does_not_exist(self):
4950
with self.assertRaises(PackageNotFoundError):
5051
distribution('does-not-exist')
@@ -172,6 +173,8 @@ def test_entry_points_groups_get(self):
172173
entry_points().get('entries', 'default') == entry_points()['entries']
173174
entry_points().get('missing', ()) == ()
174175

176+
# TODO: RUSTPYTHON
177+
@unittest.expectedFailure
175178
def test_entry_points_allows_no_attributes(self):
176179
ep = entry_points().select(group='entries', name='main')
177180
with self.assertRaises(AttributeError):

Lib/test/test_importlib/test_threaded_import.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,13 @@ def check_parallel_module_init(self, mock_os):
139139
if verbose:
140140
print("OK.")
141141

142+
# TODO: RUSTPYTHON
143+
@unittest.expectedFailure
142144
def test_parallel_module_init(self):
143145
self.check_parallel_module_init()
144146

147+
# TODO: RUSTPYTHON
148+
@unittest.expectedFailure
145149
def test_parallel_meta_path(self):
146150
finder = Finder()
147151
sys.meta_path.insert(0, finder)
@@ -152,6 +156,8 @@ def test_parallel_meta_path(self):
152156
finally:
153157
sys.meta_path.remove(finder)
154158

159+
# TODO: RUSTPYTHON
160+
@unittest.expectedFailure
155161
def test_parallel_path_hooks(self):
156162
# Here the Finder instance is only used to check concurrent calls
157163
# to path_hook().
@@ -245,6 +251,7 @@ def target():
245251
__import__(TESTFN)
246252
del sys.modules[TESTFN]
247253

254+
@unittest.skip("TODO: RUSTPYTHON; hang")
248255
def test_concurrent_futures_circular_import(self):
249256
# Regression test for bpo-43515
250257
fn = os.path.join(os.path.dirname(__file__),

0 commit comments

Comments
 (0)