summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2010-09-03 18:30:30 (GMT)
committerBarry Warsaw <barry@python.org>2010-09-03 18:30:30 (GMT)
commit35f3a2cbeb5a2aabeb83d5e451e9560fcd288029 (patch)
tree3f64b1e1112301942579512e5f8de4e3f2f983c5 /Lib/distutils
parente4ea994f20a7fb1d505fca48295a196645dce9b6 (diff)
downloadcpython-35f3a2cbeb5a2aabeb83d5e451e9560fcd288029.zip
cpython-35f3a2cbeb5a2aabeb83d5e451e9560fcd288029.tar.gz
cpython-35f3a2cbeb5a2aabeb83d5e451e9560fcd288029.tar.bz2
PEP 3149 is accepted.
http://mail.python.org/pipermail/python-dev/2010-September/103408.html
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/tests/test_build_ext.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/distutils/tests/test_build_ext.py b/Lib/distutils/tests/test_build_ext.py
index b7cdc20..52479d7 100644
--- a/Lib/distutils/tests/test_build_ext.py
+++ b/Lib/distutils/tests/test_build_ext.py
@@ -323,8 +323,8 @@ class BuildExtTestCase(TempdirManager,
finally:
os.chdir(old_wd)
self.assertTrue(os.path.exists(so_file))
- self.assertEquals(os.path.splitext(so_file)[-1],
- sysconfig.get_config_var('SO'))
+ so_ext = sysconfig.get_config_var('SO')
+ self.assertTrue(so_file.endswith(so_ext))
so_dir = os.path.dirname(so_file)
self.assertEquals(so_dir, other_tmp_dir)
@@ -333,8 +333,7 @@ class BuildExtTestCase(TempdirManager,
cmd.run()
so_file = cmd.get_outputs()[0]
self.assertTrue(os.path.exists(so_file))
- self.assertEquals(os.path.splitext(so_file)[-1],
- sysconfig.get_config_var('SO'))
+ self.assertTrue(so_file.endswith(so_ext))
so_dir = os.path.dirname(so_file)
self.assertEquals(so_dir, cmd.build_lib)