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