diff --git a/0001-stall-some-loops-in-test_gateway-a-little-bit-to-pre.patch b/0001-stall-some-loops-in-test_gateway-a-little-bit-to-pre.patch new file mode 100644 index 0000000000000000000000000000000000000000..ddea3a78b821547a61fb16fceb681d144ff070b8 --- /dev/null +++ b/0001-stall-some-loops-in-test_gateway-a-little-bit-to-pre.patch @@ -0,0 +1,41 @@ +From c6af7be6edb6ee7ecba9acdda4f00dd1026ce3d8 Mon Sep 17 00:00:00 2001 +From: Andreas Cadhalpun +Date: Fri, 17 Jul 2020 15:46:11 +0800 +Subject: [PATCH] stall some loops in test_gateway a little bit to prevent test + failure and build break which occurs sometimes on this. + +--- + execnet-1.5.0/testing/test_gateway.py | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/testing/test_gateway.py b/testing/test_gateway.py +index 6f0f62b..e99a53a 100644 +--- a/execnet-1.5.0/testing/test_gateway.py ++++ b/execnet-1.5.0/testing/test_gateway.py +@@ -2,6 +2,7 @@ + mostly functional tests of gateways. + """ + import os ++import time + import py + import pytest + import sys +@@ -90,6 +91,7 @@ class TestBasicGateway: + status = gw.remote_status() + if status.numexecuting == 0: + break ++ time.sleep(0.1) + else: + pytest.fail("did not get correct remote status") + # race condition +@@ -364,6 +366,7 @@ class TestThreads: + rstatus = gw.remote_status() + if rstatus.numexecuting == 0: + return ++ time.sleep(0.1) + assert 0, "numexecuting didn't drop to zero" + + +-- +2.23.0 + diff --git a/python-execnet.spec b/python-execnet.spec index 5c2d5bec82e071b6556e36ef2f2180ca97c527d5..fe3ce924e54f2aa538abdbad049a7e080d7b92f8 100644 --- a/python-execnet.spec +++ b/python-execnet.spec @@ -9,6 +9,7 @@ BuildArch: noarch BuildRequires: procps-ng Patch0001: 0001-fix-asserterror-for-testcase.patch Patch0002: 0001-Fix-random-test-failure.patch +Patch0003: 0001-stall-some-loops-in-test_gateway-a-little-bit-to-pre.patch %description execnet provides carefully tested means to ad-hoc interact with Python interpreters across version, platform and network barriers. It provides a minimal and fast API targetting the following uses: @@ -103,6 +104,8 @@ cd - %{python3_sitelib}/execnet* %changelog +* Mon Jul 20 2020 wangxiao - 1.5.0-7 +- Fix testcase error. * Thu May 21 2020 yanan li - 1.5.0-6 - Fix asserterror for testcase. * Wed Mar 4 2020 zhouyihang - 1.5.0-5