Skip to content

Commit ce58afb

Browse files
authored
gh-127146: Emscripten: Fix test failure due to missing os.link (#135626)
Check for existence of os.link, rather than assuming it exists.
1 parent 2a49c54 commit ce58afb

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)