[issue9436] test_sysconfig failure: build a 32-bit Python a 64-bit OS

Irit Katriel report at bugs.python.org
Fri Nov 26 10:48:55 EST 2021


Irit Katriel <iritkatriel at gmail.com> added the comment:

This test is disabled when platform == "win32". Does that cover this case or does it need to be disabled for platform == "win64" as well?


commit db902ac0b4df295bd90109852c1abd05da831b81
Author: Brian Curtin <brian.curtin at gmail.com>
Date:   Thu Jul 22 15:38:28 2010 +0000

    Skip this test as it doesn't apply to Windows. It was added for
    #9189 for some GCC flags.

diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py
index 428379c3c3..053859238d 100644
--- a/Lib/test/test_sysconfig.py
+++ b/Lib/test/test_sysconfig.py
@@ -277,6 +277,7 @@ def test_main(self):
             _main()
         self.assertTrue(len(output.getvalue().split('\n')) > 0)
 
+    @unittest.skipIf(sys.platform == "win32", "Does not apply to Windows")
     def test_ldshared_value(self):
         ldflags = sysconfig.get_config_var('LDFLAGS')
         ldshared = sysconfig.get_config_var('LDSHARED')

----------
nosy: +iritkatriel
status: open -> pending

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue9436>
_______________________________________


More information about the Python-bugs-list mailing list