Skip to content

Commit a61bd7a

Browse files
[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 ce58afb) Co-authored-by: Hood Chatham <[email protected]>
1 parent bf189d7 commit a61bd7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_inspect/test_inspect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5875,9 +5875,9 @@ def test_operator_module_has_signatures(self):
58755875
self._test_module_has_signatures(operator)
58765876

58775877
def test_os_module_has_signatures(self):
5878-
unsupported_signature = {'chmod', 'link', 'utime'}
5878+
unsupported_signature = {'chmod', 'utime'}
58795879
unsupported_signature |= {name for name in
5880-
['get_terminal_size', 'posix_spawn', 'posix_spawnp',
5880+
['get_terminal_size', 'link', 'posix_spawn', 'posix_spawnp',
58815881
'register_at_fork', 'startfile']
58825882
if hasattr(os, name)}
58835883
self._test_module_has_signatures(os, unsupported_signature=unsupported_signature)

0 commit comments

Comments
 (0)