- Readjustet and reapplied patches:
- CVE-2021-3177-buf_ovrfl_PyCArg_repr.patch - bpo-31046_ensurepip_honours_prefix.patch - python-3.3.0b1-fix_date_time_compiler.patch - skip_random_failing_tests.patch - sphinx-update-removed-function.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python39?expand=0&rev=50
This commit is contained in:
parent
12d62b8ab0
commit
e410e3892b
@ -73,7 +73,7 @@ Co-authored-by: Benjamin Peterson <benjamin@python.org>
|
||||
+:class:`ctypes.c_longdouble` values.
|
||||
--- a/Modules/_ctypes/callproc.c
|
||||
+++ b/Modules/_ctypes/callproc.c
|
||||
@@ -483,58 +483,47 @@ is_literal_char(unsigned char c)
|
||||
@@ -489,58 +489,47 @@ is_literal_char(unsigned char c)
|
||||
static PyObject *
|
||||
PyCArg_repr(PyCArgObject *self)
|
||||
{
|
||||
@ -148,7 +148,7 @@ Co-authored-by: Benjamin Peterson <benjamin@python.org>
|
||||
|
||||
/* Hm, are these 'z' and 'Z' codes useful at all?
|
||||
Shouldn't they be replaced by the functionality of c_string
|
||||
@@ -543,22 +532,19 @@ PyCArg_repr(PyCArgObject *self)
|
||||
@@ -549,22 +538,19 @@ PyCArg_repr(PyCArgObject *self)
|
||||
case 'z':
|
||||
case 'Z':
|
||||
case 'P':
|
||||
|
@ -139,7 +139,7 @@ Co-Authored-By: Xavier de Gaye <xdegaye@gmail.com>
|
||||
|
||||
--- a/Makefile.pre.in
|
||||
+++ b/Makefile.pre.in
|
||||
@@ -1252,7 +1252,7 @@ install: @FRAMEWORKINSTALLFIRST@ commoni
|
||||
@@ -1253,7 +1253,7 @@ install: @FRAMEWORKINSTALLFIRST@ commoni
|
||||
install|*) ensurepip="" ;; \
|
||||
esac; \
|
||||
$(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \
|
||||
@ -148,7 +148,7 @@ Co-Authored-By: Xavier de Gaye <xdegaye@gmail.com>
|
||||
fi
|
||||
|
||||
altinstall: commoninstall
|
||||
@@ -1262,7 +1262,7 @@ altinstall: commoninstall
|
||||
@@ -1263,7 +1263,7 @@ altinstall: commoninstall
|
||||
install|*) ensurepip="--altinstall" ;; \
|
||||
esac; \
|
||||
$(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- a/Makefile.pre.in
|
||||
+++ b/Makefile.pre.in
|
||||
@@ -764,11 +764,18 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \
|
||||
@@ -772,11 +772,18 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \
|
||||
$(DTRACE_OBJS) \
|
||||
$(srcdir)/Modules/getbuildinfo.c
|
||||
$(CC) -c $(PY_CORE_CFLAGS) \
|
||||
|
@ -238,6 +238,12 @@ Mon Feb 8 22:02:03 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
through the self argument of a PyCFunction.
|
||||
- Py_FileSystemDefaultEncodeErrors and Py_UTF8Mode are
|
||||
available again in limited API.
|
||||
- Readjustet and reapplied patches:
|
||||
- CVE-2021-3177-buf_ovrfl_PyCArg_repr.patch
|
||||
- bpo-31046_ensurepip_honours_prefix.patch
|
||||
- python-3.3.0b1-fix_date_time_compiler.patch
|
||||
- skip_random_failing_tests.patch
|
||||
- sphinx-update-removed-function.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 29 17:22:48 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
@ -82,7 +82,7 @@ Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
|
||||
|
||||
--- a/Lib/test/_test_multiprocessing.py
|
||||
+++ b/Lib/test/_test_multiprocessing.py
|
||||
@@ -1521,6 +1521,7 @@ class _TestCondition(BaseTestCase):
|
||||
@@ -1546,6 +1546,7 @@ class _TestCondition(BaseTestCase):
|
||||
success.value = True
|
||||
|
||||
@unittest.skipUnless(HAS_SHAREDCTYPES, 'needs sharedctypes')
|
||||
@ -90,7 +90,7 @@ Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
|
||||
def test_waitfor_timeout(self):
|
||||
# based on test in test/lock_tests.py
|
||||
cond = self.Condition()
|
||||
@@ -2411,6 +2412,7 @@ class _TestPool(BaseTestCase):
|
||||
@@ -2436,6 +2437,7 @@ class _TestPool(BaseTestCase):
|
||||
self.assertEqual(get(), 49)
|
||||
self.assertTimingAlmostEqual(get.elapsed, TIMEOUT1)
|
||||
|
||||
@ -98,7 +98,7 @@ Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
|
||||
def test_async_timeout(self):
|
||||
res = self.pool.apply_async(sqr, (6, TIMEOUT2 + 1.0))
|
||||
get = TimingWrapper(res.get)
|
||||
@@ -4564,6 +4566,7 @@ class TestWait(unittest.TestCase):
|
||||
@@ -4682,6 +4684,7 @@ class TestWait(unittest.TestCase):
|
||||
sem.release()
|
||||
time.sleep(period)
|
||||
|
||||
@ -108,7 +108,7 @@ Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
|
||||
|
||||
--- a/Lib/test/test_asyncio/test_events.py
|
||||
+++ b/Lib/test/test_asyncio/test_events.py
|
||||
@@ -266,6 +266,7 @@ class EventLoopTestsMixin:
|
||||
@@ -270,6 +270,7 @@ class EventLoopTestsMixin:
|
||||
# Note: because of the default Windows timing granularity of
|
||||
# 15.6 msec, we use fairly long sleep times here (~100 msec).
|
||||
|
||||
@ -116,16 +116,16 @@ Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
|
||||
def test_run_until_complete(self):
|
||||
t0 = self.loop.time()
|
||||
self.loop.run_until_complete(asyncio.sleep(0.1))
|
||||
@@ -293,7 +294,7 @@ class EventLoopTestsMixin:
|
||||
@@ -294,7 +295,7 @@ class EventLoopTestsMixin:
|
||||
|
||||
self.loop.call_later(0.1, callback, 'hello world')
|
||||
self.loop.run_forever()
|
||||
t1 = time.monotonic()
|
||||
self.assertEqual(results, ['hello world'])
|
||||
- self.assertTrue(0.08 <= t1-t0 <= 0.8, t1-t0)
|
||||
- self.assertEqual(results, ['hello world'])
|
||||
+ self.assertTrue(0.08 <= t1-t0 <= 5.0, t1-t0)
|
||||
|
||||
def test_call_soon(self):
|
||||
results = []
|
||||
@@ -478,6 +479,7 @@ class EventLoopTestsMixin:
|
||||
@@ -481,6 +482,7 @@ class EventLoopTestsMixin:
|
||||
self.assertEqual(caught, 1)
|
||||
|
||||
@unittest.skipUnless(hasattr(signal, 'SIGALRM'), 'No SIGALRM')
|
||||
@ -135,7 +135,7 @@ Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
|
||||
caught = 0
|
||||
--- a/Lib/test/test_buffer.py
|
||||
+++ b/Lib/test/test_buffer.py
|
||||
@@ -2504,6 +2504,7 @@ class TestBufferProtocol(unittest.TestCa
|
||||
@@ -2509,6 +2509,7 @@ class TestBufferProtocol(unittest.TestCa
|
||||
a = ndarray(items, shape=[2, 2, 2], format="b")
|
||||
check(memoryview(a), vsize(base_struct + 3 * per_dim))
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
--- a/Doc/tools/extensions/pyspecific.py
|
||||
+++ b/Doc/tools/extensions/pyspecific.py
|
||||
@@ -355,7 +355,12 @@ class DeprecatedRemoved(Directive):
|
||||
@@ -361,7 +361,12 @@ class DeprecatedRemoved(Directive):
|
||||
translatable=False)
|
||||
node.append(para)
|
||||
env = self.state.document.settings.env
|
||||
|
Loading…
Reference in New Issue
Block a user