[pypy-svn] pypy default: Fix tests checking the extension of .so files
alex_gaynor
commits-noreply at bitbucket.org
Thu Feb 17 17:18:11 CET 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch:
Changeset: r42115:07bdbec7a699
Date: 2011-02-17 11:17 -0500
http://bitbucket.org/pypy/pypy/changeset/07bdbec7a699/
Log: Fix tests checking the extension of .so files
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
--- 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 @@
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 @@
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)
More information about the Pypy-commit
mailing list