summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-07-10 09:10:33 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-07-10 09:10:33 (GMT)
commit8c40001175f354b6e05d38a7f403afb5686c6013 (patch)
tree0cb8fa85d3d7dfbbcc95a31c81a98088dcf93e30 /Lib/distutils
parentce32eb7406baf7a51f7764a7c6ce245dd99dabe9 (diff)
downloadcpython-8c40001175f354b6e05d38a7f403afb5686c6013.zip
cpython-8c40001175f354b6e05d38a7f403afb5686c6013.tar.gz
cpython-8c40001175f354b6e05d38a7f403afb5686c6013.tar.bz2
Fixed #6455 (the test shall use pyd files under win32, rather than so files)
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/tests/test_build_ext.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/distutils/tests/test_build_ext.py b/Lib/distutils/tests/test_build_ext.py
index 9356ff8..4c09dd8 100644
--- a/Lib/distutils/tests/test_build_ext.py
+++ b/Lib/distutils/tests/test_build_ext.py
@@ -362,6 +362,7 @@ class BuildExtTestCase(support.TempdirManager,
self.assertEquals(lastdir, 'bar')
def test_ext_fullpath(self):
+ ext = sysconfig.get_config_vars()['SO']
# building lxml.etree inplace
#etree_c = os.path.join(self.tmp_dir, 'lxml.etree.c')
#etree_ext = Extension('lxml.etree', [etree_c])
@@ -372,14 +373,14 @@ class BuildExtTestCase(support.TempdirManager,
cmd.distribution.package_dir = {'': 'src'}
cmd.distribution.packages = ['lxml', 'lxml.html']
curdir = os.getcwd()
- wanted = os.path.join(curdir, 'src', 'lxml', 'etree.so')
+ wanted = os.path.join(curdir, 'src', 'lxml', 'etree' + ext)
path = cmd.get_ext_fullpath('lxml.etree')
self.assertEquals(wanted, path)
# building lxml.etree not inplace
cmd.inplace = 0
cmd.build_lib = os.path.join(curdir, 'tmpdir')
- wanted = os.path.join(curdir, 'tmpdir', 'lxml', 'etree.so')
+ wanted = os.path.join(curdir, 'tmpdir', 'lxml', 'etree' + ext)
path = cmd.get_ext_fullpath('lxml.etree')
self.assertEquals(wanted, path)
@@ -389,13 +390,13 @@ class BuildExtTestCase(support.TempdirManager,
cmd.distribution.packages = ['twisted', 'twisted.runner.portmap']
path = cmd.get_ext_fullpath('twisted.runner.portmap')
wanted = os.path.join(curdir, 'tmpdir', 'twisted', 'runner',
- 'portmap.so')
+ 'portmap' + ext)
self.assertEquals(wanted, path)
# building twisted.runner.portmap inplace
cmd.inplace = 1
path = cmd.get_ext_fullpath('twisted.runner.portmap')
- wanted = os.path.join(curdir, 'twisted', 'runner', 'portmap.so')
+ wanted = os.path.join(curdir, 'twisted', 'runner', 'portmap' + ext)
self.assertEquals(wanted, path)
def test_compiler_deprecation_warning(self):