Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2:Test
python-base
python-2.6.8-test_distutils.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-2.6.8-test_distutils.patch of Package python-base
Index: Python-2.7/Lib/distutils/tests/test_build_ext.py =================================================================== --- Python-2.7.orig/Lib/distutils/tests/test_build_ext.py +++ Python-2.7/Lib/distutils/tests/test_build_ext.py @@ -261,20 +261,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()
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor