diff --git a/python38.changes b/python38.changes index d74aadf..26c44da 100644 --- a/python38.changes +++ b/python38.changes @@ -7,6 +7,7 @@ Tue Dec 22 08:27:08 UTC 2020 - Matej Cepl - F00102-lib64.patch - SUSE-FEDORA-multilib.patch - bpo-31046_ensurepip_honours_prefix.patch + - skip_random_failing_tests.patch ------------------------------------------------------------------- Thu Dec 10 00:26:51 UTC 2020 - Benjamin Greiner diff --git a/skip_random_failing_tests.patch b/skip_random_failing_tests.patch index aa92541..209ce06 100644 --- a/skip_random_failing_tests.patch +++ b/skip_random_failing_tests.patch @@ -82,7 +82,7 @@ Signed-off-by: Michel Normand --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py -@@ -1521,6 +1521,7 @@ class _TestCondition(BaseTestCase): +@@ -1542,6 +1542,7 @@ class _TestCondition(BaseTestCase): success.value = True @unittest.skipUnless(HAS_SHAREDCTYPES, 'needs sharedctypes') @@ -90,7 +90,7 @@ Signed-off-by: Michel Normand def test_waitfor_timeout(self): # based on test in test/lock_tests.py cond = self.Condition() -@@ -2411,6 +2412,7 @@ class _TestPool(BaseTestCase): +@@ -2432,6 +2433,7 @@ class _TestPool(BaseTestCase): self.assertEqual(get(), 49) self.assertTimingAlmostEqual(get.elapsed, TIMEOUT1) @@ -98,7 +98,7 @@ Signed-off-by: Michel Normand 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): +@@ -4643,6 +4645,7 @@ class TestWait(unittest.TestCase): sem.release() time.sleep(period) @@ -108,7 +108,7 @@ Signed-off-by: Michel Normand --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py -@@ -266,6 +266,7 @@ class EventLoopTestsMixin: +@@ -268,11 +268,12 @@ 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,13 @@ Signed-off-by: Michel Normand 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: - self.loop.run_forever() - t1 = time.monotonic() - self.assertEqual(results, ['hello world']) + t1 = self.loop.time() - self.assertTrue(0.08 <= t1-t0 <= 0.8, t1-t0) + self.assertTrue(0.08 <= t1-t0 <= 5.0, t1-t0) - def test_call_soon(self): - results = [] -@@ -478,6 +479,7 @@ class EventLoopTestsMixin: + def test_run_until_complete_stopped(self): + +@@ -477,6 +478,7 @@ class EventLoopTestsMixin: self.assertEqual(caught, 1) @unittest.skipUnless(hasattr(signal, 'SIGALRM'), 'No SIGALRM') @@ -135,7 +132,7 @@ Signed-off-by: Michel Normand caught = 0 --- a/Lib/test/test_buffer.py +++ b/Lib/test/test_buffer.py -@@ -2504,6 +2504,7 @@ class TestBufferProtocol(unittest.TestCa +@@ -2506,6 +2506,7 @@ class TestBufferProtocol(unittest.TestCa a = ndarray(items, shape=[2, 2, 2], format="b") check(memoryview(a), vsize(base_struct + 3 * per_dim))