diff options
author | 2011-02-17 11:17:58 -0500 | |
---|---|---|
committer | 2011-02-17 11:17:58 -0500 | |
commit | 75c189da1f796458887c83632511db20c5c66f43 (patch) | |
tree | 84ec586e944a50e062f46a733cabba2c890cdff7 /lib-python | |
parent | Fix a NameError. (diff) | |
download | pypy-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.py | 4 |
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) |