a753be95a9
Copy from devel:languages:python:Factory/python based on submit request 37272 from user matejcik OBS-URL: https://build.opensuse.org/request/show/37272 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python?expand=0&rev=47
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
Index: Python-2.6.5/Lib/distutils/tests/test_build_ext.py
|
|
===================================================================
|
|
--- Python-2.6.5.orig/Lib/distutils/tests/test_build_ext.py
|
|
+++ Python-2.6.5/Lib/distutils/tests/test_build_ext.py
|
|
@@ -253,20 +253,14 @@ class BuildExtTestCase(support.TempdirMa
|
|
|
|
# issue #5977 : distutils build_ext.get_outputs
|
|
# returns wrong result with --inplace
|
|
- other_tmp_dir = os.path.realpath(self.mkdtemp())
|
|
- old_wd = os.getcwd()
|
|
- os.chdir(other_tmp_dir)
|
|
- try:
|
|
- cmd.inplace = 1
|
|
- cmd.run()
|
|
- so_file = cmd.get_outputs()[0]
|
|
- finally:
|
|
- os.chdir(old_wd)
|
|
+ cmd.inplace = 1
|
|
+ cmd.run()
|
|
+ so_file = cmd.get_outputs()[0]
|
|
self.assert_(os.path.exists(so_file))
|
|
self.assertEquals(os.path.splitext(so_file)[-1],
|
|
sysconfig.get_config_var('SO'))
|
|
so_dir = os.path.dirname(so_file)
|
|
- self.assertEquals(so_dir, other_tmp_dir)
|
|
+ self.assertEquals(so_dir, os.getcwd())
|
|
cmd.compiler = None
|
|
cmd.inplace = 0
|
|
cmd.run()
|