[Python-checkins] distutils2: Synchronize with stdlib (changes related to PEP 3149)
tarek.ziade
python-checkins at python.org
Sun Sep 19 10:20:23 CEST 2010
tarek.ziade pushed 4c634fafc9a4 to distutils2:
http://hg.python.org/distutils2/rev/4c634fafc9a4
changeset: 666:4c634fafc9a4
user: ?ric Araujo <merwok at netwok.org>
date: Mon Sep 06 06:39:38 2010 +0200
summary: Synchronize with stdlib (changes related to PEP 3149)
files: src/distutils2/tests/test_build_ext.py
diff --git a/src/distutils2/tests/test_build_ext.py b/src/distutils2/tests/test_build_ext.py
--- a/src/distutils2/tests/test_build_ext.py
+++ b/src/distutils2/tests/test_build_ext.py
@@ -280,8 +280,8 @@
finally:
os.chdir(old_wd)
self.assertTrue(os.path.exists(so_file))
- self.assertEqual(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.assertEqual(so_dir, other_tmp_dir)
@@ -289,8 +289,7 @@
cmd.run()
so_file = cmd.get_outputs()[0]
self.assertTrue(os.path.exists(so_file))
- self.assertEqual(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.assertEqual(so_dir, cmd.build_lib)
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list