Commit b202a1a2 authored by Barry Warsaw's avatar Barry Warsaw
parent 36cae28e
...@@ -323,8 +323,8 @@ class BuildExtTestCase(TempdirManager, ...@@ -323,8 +323,8 @@ class BuildExtTestCase(TempdirManager,
finally: finally:
os.chdir(old_wd) os.chdir(old_wd)
self.assertTrue(os.path.exists(so_file)) self.assertTrue(os.path.exists(so_file))
self.assertEquals(os.path.splitext(so_file)[-1], so_ext = sysconfig.get_config_var('SO')
sysconfig.get_config_var('SO')) self.assertTrue(so_file.endswith(so_ext))
so_dir = os.path.dirname(so_file) so_dir = os.path.dirname(so_file)
self.assertEquals(so_dir, other_tmp_dir) self.assertEquals(so_dir, other_tmp_dir)
...@@ -333,8 +333,7 @@ class BuildExtTestCase(TempdirManager, ...@@ -333,8 +333,7 @@ class BuildExtTestCase(TempdirManager,
cmd.run() cmd.run()
so_file = cmd.get_outputs()[0] so_file = cmd.get_outputs()[0]
self.assertTrue(os.path.exists(so_file)) self.assertTrue(os.path.exists(so_file))
self.assertEquals(os.path.splitext(so_file)[-1], self.assertTrue(so_file.endswith(so_ext))
sysconfig.get_config_var('SO'))
so_dir = os.path.dirname(so_file) so_dir = os.path.dirname(so_file)
self.assertEquals(so_dir, cmd.build_lib) self.assertEquals(so_dir, cmd.build_lib)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment