https://github.com/python/cpython/commit/a61bd7af6e53fe5189c6c9a5a6f98bc0a74f68f3 commit: a61bd7af6e53fe5189c6c9a5a6f98bc0a74f68f3 branch: 3.14 author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com> committer: freakboy3742 <russ...@keith-magee.com> date: 2025-06-18T04:03:32Z summary:
[3.14] gh-127146: Emscripten: Fix test failure due to missing os.link (GH-135626) (#135652) Check for existence of os.link, rather than assuming it exists. (cherry picked from commit ce58afb400672aeec79f2017ab99acbbc65cb4ab) Co-authored-by: Hood Chatham <roberthoodchat...@gmail.com> files: M Lib/test/test_inspect/test_inspect.py diff --git a/Lib/test/test_inspect/test_inspect.py b/Lib/test/test_inspect/test_inspect.py index 44f7a54bbf1c1e..5e1fcc1d3be989 100644 --- a/Lib/test/test_inspect/test_inspect.py +++ b/Lib/test/test_inspect/test_inspect.py @@ -5875,9 +5875,9 @@ def test_operator_module_has_signatures(self): self._test_module_has_signatures(operator) def test_os_module_has_signatures(self): - unsupported_signature = {'chmod', 'link', 'utime'} + unsupported_signature = {'chmod', 'utime'} unsupported_signature |= {name for name in - ['get_terminal_size', 'posix_spawn', 'posix_spawnp', + ['get_terminal_size', 'link', 'posix_spawn', 'posix_spawnp', 'register_at_fork', 'startfile'] if hasattr(os, name)} self._test_module_has_signatures(os, unsupported_signature=unsupported_signature) _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: arch...@mail-archive.com