]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-127146: Emscripten: Fix test failure due to missing os.link (GH-135626...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 18 Jun 2025 04:03:32 +0000 (06:03 +0200)
committerGitHub <noreply@github.com>
Wed, 18 Jun 2025 04:03:32 +0000 (04:03 +0000)
Check for existence of os.link, rather than assuming it exists.
(cherry picked from commit ce58afb400672aeec79f2017ab99acbbc65cb4ab)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Lib/test/test_inspect/test_inspect.py

index 44f7a54bbf1c1ed6a75002b6ce2b3e2273af6dbc..5e1fcc1d3be989647424bd42bd65a2b6b937055c 100644 (file)
@@ -5875,9 +5875,9 @@ class TestSignatureDefinitions(unittest.TestCase):
         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)