|
|
23b3e9 |
diff -up Python-2.7.2/Lib/distutils/tests/test_build_ext.py.mark-tests-that-fail-in-rpmbuild Python-2.7.2/Lib/distutils/tests/test_build_ext.py
|
|
|
23b3e9 |
--- Python-2.7.2/Lib/distutils/tests/test_build_ext.py.mark-tests-that-fail-in-rpmbuild 2011-09-08 16:07:25.033834312 -0400
|
|
|
23b3e9 |
+++ Python-2.7.2/Lib/distutils/tests/test_build_ext.py 2011-09-08 17:43:15.656441082 -0400
|
|
|
23b3e9 |
@@ -330,6 +332,7 @@ class BuildExtTestCase(support.TempdirMa
|
|
|
23b3e9 |
self.assertEqual(lastdir, 'bar')
|
|
|
23b3e9 |
|
|
|
23b3e9 |
def test_ext_fullpath(self):
|
|
|
23b3e9 |
+ debug_ext = sysconfig.get_config_var("DEBUG_EXT")
|
|
|
23b3e9 |
ext = sysconfig.get_config_vars()['SO']
|
|
|
23b3e9 |
dist = Distribution()
|
|
|
23b3e9 |
cmd = build_ext(dist)
|
|
|
23b3e9 |
@@ -337,14 +340,14 @@ class BuildExtTestCase(support.TempdirMa
|
|
|
23b3e9 |
cmd.distribution.package_dir = {'': 'src'}
|
|
|
23b3e9 |
cmd.distribution.packages = ['lxml', 'lxml.html']
|
|
|
23b3e9 |
curdir = os.getcwd()
|
|
|
23b3e9 |
- wanted = os.path.join(curdir, 'src', 'lxml', 'etree' + ext)
|
|
|
23b3e9 |
+ wanted = os.path.join(curdir, 'src', 'lxml', 'etree' + debug_ext + ext)
|
|
|
23b3e9 |
path = cmd.get_ext_fullpath('lxml.etree')
|
|
|
23b3e9 |
self.assertEqual(wanted, path)
|
|
|
23b3e9 |
|
|
|
23b3e9 |
# building lxml.etree not inplace
|
|
|
23b3e9 |
cmd.inplace = 0
|
|
|
23b3e9 |
cmd.build_lib = os.path.join(curdir, 'tmpdir')
|
|
|
23b3e9 |
- wanted = os.path.join(curdir, 'tmpdir', 'lxml', 'etree' + ext)
|
|
|
23b3e9 |
+ wanted = os.path.join(curdir, 'tmpdir', 'lxml', 'etree' + debug_ext + ext)
|
|
|
23b3e9 |
path = cmd.get_ext_fullpath('lxml.etree')
|
|
|
23b3e9 |
self.assertEqual(wanted, path)
|
|
|
23b3e9 |
|
|
|
23b3e9 |
@@ -354,13 +357,13 @@ class BuildExtTestCase(support.TempdirMa
|
|
|
23b3e9 |
cmd.distribution.packages = ['twisted', 'twisted.runner.portmap']
|
|
|
23b3e9 |
path = cmd.get_ext_fullpath('twisted.runner.portmap')
|
|
|
23b3e9 |
wanted = os.path.join(curdir, 'tmpdir', 'twisted', 'runner',
|
|
|
23b3e9 |
- 'portmap' + ext)
|
|
|
23b3e9 |
+ 'portmap' + debug_ext + ext)
|
|
|
23b3e9 |
self.assertEqual(wanted, path)
|
|
|
23b3e9 |
|
|
|
23b3e9 |
# building twisted.runner.portmap inplace
|
|
|
23b3e9 |
cmd.inplace = 1
|
|
|
23b3e9 |
path = cmd.get_ext_fullpath('twisted.runner.portmap')
|
|
|
23b3e9 |
- wanted = os.path.join(curdir, 'twisted', 'runner', 'portmap' + ext)
|
|
|
23b3e9 |
+ wanted = os.path.join(curdir, 'twisted', 'runner', 'portmap' + debug_ext + ext)
|
|
|
23b3e9 |
self.assertEqual(wanted, path)
|
|
|
23b3e9 |
|
|
|
23b3e9 |
def test_build_ext_inplace(self):
|
|
|
23b3e9 |
@@ -373,8 +376,9 @@ class BuildExtTestCase(support.TempdirMa
|
|
|
23b3e9 |
cmd.distribution.package_dir = {'': 'src'}
|
|
|
23b3e9 |
cmd.distribution.packages = ['lxml', 'lxml.html']
|
|
|
23b3e9 |
curdir = os.getcwd()
|
|
|
23b3e9 |
+ debug_ext = sysconfig.get_config_var("DEBUG_EXT")
|
|
|
23b3e9 |
ext = sysconfig.get_config_var("SO")
|
|
|
23b3e9 |
- wanted = os.path.join(curdir, 'src', 'lxml', 'etree' + ext)
|
|
|
23b3e9 |
+ wanted = os.path.join(curdir, 'src', 'lxml', 'etree' + debug_ext + ext)
|
|
|
23b3e9 |
path = cmd.get_ext_fullpath('lxml.etree')
|
|
|
23b3e9 |
self.assertEqual(wanted, path)
|
|
|
23b3e9 |
|
|
|
23b3e9 |
@@ -412,10 +416,11 @@ class BuildExtTestCase(support.TempdirMa
|
|
|
23b3e9 |
dist = Distribution({'name': 'UpdateManager'})
|
|
|
23b3e9 |
cmd = build_ext(dist)
|
|
|
23b3e9 |
cmd.ensure_finalized()
|
|
|
23b3e9 |
+ debug_ext = sysconfig.get_config_var("DEBUG_EXT")
|
|
|
23b3e9 |
ext = sysconfig.get_config_var("SO")
|
|
|
23b3e9 |
ext_name = os.path.join('UpdateManager', 'fdsend')
|
|
|
23b3e9 |
ext_path = cmd.get_ext_fullpath(ext_name)
|
|
|
23b3e9 |
- wanted = os.path.join(cmd.build_lib, 'UpdateManager', 'fdsend' + ext)
|
|
|
23b3e9 |
+ wanted = os.path.join(cmd.build_lib, 'UpdateManager', 'fdsend' + debug_ext + ext)
|
|
|
23b3e9 |
self.assertEqual(ext_path, wanted)
|
|
|
23b3e9 |
|
|
|
21eb11 |
@unittest.skipUnless(sys.platform == 'win32', 'these tests require Windows')
|