aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2011-02-17 11:17:58 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2011-02-17 11:17:58 -0500
commit75c189da1f796458887c83632511db20c5c66f43 (patch)
tree84ec586e944a50e062f46a733cabba2c890cdff7 /lib-python
parentFix a NameError. (diff)
downloadpypy-75c189da1f796458887c83632511db20c5c66f43.tar.gz
pypy-75c189da1f796458887c83632511db20c5c66f43.tar.bz2
pypy-75c189da1f796458887c83632511db20c5c66f43.zip
Fix tests checking the extension of .so files
Diffstat (limited to 'lib-python')
-rw-r--r--lib-python/modified-2.7.0/distutils/tests/test_build_ext.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib-python/modified-2.7.0/distutils/tests/test_build_ext.py b/lib-python/modified-2.7.0/distutils/tests/test_build_ext.py
index d14c5f6b10..46d1ab2319 100644
--- a/lib-python/modified-2.7.0/distutils/tests/test_build_ext.py
+++ b/lib-python/modified-2.7.0/distutils/tests/test_build_ext.py
@@ -292,7 +292,7 @@ class BuildExtTestCase(support.TempdirManager,
finally:
os.chdir(old_wd)
self.assert_(os.path.exists(so_file))
- self.assertEquals(os.path.splitext(so_file)[-1],
+ self.assertEquals(so_file[so_file.index(os.path.extsep):],
sysconfig.get_config_var('SO'))
so_dir = os.path.dirname(so_file)
self.assertEquals(so_dir, other_tmp_dir)
@@ -301,7 +301,7 @@ class BuildExtTestCase(support.TempdirManager,
cmd.run()
so_file = cmd.get_outputs()[0]
self.assert_(os.path.exists(so_file))
- self.assertEquals(os.path.splitext(so_file)[-1],
+ self.assertEquals(so_file[so_file.index(os.path.extsep):],
sysconfig.get_config_var('SO'))
so_dir = os.path.dirname(so_file)
self.assertEquals(so_dir, cmd.build_lib)