forked from pool/python
- Update to version 2.7.5: + Issue #15535: Fixed regression in the pickling of named tuples by removing the __dict__ property introduced in 2.7.4. + Issue #17857: Prevent build failures with pre-3.5.0 versions of sqlite3, such as was shipped with Centos 5 and Mac OS X 10.4. + Issue #17703: Fix a regression where an illegal use of Py_DECREF() after interpreter finalization can cause a crash. + Issue #16447: Fixed potential segmentation fault when setting __name__ on a class. + Issue #17610: Don't rely on non-standard behavior of the C qsort() function. 12 See http://hg.python.org/cpython/file/ab05e7dd2788/Misc/NEWS for more - Drop upstreamed patches: + python-2.7rc2-configure.patch + python-2.7.3-multiprocessing-join.patch + ctypes-libffi-aarch64.patch + python-2.7.3-fix-dbm-64bit-bigendian.patch + python-test_structmembers.patch - Rebased other patches - Update to version 2.7.5: + Issue #15535: Fixed regression in the pickling of named tuples by removing the __dict__ property introduced in 2.7.4. + Issue #17857: Prevent build failures with pre-3.5.0 versions of sqlite3, such as was shipped with Centos 5 and Mac OS X 10.4. + Issue #17703: Fix a regression where an illegal use of Py_DECREF() after interpreter finalization can cause a crash. + Issue #16447: Fixed potential segmentation fault when setting __name__ on a class. + Issue #17610: Don't rely on non-standard behavior of the C qsort() function. 12 See http://hg.python.org/cpython/file/ab05e7dd2788/Misc/NEWS for more OBS-URL: https://build.opensuse.org/request/show/176926 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=141
49 lines
1.8 KiB
Diff
49 lines
1.8 KiB
Diff
--- a/Lib/distutils/tests/test_build_ext.py
|
|
+++ b/Lib/distutils/tests/test_build_ext.py
|
|
@@ -279,20 +279,14 @@
|
|
|
|
# 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.assertTrue(os.path.exists(so_file))
|
|
self.assertEqual(os.path.splitext(so_file)[-1],
|
|
sysconfig.get_config_var('SO'))
|
|
so_dir = os.path.dirname(so_file)
|
|
- self.assertEqual(so_dir, other_tmp_dir)
|
|
+ self.assertEqual(so_dir, os.getcwd())
|
|
cmd.compiler = None
|
|
cmd.inplace = 0
|
|
cmd.run()
|
|
--- a/Lib/test/regrtest.py
|
|
+++ b/Lib/test/regrtest.py
|
|
@@ -1547,16 +1547,5 @@
|
|
if not os.path.exists(TEMPDIR):
|
|
os.mkdir(TEMPDIR)
|
|
|
|
- # Define a writable temp dir that will be used as cwd while running
|
|
- # the tests. The name of the dir includes the pid to allow parallel
|
|
- # testing (see the -j option).
|
|
- TESTCWD = 'test_python_{}'.format(os.getpid())
|
|
-
|
|
- TESTCWD = os.path.join(TEMPDIR, TESTCWD)
|
|
-
|
|
- # Run the tests in a context manager that temporary changes the CWD to a
|
|
- # temporary and writable directory. If it's not possible to create or
|
|
- # change the CWD, the original CWD will be used. The original CWD is
|
|
- # available from test_support.SAVEDCWD.
|
|
- with test_support.temp_cwd(TESTCWD, quiet=True):
|
|
- main()
|
|
+ # do not change directory, because it breaks distutils tests
|
|
+ main()
|