classification
Title: test_sysconfig failure: build a 32-bit Python a 64-bit OS
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.2
process
Status: pending Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: eric.araujo, iritkatriel, jyasskin, pitrou, rpetrov, tarek
Priority: normal Keywords:

Created on 2010-07-31 15:53 by pitrou, last changed 2021-11-26 15:48 by iritkatriel.

Messages (4)
msg112162 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2010-07-31 15:53
When I use the following configuration (in order to build a 32-bit Python a 64-bit OS):
  ./configure --with-computed-gotos CFLAGS=-m32 LDFLAGS=-m32

I then get a failure in test_sysconfig:

======================================================================
FAIL: test_ldshared_value (test.test_sysconfig.TestSysConfig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/antoine/py3k/m32/Lib/test/test_sysconfig.py", line 285, in test_ldshared_value
    self.assertIn(ldflags, ldshared)
AssertionError: '-m32 ' not found in 'gcc -pthread -shared'
msg138607 - (view) Author: √Čric Araujo (eric.araujo) * (Python committer) Date: 2011-06-18 21:43
I wonder if this is similar to #9437.
msg138758 - (view) Author: Roumen Petrov (rpetrov) * Date: 2011-06-20 20:26
The test case is bogus. Until is removed you could use CC='gcc -m32'.
msg407058 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-11-26 15:48
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@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')
History
Date User Action Args
2021-11-26 15:48:55iritkatrielsetstatus: open -> pending
nosy: + iritkatriel
messages: + msg407058

2011-06-20 20:26:51rpetrovsetnosy: + rpetrov
messages: + msg138758
2011-06-19 22:28:47vstinnersettitle: test_sysconfig failure -> test_sysconfig failure: build a 32-bit Python a 64-bit OS
2011-06-18 21:43:28eric.araujosetmessages: + msg138607
2011-03-01 11:03:09eric.araujosetnosy: + eric.araujo
2010-07-31 15:53:10pitroucreate