opensmalltalk cog-spur: update to VMMaker.oscog-eem.3504
[oi-userland.git] / components / python / powerline / patches / 01-test-disable-failing.patch
blob84ca6ccbddff01b875ab78d61bc6d3a20e15136d
1 --- powerline-2.8.4/tests/test_python/test_logging.py.orig
2 +++ powerline-2.8.4/tests/test_python/test_logging.py
3 @@ -17,6 +17,8 @@
4 from tests.modules import TestCase
5 from tests.modules.lib import replace_attr
7 +import pytest
10 TIMESTAMP_RE = r'\d{4}-\d\d-\d\d \d\d:\d\d:\d\d,\d{3}'
12 @@ -312,6 +314,7 @@
13 self.assertEqual(err.getvalue(), '')
14 self.assertEqual(out.getvalue(), '')
16 + @pytest.mark.skip(reason="always fails: https://github.com/powerline/powerline/issues/2234")
17 def test_logger_format(self):
18 out = StringIO()
19 err = StringIO()
20 @@ -331,6 +334,7 @@
21 self.assertEqual(err.getvalue(), '')
22 self.assertEqual(out.getvalue(), '')
24 + @pytest.mark.skip(reason="always fails: https://github.com/powerline/powerline/issues/2234")
25 def test_top_log_format(self):
26 out = StringIO()
27 err = StringIO()
28 --- powerline-2.8.4/tests/test_python/test_lib.py.orig
29 +++ powerline-2.8.4/tests/test_python/test_lib.py
30 @@ -25,6 +25,8 @@
31 from tests.modules.lib import Pl, replace_attr
32 from tests.modules import TestCase, SkipTest
34 +import pytest
37 try:
38 __import__('bzrlib')
39 @@ -69,6 +71,7 @@
42 class TestThreaded(TestCase):
43 + @pytest.mark.skip(reason="always fails: https://github.com/powerline/powerline/issues/2128")
44 def test_threaded_segment(self):
45 log = []
46 pl = Pl()
47 @@ -266,6 +269,7 @@
48 self.assertEqual(num_runs - 1, len(pl.exceptions))
49 log[:] = ()
51 + @pytest.mark.skip(reason="always fails: https://github.com/powerline/powerline/issues/2128")
52 def test_kw_threaded_segment(self):
53 log = []
54 pl = Pl()
55 --- powerline-2.8.4/tests/test_python/test_segments.py.orig
56 +++ powerline-2.8.4/tests/test_python/test_segments.py
57 @@ -19,6 +19,8 @@
58 replace_module_module, replace_env, Pl)
59 from tests.modules import TestCase, SkipTest
61 +import pytest
64 def get_dummy_guess(**kwargs):
65 if 'directory' in kwargs:
66 @@ -535,6 +537,7 @@
67 class TestEnv(TestCommon):
68 module_name = 'env'
70 + @pytest.mark.skip(reason="always fails: https://github.com/powerline/powerline/issues/2128")
71 def test_user(self):
72 new_os = new_module('os', getpid=lambda: 1)
74 @@ -907,6 +910,7 @@
75 with replace_attr(self.module, '_get_uptime', _get_uptime):
76 self.assertEqual(self.module.uptime(pl=pl), None)
78 + @pytest.mark.skip(reason="always fails: https://github.com/powerline/powerline/issues/2128")
79 def test_system_load(self):
80 pl = Pl()
81 with replace_module_module(self.module, 'os', getloadavg=lambda: (7.5, 3.5, 1.5)):