Skip to content

Commit 01626e1

Browse files
committed
gh-150818: Skip new test where threading is unavailable
WASI and Emscripten have no working threading, so guard the regression test with requires_working_threading(), matching the other thread-using tests in test_logging.
1 parent 6b62522 commit 01626e1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/test/test_logging.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4269,6 +4269,7 @@ def test_set_log_record_factory(self):
42694269
man.setLogRecordFactory(expected)
42704270
self.assertEqual(man.logRecordFactory, expected)
42714271

4272+
@threading_helper.requires_working_threading()
42724273
def test_getLogger_fast_path_never_returns_unwired_logger(self):
42734274
# getLogger()'s lock-free fast path returns a logger straight out of
42744275
# loggerDict, so a logger must be published there only after

0 commit comments

Comments
 (0)