python/pyproject_installer: update to 0.5.5
[oi-userland.git] / components / python / curio / patches / 02-test-filter-known-warnings.patch
blobf1a59c543c2188e6ae4162b56f2b254f1703910c
1 https://github.com/dabeaz/curio/issues/344
3 --- curio-1.6/tests/test_kernel.py.orig
4 +++ curio-1.6/tests/test_kernel.py
5 @@ -718,6 +718,7 @@
6 kernel.run(main)
7 assert results == [ 'child', 'cancelled', 'done cancel' ]
9 +@pytest.mark.filterwarnings("ignore::RuntimeWarning")
10 def test_reentrant_kernel(kernel):
11 async def child():
12 pass
13 --- curio-1.6/tests/test_io.py.orig
14 +++ curio-1.6/tests/test_io.py
15 @@ -838,6 +838,7 @@
16 assert results['handler'] == results['sender']
19 +@pytest.mark.filterwarnings("ignore::RuntimeWarning")
20 def test_stream_bad_context(kernel, portno):
21 done = Event()
22 results = []
23 @@ -870,6 +871,7 @@
25 assert results == [ True ]
27 +@pytest.mark.filterwarnings("ignore::RuntimeWarning")
28 def test_stream_bad_iter(kernel, portno):
29 done = Event()
30 results = []
31 --- curio-1.6/tests/test_meta.py.orig
32 +++ curio-1.6/tests/test_meta.py
33 @@ -11,6 +11,7 @@
35 assert meta.iscoroutinefunction(partial(spam, 1))
37 +@pytest.mark.filterwarnings("ignore::RuntimeWarning")
38 def test_instantiate_coroutine():
39 async def coro(x, y):
40 pass
41 --- curio-1.6/tests/test_file.py.orig
42 +++ curio-1.6/tests/test_file.py
43 @@ -213,6 +213,7 @@
44 kernel.run(main())
47 +@pytest.mark.filterwarnings("ignore::RuntimeWarning")
48 def test_sync_with(kernel):
49 async def main():
50 f = aopen(testinput, 'r')
51 --- curio-1.6/tests/test_thread.py.orig
52 +++ curio-1.6/tests/test_thread.py
53 @@ -254,6 +254,7 @@
54 assert t.result == 5
55 kernel.run(main)
57 +@pytest.mark.filterwarnings("ignore::RuntimeWarning")
58 def test_errors(kernel):
59 # spawn_thread used on a coroutine
60 async def main():
61 --- curio-1.6/setup.cfg.orig
62 +++ curio-1.6/setup.cfg
63 @@ -10,6 +10,8 @@
64 --ignore=setup.py --ignore=docs/conf.py
65 markers =
66 internet: mark tests as requiring internet connectivity (deselect with '-m "not internet"')
67 +filterwarnings =
68 + ignore::pytest.PytestUnraisableExceptionWarning
70 [egg_info]
71 tag_build =