Pytest no longer supports gen_tests
Closed this issue · 10 comments
Following the Readme, I get this:
tests/test_helloworld.py:23: PytestWarning: yield tests were removed in pytest 4.0 - test_helloworld will be ignored
@pytest.mark.gen_test
Any idea what I can do to replace it? All I need to test is a single call to a tornado websocket API.
@naught101 I tried the example from the readme and do net get such a message.
Could you show your code and what versions of pytest-tornado and pytest you are using?
Sorry for the delay. I get this error when I clone this repo, and run pytest
in it.
$ pytest
============================================== test session starts ===============================================
platform linux -- Python 3.6.10, pytest-4.3.1, py-1.8.1, pluggy-0.13.1
rootdir: /home/nedcr/Downloads/source_code/pytest-tornado, inifile:
plugins: profiling-1.7.0, tornasync-0.6.0.post2, cov-2.6.1, repeat-0.8.0
collected 43 items
test/test_async.py ...xx.xxxX.xx [ 30%]
test/test_async_await.py .. [ 34%]
test/test_fixtures.py xx. [ 41%]
test/test_https_support.py xEEE [ 51%]
test/test_param.py ....x......xxx [ 83%]
test/test_server.py .EExxxE [100%]
===================================================== ERRORS =====================================================
___________________________ ERROR at setup of test_base_url_is_https_with_https_client ___________________________
file /home/nedcr/Downloads/source_code/pytest-tornado/test/test_https_support.py, line 39
def test_base_url_is_https_with_https_client(https_client, base_url):
E fixture 'https_client' not found
> available fixtures: LineMatcher, __pytest_repeat_step_number, _pytest, anypython, app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, http_client, http_server, http_server_client, http_server_port, io_loop, linecomp, monkeypatch, no_cover, pytestconfig, record_property, record_xml_attribute, recwarn, ssl_options, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_https_support.py:39
____________________________ ERROR at setup of test_base_url_is_https_with_https_port ____________________________
file /home/nedcr/Downloads/source_code/pytest-tornado/test/test_https_support.py, line 44
def test_base_url_is_https_with_https_port(https_port, base_url):
E fixture 'https_port' not found
> available fixtures: LineMatcher, __pytest_repeat_step_number, _pytest, anypython, app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, http_client, http_server, http_server_client, http_server_port, io_loop, linecomp, monkeypatch, no_cover, pytestconfig, record_property, record_xml_attribute, recwarn, ssl_options, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_https_support.py:44
___________________________ ERROR at setup of test_base_url_is_https_with_https_server ___________________________
file /home/nedcr/Downloads/source_code/pytest-tornado/test/test_https_support.py, line 49
def test_base_url_is_https_with_https_server(https_server, base_url):
E fixture 'https_server' not found
> available fixtures: LineMatcher, __pytest_repeat_step_number, _pytest, anypython, app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, http_client, http_server, http_server_client, http_server_port, io_loop, linecomp, monkeypatch, no_cover, pytestconfig, record_property, record_xml_attribute, recwarn, ssl_options, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_https_support.py:49
_______________________________________ ERROR at setup of test_http_client _______________________________________
file /home/nedcr/Downloads/source_code/pytest-tornado/test/test_server.py, line 41
def test_http_client(http_client, base_url):
E fixture 'base_url' not found
> available fixtures: LineMatcher, __pytest_repeat_step_number, _pytest, anypython, app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, http_client, http_server, http_server_client, http_server_port, io_loop, linecomp, monkeypatch, no_cover, pytestconfig, record_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_server.py:41
______________________________ ERROR at setup of test_http_client_with_fetch_helper ______________________________
file /home/nedcr/Downloads/source_code/pytest-tornado/test/test_server.py, line 50
def test_http_client_with_fetch_helper(http_client, base_url):
E fixture 'base_url' not found
> available fixtures: LineMatcher, __pytest_repeat_step_number, _pytest, anypython, app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, http_client, http_server, http_server_client, http_server_port, io_loop, linecomp, monkeypatch, no_cover, pytestconfig, record_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_server.py:50
________________________________ ERROR at setup of test_base_url_default_is_http _________________________________
file /home/nedcr/Downloads/source_code/pytest-tornado/test/test_server.py, line 73
def test_base_url_default_is_http(base_url):
E fixture 'base_url' not found
> available fixtures: LineMatcher, __pytest_repeat_step_number, _pytest, anypython, app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, http_client, http_server, http_server_client, http_server_port, io_loop, linecomp, monkeypatch, no_cover, pytestconfig, record_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_server.py:73
================================================ warnings summary ================================================
test/test_async.py:32
test/test_async.py:32: PytestWarning: yield tests were removed in pytest 4.0 - test_gen_test will be ignored
@pytest.mark.gen_test
test/test_async.py:38
test/test_async.py:38: PytestWarning: yield tests were removed in pytest 4.0 - test_gen_test_run_sync_false will be ignored
@pytest.mark.gen_test(run_sync=False)
test/test_async.py:50
test/test_async.py:50: PytestWarning: yield tests were removed in pytest 4.0 - test_generator_raises will be ignored
@pytest.mark.gen_test
test/test_async.py:57
test/test_async.py:57: PytestWarning: yield tests were removed in pytest 4.0 - test_explicit_gen_test_marker will be ignored
@pytest.mark.gen_test
test/test_async.py:63
test/test_async.py:63: PytestWarning: yield tests were removed in pytest 4.0 - test_gen_test_marker_with_params will be ignored
@pytest.mark.gen_test(timeout=2.1)
test/test_async.py:69
test/test_async.py:69: PytestWarning: yield tests were removed in pytest 4.0 - test_gen_test_with_timeout will be ignored
@pytest.mark.xfail(raises=TimeoutError)
test/test_async.py:80
test/test_async.py:80: PytestWarning: yield tests were removed in pytest 4.0 - test_gen_test will be ignored
@pytest.mark.gen_test
test/test_async.py:85
test/test_async.py:85: PytestWarning: yield tests were removed in pytest 4.0 - test_generator_raises will be ignored
@pytest.mark.gen_test
test/test_fixtures.py:23
test/test_fixtures.py:23: PytestWarning: yield tests were removed in pytest 4.0 - test_uses_pytestmark_fixtures will be ignored
@pytest.mark.xfail(pytest.__version__ < '2.7.0',
test/test_fixtures.py:35
test/test_fixtures.py:35: PytestWarning: yield tests were removed in pytest 4.0 - test_uses_pytestmark_fixtures will be ignored
@pytest.mark.gen_test
test/test_https_support.py:33
test/test_https_support.py:33: PytestWarning: yield tests were removed in pytest 4.0 - test_hello_world will be ignored
@pytest.mark.gen_test
test/test_param.py:51
test/test_param.py:51: PytestWarning: yield tests were removed in pytest 4.0 - test_gen_test_parametrize will be ignored
@pytest.mark.gen_test
test/test_param.py:61
test/test_param.py:61: PytestWarning: yield tests were removed in pytest 4.0 - test_gen_test_fixture_any_order will be ignored
@pytest.mark.parametrize('input,expected', [
test/test_param.py:71
test/test_param.py:71: PytestWarning: yield tests were removed in pytest 4.0 - test_gen_test_param_fixture will be ignored
@pytest.mark.gen_test
test/test_server.py:55
test/test_server.py:55: PytestWarning: yield tests were removed in pytest 4.0 - test_http_client_with_gen_test will be ignored
@pytest.mark.gen_test
test/test_server.py:61
test/test_server.py:61: PytestWarning: yield tests were removed in pytest 4.0 - test_get_url_with_path will be ignored
@pytest.mark.gen_test
test/test_server.py:67
test/test_server.py:67: PytestWarning: yield tests were removed in pytest 4.0 - test_http_client_raises_on_404 will be ignored
@pytest.mark.gen_test
-- Docs: https://docs.pytest.org/en/latest/warnings.html
===================== 19 passed, 17 xfailed, 1 xpassed, 17 warnings, 6 error in 0.99 seconds =====================
My library version:
$ pip freeze|grep "\(pytest\|tornado\)"
pytest==5.4.3
pytest-cov==2.6.1
pytest-profiling==1.7.0
pytest-repeat==0.8.0
pytest-tornado==0.8.1
pytest-tornasync==0.6.0.post2
tornado==6.0.1
I get this error when I clone this repo, and run
pytest
in it.
It looks like you didn't install the package from the cloned repository?
Typically you would install it with pip install -e .
if you plan to work on the code.
I get the same errors if I install that way.
$ pip install -e .
Obtaining file:///home/nedcr/Downloads/source_code/pytest-tornado
Requirement already satisfied: pytest>=3.6 in /home/nedcr/miniconda3/envs/ana/lib/python3.6/site-packages (from pytest-tornado==0.8.1) (5.4.3)
Requirement already satisfied: tornado>=4.1 in /home/nedcr/miniconda3/envs/ana/lib/python3.6/site-packages (from pytest-tornado==0.8.1) (6.0.1)
Requirement already satisfied: setuptools in /home/nedcr/miniconda3/envs/ana/lib/python3.6/site-packages (from pytest-tornado==0.8.1) (47.1.1.post20200529)
Requirement already satisfied: attrs>=17.4.0 in /home/nedcr/miniconda3/envs/ana/lib/python3.6/site-packages (from pytest>=3.6->pytest-tornado==0.8.1) (19.3.0)
Requirement already satisfied: packaging in /home/nedcr/miniconda3/envs/ana/lib/python3.6/site-packages (from pytest>=3.6->pytest-tornado==0.8.1) (20.4)
Requirement already satisfied: more-itertools>=4.0.0 in /home/nedcr/miniconda3/envs/ana/lib/python3.6/site-packages (from pytest>=3.6->pytest-tornado==0.8.1) (8.3.0)
Requirement already satisfied: py>=1.5.0 in /home/nedcr/miniconda3/envs/ana/lib/python3.6/site-packages (from pytest>=3.6->pytest-tornado==0.8.1) (1.8.1)
Requirement already satisfied: importlib-metadata>=0.12; python_version < "3.8" in /home/nedcr/miniconda3/envs/ana/lib/python3.6/site-packages (from pytest>=3.6->pytest-tornado==0.8.1) (1.6.1)
Requirement already satisfied: wcwidth in /home/nedcr/miniconda3/envs/ana/lib/python3.6/site-packages (from pytest>=3.6->pytest-tornado==0.8.1) (0.2.4)
Requirement already satisfied: pluggy<1.0,>=0.12 in /home/nedcr/miniconda3/envs/ana/lib/python3.6/site-packages (from pytest>=3.6->pytest-tornado==0.8.1) (0.13.1)
Requirement already satisfied: six in /home/nedcr/miniconda3/envs/ana/lib/python3.6/site-packages (from packaging->pytest>=3.6->pytest-tornado==0.8.1) (1.15.0)
Requirement already satisfied: pyparsing>=2.0.2 in /home/nedcr/miniconda3/envs/ana/lib/python3.6/site-packages (from packaging->pytest>=3.6->pytest-tornado==0.8.1) (2.4.7)
Requirement already satisfied: zipp>=0.5 in /home/nedcr/miniconda3/envs/ana/lib/python3.6/site-packages (from importlib-metadata>=0.12; python_version < "3.8"->pytest>=3.6->pytest-tornado==0.8.1) (3.1.0)
Installing collected packages: pytest-tornado
Running setup.py develop for pytest-tornado
Successfully installed pytest-tornado
$ pytest
======================================================================================================== test session starts =========================================================================================================
platform linux -- Python 3.6.10, pytest-5.4.3, py-1.8.1, pluggy-0.13.1
rootdir: /home/nedcr/Downloads/source_code/pytest-tornado
plugins: profiling-1.7.0, tornasync-0.6.0.post2, cov-2.6.1, repeat-0.8.0
collected 43 items
test/test_async.py ...xx.xxxX.xx [ 30%]
test/test_async_await.py .. [ 34%]
test/test_fixtures.py xx. [ 41%]
test/test_https_support.py xEEE [ 51%]
test/test_param.py ....x......xxx [ 83%]
test/test_server.py .EExxxE [100%]
=============================================================================================================== ERRORS ===============================================================================================================
_____________________________________________________________________________________ ERROR at setup of test_base_url_is_https_with_https_client _____________________________________________________________________________________
file /home/nedcr/Downloads/source_code/pytest-tornado/test/test_https_support.py, line 39
def test_base_url_is_https_with_https_client(https_client, base_url):
E fixture 'https_client' not found
> available fixtures: LineMatcher, __pytest_repeat_step_number, _config_for_test, _pytest, _sys_snapshot, app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, http_client, http_server, http_server_client, http_server_port, io_loop, linecomp, monkeypatch, no_cover, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, ssl_options, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_https_support.py:39
______________________________________________________________________________________ ERROR at setup of test_base_url_is_https_with_https_port ______________________________________________________________________________________
file /home/nedcr/Downloads/source_code/pytest-tornado/test/test_https_support.py, line 44
def test_base_url_is_https_with_https_port(https_port, base_url):
E fixture 'https_port' not found
> available fixtures: LineMatcher, __pytest_repeat_step_number, _config_for_test, _pytest, _sys_snapshot, app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, http_client, http_server, http_server_client, http_server_port, io_loop, linecomp, monkeypatch, no_cover, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, ssl_options, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_https_support.py:44
_____________________________________________________________________________________ ERROR at setup of test_base_url_is_https_with_https_server _____________________________________________________________________________________
file /home/nedcr/Downloads/source_code/pytest-tornado/test/test_https_support.py, line 49
def test_base_url_is_https_with_https_server(https_server, base_url):
E fixture 'https_server' not found
> available fixtures: LineMatcher, __pytest_repeat_step_number, _config_for_test, _pytest, _sys_snapshot, app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, http_client, http_server, http_server_client, http_server_port, io_loop, linecomp, monkeypatch, no_cover, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, ssl_options, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_https_support.py:49
_________________________________________________________________________________________________ ERROR at setup of test_http_client _________________________________________________________________________________________________
file /home/nedcr/Downloads/source_code/pytest-tornado/test/test_server.py, line 41
def test_http_client(http_client, base_url):
E fixture 'base_url' not found
> available fixtures: LineMatcher, __pytest_repeat_step_number, _config_for_test, _pytest, _sys_snapshot, app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, http_client, http_server, http_server_client, http_server_port, io_loop, linecomp, monkeypatch, no_cover, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_server.py:41
________________________________________________________________________________________ ERROR at setup of test_http_client_with_fetch_helper ________________________________________________________________________________________
file /home/nedcr/Downloads/source_code/pytest-tornado/test/test_server.py, line 50
def test_http_client_with_fetch_helper(http_client, base_url):
E fixture 'base_url' not found
> available fixtures: LineMatcher, __pytest_repeat_step_number, _config_for_test, _pytest, _sys_snapshot, app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, http_client, http_server, http_server_client, http_server_port, io_loop, linecomp, monkeypatch, no_cover, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_server.py:50
__________________________________________________________________________________________ ERROR at setup of test_base_url_default_is_http ___________________________________________________________________________________________
file /home/nedcr/Downloads/source_code/pytest-tornado/test/test_server.py, line 73
def test_base_url_default_is_http(base_url):
E fixture 'base_url' not found
> available fixtures: LineMatcher, __pytest_repeat_step_number, _config_for_test, _pytest, _sys_snapshot, app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, http_client, http_server, http_server_client, http_server_port, io_loop, linecomp, monkeypatch, no_cover, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_server.py:73
========================================================================================================== warnings summary ==========================================================================================================
test/test_async.py:27
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_async.py:27: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_async.py:32
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_async.py:32: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_async.py:38
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_async.py:38: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test(run_sync=False)
test/test_async.py:44
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_async.py:44: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_async.py:50
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_async.py:50: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_async.py:57
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_async.py:57: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_async.py:63
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_async.py:63: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test(timeout=2.1)
test/test_async.py:70
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_async.py:70: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test(timeout=0.1)
test/test_async.py:80
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_async.py:80: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_async.py:85
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_async.py:85: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_async.py:32
test/test_async.py:32: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_gen_test will be ignored
@pytest.mark.gen_test
test/test_async.py:38
test/test_async.py:38: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_gen_test_run_sync_false will be ignored
@pytest.mark.gen_test(run_sync=False)
test/test_async.py:50
test/test_async.py:50: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_generator_raises will be ignored
@pytest.mark.gen_test
test/test_async.py:57
test/test_async.py:57: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_explicit_gen_test_marker will be ignored
@pytest.mark.gen_test
test/test_async.py:63
test/test_async.py:63: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_gen_test_marker_with_params will be ignored
@pytest.mark.gen_test(timeout=2.1)
test/test_async.py:69
test/test_async.py:69: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_gen_test_with_timeout will be ignored
@pytest.mark.xfail(raises=TimeoutError)
test/test_async.py:80
test/test_async.py:80: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_gen_test will be ignored
@pytest.mark.gen_test
test/test_async.py:85
test/test_async.py:85: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_generator_raises will be ignored
@pytest.mark.gen_test
test/test_async_await.py:9
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_async_await.py:9: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_async_await.py:15
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_async_await.py:15: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test(run_sync=False)
test/test_fixtures.py:25
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_fixtures.py:25: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_fixtures.py:35
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_fixtures.py:35: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_fixtures.py:23
test/test_fixtures.py:23: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_uses_pytestmark_fixtures will be ignored
@pytest.mark.xfail(pytest.__version__ < '2.7.0',
test/test_fixtures.py:35
test/test_fixtures.py:35: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_uses_pytestmark_fixtures will be ignored
@pytest.mark.gen_test
test/test_https_support.py:33
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_https_support.py:33: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_https_support.py:33
test/test_https_support.py:33: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_hello_world will be ignored
@pytest.mark.gen_test
test/test_param.py:34
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_param.py:34: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_param.py:51
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_param.py:51: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_param.py:65
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_param.py:65: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_param.py:71
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_param.py:71: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_param.py:51
test/test_param.py:51: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_gen_test_parametrize will be ignored
@pytest.mark.gen_test
test/test_param.py:61
test/test_param.py:61: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_gen_test_fixture_any_order will be ignored
@pytest.mark.parametrize('input,expected', [
test/test_param.py:71
test/test_param.py:71: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_gen_test_param_fixture will be ignored
@pytest.mark.gen_test
test/test_server.py:55
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_server.py:55: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_server.py:61
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_server.py:61: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_server.py:67
/home/nedcr/Downloads/source_code/pytest-tornado/test/test_server.py:67: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_server.py:55
test/test_server.py:55: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_http_client_with_gen_test will be ignored
@pytest.mark.gen_test
test/test_server.py:61
test/test_server.py:61: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_get_url_with_path will be ignored
@pytest.mark.gen_test
test/test_server.py:67
test/test_server.py:67: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_http_client_raises_on_404 will be ignored
@pytest.mark.gen_test
test/test_fixtures.py::test_type_annotation
/home/nedcr/miniconda3/envs/ana/lib/python3.6/site-packages/_pytest/compat.py:333: PytestDeprecationWarning: The TerminalReporter.writer attribute is deprecated, use TerminalReporter._tw instead at your own risk.
See https://docs.pytest.org/en/latest/deprecations.html#terminalreporter-writer for more information.
return getattr(object, name, default)
-- Docs: https://docs.pytest.org/en/latest/warnings.html
====================================================================================================== short test summary info =======================================================================================================
ERROR test/test_https_support.py::test_base_url_is_https_with_https_client
ERROR test/test_https_support.py::test_base_url_is_https_with_https_port
ERROR test/test_https_support.py::test_base_url_is_https_with_https_server
ERROR test/test_server.py::test_http_client
ERROR test/test_server.py::test_http_client_with_fetch_helper
ERROR test/test_server.py::test_base_url_default_is_http
================================================================================== 19 passed, 17 xfailed, 1 xpassed, 40 warnings, 6 errors in 1.31s ==================================================================================
$ pip freeze|grep "\(pytest\|tornado\)"
pytest==5.4.3
pytest-cov==2.6.1
pytest-profiling==1.7.0
pytest-repeat==0.8.0
-e git+https://github.com/eugeniy/pytest-tornado.git@fb163a5952fcc2bc6e9fce211e72dbdc81bb1d0e#egg=pytest_tornado
pytest-tornasync==0.6.0.post2
tornado==6.0.1
Strange. When installed correctly, it should show up in the "plugins" list printed by pytest at the start of the run (e.g. form latest CI: plugins: tornado-0.8.1
). In your output it says plugins: profiling-1.7.0, tornasync-0.6.0.post2, cov-2.6.1, repeat-0.8.0
.
Maybe there is an issue with you environment? Some tips to debug could be to run which pytest
and which pip
, and ensure they are all working towards the same Python environment. You could try creating a new environment as well?
I found this strange aswell.
One thing that did stick out in @naught101 s pytest env info is pytest-tornasync
.
Once I install this the tests break for me aswell.
Reproduction steps including output
18:20:39 niko@elementary pytest-tornado master ? python3 -m venv venv2
18:20:48 niko@elementary pytest-tornado master ? source venv2/bin/activate
18:20:54 niko@elementary pytest-tornado master ? pip install -e .
...
Successfully installed attrs-19.3.0 importlib-metadata-1.7.0 more-itertools-8.4.0 packaging-20.4 pluggy-0.13.1 py-1.9.0 pyparsing-2.4.7 pytest-5.4.3 pytest-tornado six-1.15.0 tornado-6.0.4 wcwidth-0.2.5 zipp-3.1.0
18:21:17 niko@elementary pytest-tornado master ? pytest
============================================================== test session starts ==============================================================
platform linux -- Python 3.6.9, pytest-5.4.3, py-1.9.0, pluggy-0.13.1
rootdir: /home/niko/dev/pytest-tornado
plugins: tornado-0.8.0
collected 46 items
test/test_async.py .........x... [ 28%]
test/test_async_await.py .. [ 32%]
test/test_fixtures.py ... [ 39%]
test/test_https_support.py ss.s [ 47%]
test/test_param.py ....x............ [ 84%]
test/test_server.py ....... [100%]
=============================================================== warnings summary ================================================================
pytest_tornado/plugin.py:70: 17 tests with warnings
/home/niko/dev/pytest-tornado/pytest_tornado/plugin.py:70: PytestDeprecationWarning: direct construction of Function has been deprecated, please use Function.from_parent
item = pytest.Function(name, parent=collector)
test/test_fixtures.py::test_type_annotation
/home/niko/dev/pytest-tornado/venv2/lib/python3.6/site-packages/_pytest/compat.py:333: PytestDeprecationWarning: The TerminalReporter.writer attribute is deprecated, use TerminalReporter._tw instead at your own risk.
See https://docs.pytest.org/en/latest/deprecations.html#terminalreporter-writer for more information.
return getattr(object, name, default)
-- Docs: https://docs.pytest.org/en/latest/warnings.html
============================================= 41 passed, 3 skipped, 2 xfailed, 18 warnings in 0.78s =============================================
18:22:06 niko@elementary pytest-tornado master ? pip install pytest-tornasync 2 ↵
...
Successfully installed pytest-tornasync-0.6.0.post2
18:22:44 niko@elementary pytest-tornado master ? pytest
============================================================== test session starts ==============================================================
platform linux -- Python 3.6.9, pytest-5.4.3, py-1.9.0, pluggy-0.13.1
rootdir: /home/niko/dev/pytest-tornado
plugins: tornasync-0.6.0.post2
collected 43 items
test/test_async.py ...xx.xxxX.xx [ 30%]
test/test_async_await.py .. [ 34%]
test/test_fixtures.py xx. [ 41%]
test/test_https_support.py xEEE [ 51%]
test/test_param.py ....x......xxx [ 83%]
test/test_server.py .EExxxE [100%]
==================================================================== ERRORS =====================================================================
__________________________________________ ERROR at setup of test_base_url_is_https_with_https_client ___________________________________________
file /home/niko/dev/pytest-tornado/test/test_https_support.py, line 39
def test_base_url_is_https_with_https_client(https_client, base_url):
E fixture 'https_client' not found
> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, http_client, http_server, http_server_client, http_server_port, io_loop, linecomp, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, ssl_options, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/niko/dev/pytest-tornado/test/test_https_support.py:39
___________________________________________ ERROR at setup of test_base_url_is_https_with_https_port ____________________________________________
file /home/niko/dev/pytest-tornado/test/test_https_support.py, line 44
def test_base_url_is_https_with_https_port(https_port, base_url):
E fixture 'https_port' not found
> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, http_client, http_server, http_server_client, http_server_port, io_loop, linecomp, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, ssl_options, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/niko/dev/pytest-tornado/test/test_https_support.py:44
__________________________________________ ERROR at setup of test_base_url_is_https_with_https_server ___________________________________________
file /home/niko/dev/pytest-tornado/test/test_https_support.py, line 49
def test_base_url_is_https_with_https_server(https_server, base_url):
E fixture 'https_server' not found
> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, http_client, http_server, http_server_client, http_server_port, io_loop, linecomp, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, ssl_options, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/niko/dev/pytest-tornado/test/test_https_support.py:49
______________________________________________________ ERROR at setup of test_http_client _______________________________________________________
file /home/niko/dev/pytest-tornado/test/test_server.py, line 41
def test_http_client(http_client, base_url):
E fixture 'base_url' not found
> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, http_client, http_server, http_server_client, http_server_port, io_loop, linecomp, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/niko/dev/pytest-tornado/test/test_server.py:41
_____________________________________________ ERROR at setup of test_http_client_with_fetch_helper ______________________________________________
file /home/niko/dev/pytest-tornado/test/test_server.py, line 50
def test_http_client_with_fetch_helper(http_client, base_url):
E fixture 'base_url' not found
> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, http_client, http_server, http_server_client, http_server_port, io_loop, linecomp, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/niko/dev/pytest-tornado/test/test_server.py:50
________________________________________________ ERROR at setup of test_base_url_default_is_http ________________________________________________
file /home/niko/dev/pytest-tornado/test/test_server.py, line 73
def test_base_url_default_is_http(base_url):
E fixture 'base_url' not found
> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, http_client, http_server, http_server_client, http_server_port, io_loop, linecomp, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
/home/niko/dev/pytest-tornado/test/test_server.py:73
=============================================================== warnings summary ================================================================
test/test_async.py:27
/home/niko/dev/pytest-tornado/test/test_async.py:27: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_async.py:32
/home/niko/dev/pytest-tornado/test/test_async.py:32: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_async.py:38
/home/niko/dev/pytest-tornado/test/test_async.py:38: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test(run_sync=False)
test/test_async.py:44
/home/niko/dev/pytest-tornado/test/test_async.py:44: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_async.py:50
/home/niko/dev/pytest-tornado/test/test_async.py:50: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_async.py:57
/home/niko/dev/pytest-tornado/test/test_async.py:57: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_async.py:63
/home/niko/dev/pytest-tornado/test/test_async.py:63: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test(timeout=2.1)
test/test_async.py:70
/home/niko/dev/pytest-tornado/test/test_async.py:70: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test(timeout=0.1)
test/test_async.py:80
/home/niko/dev/pytest-tornado/test/test_async.py:80: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_async.py:85
/home/niko/dev/pytest-tornado/test/test_async.py:85: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_async.py:32
test/test_async.py:32: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_gen_test will be ignored
@pytest.mark.gen_test
test/test_async.py:38
test/test_async.py:38: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_gen_test_run_sync_false will be ignored
@pytest.mark.gen_test(run_sync=False)
test/test_async.py:50
test/test_async.py:50: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_generator_raises will be ignored
@pytest.mark.gen_test
test/test_async.py:57
test/test_async.py:57: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_explicit_gen_test_marker will be ignored
@pytest.mark.gen_test
test/test_async.py:63
test/test_async.py:63: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_gen_test_marker_with_params will be ignored
@pytest.mark.gen_test(timeout=2.1)
test/test_async.py:69
test/test_async.py:69: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_gen_test_with_timeout will be ignored
@pytest.mark.xfail(raises=TimeoutError)
test/test_async.py:80
test/test_async.py:80: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_gen_test will be ignored
@pytest.mark.gen_test
test/test_async.py:85
test/test_async.py:85: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_generator_raises will be ignored
@pytest.mark.gen_test
test/test_async_await.py:9
/home/niko/dev/pytest-tornado/test/test_async_await.py:9: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_async_await.py:15
/home/niko/dev/pytest-tornado/test/test_async_await.py:15: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test(run_sync=False)
test/test_fixtures.py:25
/home/niko/dev/pytest-tornado/test/test_fixtures.py:25: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_fixtures.py:35
/home/niko/dev/pytest-tornado/test/test_fixtures.py:35: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_fixtures.py:23
test/test_fixtures.py:23: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_uses_pytestmark_fixtures will be ignored
@pytest.mark.xfail(pytest.__version__ < '2.7.0',
test/test_fixtures.py:35
test/test_fixtures.py:35: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_uses_pytestmark_fixtures will be ignored
@pytest.mark.gen_test
test/test_https_support.py:33
/home/niko/dev/pytest-tornado/test/test_https_support.py:33: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_https_support.py:33
test/test_https_support.py:33: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_hello_world will be ignored
@pytest.mark.gen_test
test/test_param.py:34
/home/niko/dev/pytest-tornado/test/test_param.py:34: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_param.py:51
/home/niko/dev/pytest-tornado/test/test_param.py:51: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_param.py:65
/home/niko/dev/pytest-tornado/test/test_param.py:65: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_param.py:71
/home/niko/dev/pytest-tornado/test/test_param.py:71: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_param.py:51
test/test_param.py:51: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_gen_test_parametrize will be ignored
@pytest.mark.gen_test
test/test_param.py:61
test/test_param.py:61: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_gen_test_fixture_any_order will be ignored
@pytest.mark.parametrize('input,expected', [
test/test_param.py:71
test/test_param.py:71: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_gen_test_param_fixture will be ignored
@pytest.mark.gen_test
test/test_server.py:55
/home/niko/dev/pytest-tornado/test/test_server.py:55: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_server.py:61
/home/niko/dev/pytest-tornado/test/test_server.py:61: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_server.py:67
/home/niko/dev/pytest-tornado/test/test_server.py:67: PytestUnknownMarkWarning: Unknown pytest.mark.gen_test - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
@pytest.mark.gen_test
test/test_server.py:55
test/test_server.py:55: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_http_client_with_gen_test will be ignored
@pytest.mark.gen_test
test/test_server.py:61
test/test_server.py:61: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_get_url_with_path will be ignored
@pytest.mark.gen_test
test/test_server.py:67
test/test_server.py:67: PytestCollectionWarning: yield tests were removed in pytest 4.0 - test_http_client_raises_on_404 will be ignored
@pytest.mark.gen_test
test/test_fixtures.py::test_type_annotation
/home/niko/dev/pytest-tornado/venv2/lib/python3.6/site-packages/_pytest/compat.py:333: PytestDeprecationWarning: The TerminalReporter.writer attribute is deprecated, use TerminalReporter._tw instead at your own risk.
See https://docs.pytest.org/en/latest/deprecations.html#terminalreporter-writer for more information.
return getattr(object, name, default)
-- Docs: https://docs.pytest.org/en/latest/warnings.html
============================================================ short test summary info ============================================================
ERROR test/test_https_support.py::test_base_url_is_https_with_https_client
ERROR test/test_https_support.py::test_base_url_is_https_with_https_port
ERROR test/test_https_support.py::test_base_url_is_https_with_https_server
ERROR test/test_server.py::test_http_client
ERROR test/test_server.py::test_http_client_with_fetch_helper
ERROR test/test_server.py::test_base_url_default_is_http
======================================= 19 passed, 17 xfailed, 1 xpassed, 40 warnings, 6 errors in 1.46s ========================================
@naught101 does it work for you if you remove the pytest-tornasync
plugin from your environment?
Yes, removing pytest-tornasync seems to have fixed the problem. Thanks for the help :)