forked from pool/python-aiohttp
- update to version 3.0.1 * async/await everywhere. The minimal supported Python version is 3.5.3 now. * Application Runners. * Client Tracing. Now it is possible by registering special signal handlers on every request processing stage. * HTTPS support * Dropped obsolete API. The release dropped a lot of already deprecated features. * The full changelog can be read at https://aiohttp.readthedocs.io/en/stable/changes.html - Add python3-idna_ssl, python3-Pygments and python3-aiohttp-theme to BuildRequires. - Add Requires: python3-idna_ssl - Fix tests by removing a file and adding a patch to remove another failing test due to a DeprecationWarning being issued by pytest because of a problem in python-pytest-timeout. * remove-failing-tests-due-to-pytest-timeout-issues.patch OBS-URL: https://build.opensuse.org/request/show/577624 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=15
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
From: Antonio Larrosa <alarrosa@suse.com>
|
|
|
|
Remove failing test due to a DeprecationWarning being issued
|
|
by pytest because pytest-timeout is using a wrong parameter
|
|
when calling addoption.
|
|
|
|
I tested changing pytest-timeout from using type='choice' to
|
|
type=str and that passed the tests, so I choosed to remove the
|
|
test while the fix gets to the python-pytest-timeout package.
|
|
|
|
Index: aiohttp-3.0.1/tests/test_test_utils.py
|
|
===================================================================
|
|
--- aiohttp-3.0.1.orig/tests/test_test_utils.py
|
|
+++ aiohttp-3.0.1/tests/test_test_utils.py
|
|
@@ -243,20 +243,6 @@ async def test_server_make_url_yarl_comp
|
|
make_url(URL('http://foo.com'))
|
|
|
|
|
|
-def test_testcase_no_app(testdir, loop):
|
|
- testdir.makepyfile(
|
|
- """
|
|
- from aiohttp.test_utils import AioHTTPTestCase
|
|
-
|
|
-
|
|
- class InvalidTestCase(AioHTTPTestCase):
|
|
- def test_noop(self):
|
|
- pass
|
|
- """)
|
|
- result = testdir.runpytest()
|
|
- result.stdout.fnmatch_lines(["*RuntimeError*"])
|
|
-
|
|
-
|
|
async def test_server_context_manager(app, loop):
|
|
async with _TestServer(app, loop=loop) as server:
|
|
async with aiohttp.ClientSession(loop=loop) as client:
|