1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
Description: Remove broken tests
As per the bug reports, the 2 tests disabled by this patch are flaky,
and produce random FTBFS.
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/854494
Bug-Debian: https://bugs.debian.org/858189
Forwarded: no
Last-Update: 2017-04-04
--- execnet-1.4.1.orig/testing/test_gateway.py
+++ execnet-1.4.1/testing/test_gateway.py
@@ -237,20 +237,6 @@ class TestPopenGateway:
assert rinfo.cwd == py.std.os.getcwd()
assert rinfo.version_info == py.std.sys.version_info
- def test_waitclose_on_remote_killed(self, makegateway):
- gw = makegateway('popen')
- channel = gw.remote_exec("""
- import os
- import time
- channel.send(os.getpid())
- time.sleep(100)
- """)
- remotepid = channel.receive()
- py.process.kill(remotepid)
- py.test.raises(EOFError, "channel.waitclose(TESTTIMEOUT)")
- py.test.raises(IOError, channel.send, None)
- py.test.raises(EOFError, channel.receive)
-
def test_receive_on_remote_sysexit(self, gw):
channel = gw.remote_exec("""
raise SystemExit()
--- execnet-1.4.1.orig/testing/test_xspec.py
+++ execnet-1.4.1/testing/test_xspec.py
@@ -118,23 +118,6 @@ class TestMakegateway:
assert rinfo.cwd == os.getcwd()
assert rinfo.version_info == sys.version_info
- @pytest.mark.skipif("not hasattr(os, 'nice')")
- def test_popen_nice(self, makegateway):
- gw = makegateway("popen")
-
- def getnice(channel):
- import os
- if hasattr(os, 'nice'):
- channel.send(os.nice(0))
- else:
- channel.send(None)
- remotenice = gw.remote_exec(getnice).receive()
- gw.exit()
- if remotenice is not None:
- gw = makegateway("popen//nice=5")
- remotenice2 = gw.remote_exec(getnice).receive()
- assert remotenice2 == remotenice + 5
-
def test_popen_env(self, makegateway):
gw = makegateway("popen//env:NAME123=123")
ch = gw.remote_exec("""
|