Actually remove removed patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python39?expand=0&rev=58
This commit is contained in:
parent
9559d22979
commit
ce250c01c7
@ -1,145 +0,0 @@
|
||||
From: Michel Normand <normand@linux.vnet.ibm.com>
|
||||
Subject: skip random failing tests
|
||||
Date: Thu, 18 Jan 2018 15:48:52 +0100
|
||||
|
||||
skip random failing tests:
|
||||
in _test_multiprocessing.py:
|
||||
test_async_timeout
|
||||
test_waitfor_timeout
|
||||
test_wait_integer
|
||||
in test_events.py:
|
||||
test_run_until_complete
|
||||
test_signal_handling_args
|
||||
test_call_later
|
||||
|
||||
Reported to fail on ppc64le host on multiple osc build trials:
|
||||
(all failed for ppc64le, except one for ppc)
|
||||
===
|
||||
[michel@abanc:~/work/home:michel_mno:branches:devel:languages:python:Factory/python3]
|
||||
$idx=1; while test 1; do echo "trial $idx:"; osc build \
|
||||
--vm-type kvm -j 8 --threads 4 openSUSE_Factory_PowerPC ppc64le \
|
||||
>/tmp/python3_trialx_${idx}.log 2>&1 || break; ((idx++)); done
|
||||
===
|
||||
FAIL: test_async_timeout (test.test_multiprocessing_fork.WithProcessesTestPool)
|
||||
----------------------------------------------------------------------
|
||||
Traceback (most recent call last):
|
||||
File "/home/abuild/rpmbuild/BUILD/Python-3.6.4/Lib/test/_test_multiprocessing.py", line 2017, in test_async_timeout
|
||||
self.assertRaises(multiprocessing.TimeoutError, get, timeout=TIMEOUT2)
|
||||
AssertionError: TimeoutError not raised by <test._test_multiprocessing.TimingWrapper object at 0x7fff89b45f28>
|
||||
===
|
||||
FAIL: test_waitfor_timeout (test.test_multiprocessing_spawn.WithManagerTestCondition)
|
||||
----------------------------------------------------------------------
|
||||
Traceback (most recent call last):
|
||||
File "/home/abuild/rpmbuild/BUILD/Python-3.6.4/Lib/test/_test_multiprocessing.py", line 1169, in test_waitfor_timeout
|
||||
self.assertTrue(success.value)
|
||||
AssertionError: False is not true
|
||||
===
|
||||
FAIL: test_run_until_complete (test.test_asyncio.test_events.SelectEventLoopTests)
|
||||
----------------------------------------------------------------------
|
||||
Traceback (most recent call last):
|
||||
File "/home/abuild/rpmbuild/BUILD/Python-3.6.4/Lib/test/test_asyncio/test_events.py", line 285, in test_run_until_complete
|
||||
self.assertTrue(0.08 <= t1-t0 <= 0.8, t1-t0)
|
||||
AssertionError: False is not true : 3.966844968999993
|
||||
===
|
||||
FAIL: test_signal_handling_args (test.test_asyncio.test_events.SelectEventLoopTests)
|
||||
----------------------------------------------------------------------
|
||||
Traceback (most recent call last):
|
||||
File "/home/abuild/rpmbuild/BUILD/Python-3.6.4/Lib/test/test_asyncio/test_events.py", line 566, in test_signal_handling_args
|
||||
self.assertEqual(caught, 1)
|
||||
AssertionError: 0 != 1
|
||||
=== (ppc)
|
||||
FAIL: test_wait_integer (test.test_multiprocessing_spawn.TestWait)
|
||||
----------------------------------------------------------------------
|
||||
Traceback (most recent call last):
|
||||
File "/home/abuild/rpmbuild/BUILD/Python-3.6.4/Lib/test/_test_multiprocessing.py", line 3762, in test_wait_integer
|
||||
self.assertLess(delta, expected + 2)
|
||||
AssertionError: 5.576360702514648 not less than 5
|
||||
===
|
||||
===
|
||||
======================================================================
|
||||
FAIL: test_call_later (test.test_asyncio.test_events.PollEventLoopTests)
|
||||
----------------------------------------------------------------------
|
||||
Traceback (most recent call last):
|
||||
File "/home/abuild/rpmbuild/BUILD/Python-3.6.4/Lib/test/test_asyncio/test_events.py", line 309, in test_call_later
|
||||
self.assertTrue(0.08 <= t1-t0 <= 0.8, t1-t0)
|
||||
AssertionError: False is not true : 2.7154626529999746
|
||||
|
||||
======================================================================
|
||||
FAIL: test_call_later (test.test_asyncio.test_events.SelectEventLoopTests)
|
||||
----------------------------------------------------------------------
|
||||
Traceback (most recent call last):
|
||||
File "/home/abuild/rpmbuild/BUILD/Python-3.6.4/Lib/test/test_asyncio/test_events.py", line 309, in test_call_later
|
||||
self.assertTrue(0.08 <= t1-t0 <= 0.8, t1-t0)
|
||||
AssertionError: False is not true : 4.137590406000015
|
||||
===
|
||||
|
||||
|
||||
Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
|
||||
---
|
||||
Lib/test/_test_multiprocessing.py | 3 +++
|
||||
Lib/test/test_asyncio/test_events.py | 4 +++-
|
||||
2 files changed, 6 insertions(+), 1 deletion(-)
|
||||
|
||||
--- a/Lib/test/_test_multiprocessing.py
|
||||
+++ b/Lib/test/_test_multiprocessing.py
|
||||
@@ -1546,6 +1546,7 @@ class _TestCondition(BaseTestCase):
|
||||
success.value = True
|
||||
|
||||
@unittest.skipUnless(HAS_SHAREDCTYPES, 'needs sharedctypes')
|
||||
+ @unittest.skip("transient failure on PowerPC")
|
||||
def test_waitfor_timeout(self):
|
||||
# based on test in test/lock_tests.py
|
||||
cond = self.Condition()
|
||||
@@ -2436,6 +2437,7 @@ class _TestPool(BaseTestCase):
|
||||
self.assertEqual(get(), 49)
|
||||
self.assertTimingAlmostEqual(get.elapsed, TIMEOUT1)
|
||||
|
||||
+ @unittest.skip("transient failure on PowerPC")
|
||||
def test_async_timeout(self):
|
||||
res = self.pool.apply_async(sqr, (6, TIMEOUT2 + 1.0))
|
||||
get = TimingWrapper(res.get)
|
||||
@@ -4682,6 +4684,7 @@ class TestWait(unittest.TestCase):
|
||||
sem.release()
|
||||
time.sleep(period)
|
||||
|
||||
+ @unittest.skip("transient failure on PowerPC")
|
||||
def test_wait_integer(self):
|
||||
from multiprocessing.connection import wait
|
||||
|
||||
--- a/Lib/test/test_asyncio/test_events.py
|
||||
+++ b/Lib/test/test_asyncio/test_events.py
|
||||
@@ -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).
|
||||
|
||||
+ @unittest.skip("transient failure on PowerPC")
|
||||
def test_run_until_complete(self):
|
||||
t0 = self.loop.time()
|
||||
self.loop.run_until_complete(asyncio.sleep(0.1))
|
||||
@@ -294,7 +295,7 @@ class EventLoopTestsMixin:
|
||||
|
||||
self.loop.call_later(0.1, callback, 'hello world')
|
||||
self.loop.run_forever()
|
||||
- self.assertEqual(results, ['hello world'])
|
||||
+ self.assertTrue(0.08 <= t1-t0 <= 5.0, t1-t0)
|
||||
|
||||
def test_call_soon(self):
|
||||
results = []
|
||||
@@ -481,6 +482,7 @@ class EventLoopTestsMixin:
|
||||
self.assertEqual(caught, 1)
|
||||
|
||||
@unittest.skipUnless(hasattr(signal, 'SIGALRM'), 'No SIGALRM')
|
||||
+ @unittest.skip("transient failure on PowerPC")
|
||||
def test_signal_handling_args(self):
|
||||
some_args = (42,)
|
||||
caught = 0
|
||||
--- a/Lib/test/test_buffer.py
|
||||
+++ b/Lib/test/test_buffer.py
|
||||
@@ -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))
|
||||
|
||||
+ @unittest.skip("transient failure on PowerPC")
|
||||
def test_memoryview_struct_module(self):
|
||||
|
||||
class INT(object):
|
Loading…
Reference in New Issue
Block a user