python/stevedore: update to 5.4.0
[oi-userland.git] / components / python / CherryPy / patches / 02-no-pytest-services.patch
blob611c63cf40509f8e689fa95ad44de57abef89f75
1 We have no pytest-services packaged yet.
3 --- cherrypy-18.10.0/setup.py.orig
4 +++ cherrypy-18.10.0/setup.py
5 @@ -93,7 +93,6 @@
6 'pytest-forked',
7 'path.py',
8 'requests_toolbelt',
9 - 'pytest-services>=2',
10 'setuptools',
12 # Enables memcached session support via `cherrypy[memcached_session]`:
13 --- cherrypy-18.10.0/cherrypy/test/test_session.py.orig
14 +++ cherrypy-18.10.0/cherrypy/test/test_session.py
15 @@ -464,6 +464,7 @@
16 class MemcachedSessionTest(helper.CPWebCase):
17 setup_server = staticmethod(setup_server)
19 + @pytest.mark.skip(reason="no pytest-services")
20 def test_0_Session(self):
21 self.getPage(
22 '/set_session_cls/cherrypy.lib.sessions.MemcachedSession'
23 @@ -494,6 +495,7 @@
24 self.getPage('/delete', self.cookies)
25 assert self.body == b'done'
27 + @pytest.mark.skip(reason="no pytest-services")
28 def test_1_Concurrency(self):
29 client_thread_count = 5
30 request_count = 30
31 @@ -530,12 +532,14 @@
32 expected = 1 + (client_thread_count * request_count)
33 assert hitcount == expected
35 + @pytest.mark.skip(reason="no pytest-services")
36 def test_3_Redirect(self):
37 # Start a new session
38 self.getPage('/testStr')
39 self.getPage('/iredir', self.cookies)
40 assert self.body == b'MemcachedSession'
42 + @pytest.mark.skip(reason="no pytest-services")
43 def test_5_Error_paths(self):
44 self.getPage('/unknown/page')
45 self.assertErrorPage(
46 --- cherrypy-18.10.0/cherrypy/test/helper.py.orig
47 +++ cherrypy-18.10.0/cherrypy/test/helper.py
48 @@ -280,6 +280,7 @@
50 do_gc_test = False
52 + @pytest.mark.skip(reason="no pytest-services")
53 def test_gc(self):
54 if not self.do_gc_test:
55 return