gh-127146: Emscripten: Fix test failure due to missing os.link (#135626) · python/cpython@ce58afb

GitHub

Original file line numberDiff line numberDiff line change@@ -5875,9 +5875,9 @@ def test_operator_module_has_signatures(self):

58755875self._test_module_has_signatures(operator)

5876587658775877deftest_os_module_has_signatures(self):

5878-unsupported_signature= {'chmod', 'link', 'utime'}

5878+unsupported_signature= {'chmod', 'utime'}

58795879unsupported_signature|= {namefornamein

5880- ['get_terminal_size', 'posix_spawn', 'posix_spawnp',

5880+ ['get_terminal_size', 'link', 'posix_spawn', 'posix_spawnp',

58815881'register_at_fork', 'startfile']

58825882ifhasattr(os, name)}

58835883self._test_module_has_signatures(os, unsupported_signature=unsupported_signature)