From: Santiago Vila Subject: Mark several tests as flaky Bug-Debian: https://bugs.debian.org/854494 --- a/testing/test_channel.py +++ b/testing/test_channel.py @@ -12,6 +12,7 @@ needs_early_gc = pytest.mark.skipif("not hasattr(sys, 'getrefcount')") needs_osdup = pytest.mark.skipif("not hasattr(os, 'dup')") +flakytest = pytest.mark.xfail(reason="flaky test") TESTTIMEOUT = 10.0 # seconds @@ -129,6 +130,7 @@ channel.send(newchan) channel.waitclose() + @flakytest def test_channel_passing_over_channel(self, gw: Gateway) -> None: channel = gw.remote_exec( """ --- a/testing/test_gateway.py +++ b/testing/test_gateway.py @@ -262,6 +262,7 @@ res = channel.receive() assert res == 42 + @flakytest def test__rinfo(self, gw: Gateway) -> None: rinfo = gw._rinfo() assert rinfo.executable @@ -325,6 +326,7 @@ assert rinfo.cwd == os.getcwd() assert rinfo.version_info == sys.version_info + @flakytest def test_waitclose_on_remote_killed( self, makegateway: Callable[[str], Gateway] ) -> None: