-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.6.7: pytest warnings #248
Comments
Tested. Looks clean now. + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pytest-cases-3.6.7-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pytest-cases-3.6.7-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -q
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.12, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/python-pytest-cases-3.6.7, configfile: setup.cfg, testpaths: tests/
plugins: cases-3.6.7, asyncio-0.16.0, steps-1.8.0, harvest-1.10.3
collected 1435 items
tests/test_plugin_installed.py . [ 0%]
tests/cases/doc/test_doc.py ..............s.....s.....s.s....s....... [ 2%]
tests/cases/doc/test_doc_alternate.py ...s.s.. [ 3%]
tests/cases/doc/test_doc_cache.py ..... [ 3%]
tests/cases/doc/test_doc_debug.py .......... [ 4%]
tests/cases/doc/test_doc_filters_n_tags.py .......... [ 5%]
tests/cases/doc/test_doc_filters_n_tags2.py ...... [ 5%]
tests/cases/doc/test_doc_get_current_case_id.py .... [ 5%]
tests/cases/doc/test_doc_get_current_cases.py . [ 5%]
tests/cases/doc/test_doc_ids.py ..... [ 6%]
tests/cases/doc/test_fixtures.py .... [ 6%]
tests/cases/doc/test_generators.py ..s..ss... [ 7%]
tests/cases/doc/test_get_current_cases.py .......................................................................................................................... [ 15%]
.................................................................................................................................................................... [ 27%]
.......................... [ 29%]
tests/cases/doc/test_get_current_cases_negative.py ....................... [ 30%]
tests/cases/doc/test_get_current_cases_params.py .... [ 30%]
tests/cases/doc/test_indirect.py ....... [ 31%]
tests/cases/doc/test_joss.py ... [ 31%]
tests/cases/doc/test_nested.py ........ [ 32%]
tests/cases/doc/test_parametrize_alt.py .... [ 32%]
tests/cases/issues/test_issue_117.py . [ 32%]
tests/cases/issues/test_issue_125.py ... [ 32%]
tests/cases/issues/test_issue_126.py ............. [ 33%]
tests/cases/issues/test_issue_126_2.py ........................... [ 35%]
tests/cases/issues/test_issue_128.py . [ 35%]
tests/cases/issues/test_issue_128_2.py .. [ 35%]
tests/cases/issues/test_issue_142.py ...... [ 36%]
tests/cases/issues/test_issue_142_2.py ....... [ 36%]
tests/cases/issues/test_issue_151.py ............ [ 37%]
tests/cases/issues/test_issue_152.py .. [ 37%]
tests/cases/issues/test_issue_154.py ..ss.s..ss..ss.s..ss..ss.s..ss..ss.s..ss..ss.s..ss..ss.s..ss..ss.s..ss..ss.s..ss..ss.s..ss..ss.s..ss..ss.s..ss..ss.s..ss..ss.s. [ 46%]
.ss..ss.s..ss..ss.s..ss..ss.s..ss. [ 48%]
tests/cases/issues/test_issue_158.py . [ 48%]
tests/cases/issues/test_issue_158_2.py .. [ 49%]
tests/cases/issues/test_issue_159.py ..... [ 49%]
tests/cases/issues/test_issue_165.py s [ 49%]
tests/cases/issues/test_issue_168.py ...s.. [ 49%]
tests/cases/issues/test_issue_171.py ........... [ 50%]
tests/cases/issues/test_issue_179.py ..... [ 51%]
tests/cases/issues/test_issue_191.py .. [ 51%]
tests/cases/issues/test_issue_193.py .... [ 51%]
tests/cases/issues/test_issue_193_bis.py . [ 51%]
tests/cases/issues/test_issue_202.py .. [ 51%]
tests/cases/issues/test_issue_211.py s... [ 51%]
tests/cases/issues/test_issue_212.py .... [ 52%]
tests/cases/issues/test_issue_230.py ... [ 52%]
tests/cases/issues/test_py35_issue_176.py ... [ 52%]
tests/cases/issues/test_py35_issue_243.py .. [ 52%]
tests/cases/issues/issue_196/test_issue_196.py . [ 52%]
tests/cases/issues/issue_225/test_sth.py .. [ 52%]
tests/cases/others/test_bound_methods.py ........................... [ 54%]
tests/cases/others/test_glob_low_level.py . [ 54%]
tests/cases/so/test_so2.py loading file file1
.loading file file2
..loading file file3
.... [ 55%]
tests/cases/so/test_so3.py . [ 55%]
tests/pytest_extension/doc/test_doc_fixture_graph.py ................ [ 56%]
tests/pytest_extension/doc/test_doc_fixture_graph_union.py .......................... [ 58%]
tests/pytest_extension/doc/test_doc_fixture_graph_union_normal.py ................. [ 59%]
tests/pytest_extension/doc/test_doc_fixture_graph_union_union.py ......................... [ 61%]
tests/pytest_extension/doc/test_doc_parametrize.py ............. [ 62%]
tests/pytest_extension/doc/test_doc_parametrize_customids.py ............ [ 63%]
tests/pytest_extension/fixtures/test_hook.py ..... [ 63%]
tests/pytest_extension/fixtures/test_issue_github_54.py . [ 63%]
tests/pytest_extension/fixtures/test_so3.py . [ 63%]
tests/pytest_extension/fixtures/fixture_plus_and_others/test_fixture_unpacking.py ... [ 63%]
tests/pytest_extension/fixtures/fixture_plus_and_others/test_fixture_unpacking2.py ....... [ 64%]
tests/pytest_extension/fixtures/fixture_plus_and_others/test_fixture_unpacking_cls.py .. [ 64%]
tests/pytest_extension/fixtures/fixture_plus_and_others/test_fixtures_parametrize.py ......s..s. [ 65%]
tests/pytest_extension/fixtures/fixture_plus_and_others/test_fixtures_parametrize_stereo.py ............ [ 65%]
tests/pytest_extension/fixtures/fixture_plus_and_others/test_fixtures_paramfixtures.py ................. [ 67%]
tests/pytest_extension/fixtures/fixture_plus_and_others/test_fixtures_paramfixtures_marks.py ..s. [ 67%]
tests/pytest_extension/fixtures/fixture_plus_and_others/test_skip_on_paramz_fixture.py .s.s.s. [ 67%]
tests/pytest_extension/fixtures/fixture_unions/test_fixture_closure_edits.py .... [ 68%]
tests/pytest_extension/fixtures/fixture_unions/test_fixture_union_custom_mark.py ..sss. [ 68%]
tests/pytest_extension/fixtures/fixture_unions/test_fixture_union_ids.py ..................... [ 70%]
tests/pytest_extension/fixtures/fixture_unions/test_fixture_union_setup_teardown.py ... [ 70%]
tests/pytest_extension/fixtures/fixture_unions/test_fixture_union_setup_teardown2.py ...... [ 70%]
tests/pytest_extension/fixtures/fixture_unions/test_fixture_union_setup_teardown3.py ..... [ 71%]
tests/pytest_extension/fixtures/fixture_unions/test_fixtures_union_0simplest.py .... [ 71%]
tests/pytest_extension/fixtures/fixture_unions/test_fixtures_union_1simple.py ....... [ 71%]
tests/pytest_extension/fixtures/fixture_unions/test_fixtures_union_2hard.py ................ [ 72%]
tests/pytest_extension/fixtures/fixture_unions/test_fixtures_union_3parametrize_plus.py ..... [ 73%]
tests/pytest_extension/fixtures/fixture_unions/test_so.py ...... [ 73%]
tests/pytest_extension/issues/test_issue_114.py .. [ 73%]
tests/pytest_extension/issues/test_issue_115.py .......... [ 74%]
tests/pytest_extension/issues/test_issue_124.py ..... [ 74%]
tests/pytest_extension/issues/test_issue_138.py .... [ 75%]
tests/pytest_extension/issues/test_issue_148.py ......... [ 75%]
tests/pytest_extension/issues/test_issue_149.py .. [ 75%]
tests/pytest_extension/issues/test_issue_177.py ....ss..s... [ 76%]
tests/pytest_extension/issues/test_issue_182.py ... [ 77%]
tests/pytest_extension/issues/test_issue_199.py .......... [ 77%]
tests/pytest_extension/issues/test_issue_201.py . [ 77%]
tests/pytest_extension/issues/test_issue_234.py ... [ 77%]
tests/pytest_extension/issues/test_issue_classes.py ...... [ 78%]
tests/pytest_extension/issues/test_issue_doctests.py . [ 78%]
tests/pytest_extension/issues/test_issue_fixture_union1.py ... [ 78%]
tests/pytest_extension/issues/test_issue_fixture_union2.py ....... [ 79%]
tests/pytest_extension/issues/test_issue_indirect_fixture_param.py . [ 79%]
tests/pytest_extension/issues/test_issue_pytest_70.py ...... [ 79%]
tests/pytest_extension/issues/test_issue_python2_str.py ... [ 79%]
tests/pytest_extension/issues/test_issue_so_76.py ................................................. [ 83%]
tests/pytest_extension/issues/test_parametrize_with_lists.py ..... [ 83%]
tests/pytest_extension/issues/test_pytest_py35_asyncio.py . [ 83%]
tests/pytest_extension/meta/test_all.py .. [ 83%]
tests/pytest_extension/order/test_fixture_order_respects_scope.py . [ 83%]
tests/pytest_extension/order/session_optim/test_reorder_default_normal.py .......... [ 84%]
tests/pytest_extension/others/test_assert_exception.py . [ 84%]
tests/pytest_extension/parametrize_plus/test_basics_misc.py .................. [ 85%]
tests/pytest_extension/parametrize_plus/test_filter.py ................ [ 87%]
tests/pytest_extension/parametrize_plus/test_fixture_ref_basic1.py ............. [ 87%]
tests/pytest_extension/parametrize_plus/test_fixture_ref_basic2.py ...... [ 88%]
tests/pytest_extension/parametrize_plus/test_fixture_ref_basic3_tuples.py ............ [ 89%]
tests/pytest_extension/parametrize_plus/test_fixture_ref_basic4_ids.py ......................... [ 90%]
tests/pytest_extension/parametrize_plus/test_fixture_ref_custom1.py ........... [ 91%]
tests/pytest_extension/parametrize_plus/test_fixture_ref_custom2.py s.... [ 92%]
tests/pytest_extension/parametrize_plus/test_fixture_ref_custom3.py ......... [ 92%]
tests/pytest_extension/parametrize_plus/test_fixture_ref_custom4_tuples.py ....... [ 93%]
tests/pytest_extension/parametrize_plus/test_getcallspecs.py .. [ 93%]
tests/pytest_extension/parametrize_plus/test_lazy_value.py .s.....ss.s... [ 94%]
tests/pytest_extension/parametrize_plus/test_lazy_value__custom_ids.py .s.....ss.s... [ 95%]
tests/pytest_extension/parametrize_plus/test_lazy_value_and_fixture_ref.py ....... [ 95%]
tests/pytest_extension/parametrize_plus/test_lazy_value_and_fixture_ref2.py ..s......... [ 96%]
tests/pytest_extension/parametrize_plus/test_lazy_value_and_fixture_ref3.py ..s......... [ 97%]
tests/pytest_extension/parametrize_plus/test_lazy_value_low_level.py ... [ 97%]
tests/pytest_extension/parametrize_plus/test_lazy_value_so.py .......... [ 98%]
tests/pytest_extension/parametrize_plus/test_parametrizing_a_class.py ... [ 98%]
tests/pytest_extension/parametrize_plus/test_so2.py ...... [ 98%]
tests/pytest_extension/parametrize_plus/test_so2_dynamic.py ..... [ 99%]
tests/pytest_extension/parametrize_plus/test_so2_new.py ..... [ 99%]
tests/pytest_extension/parametrize_plus/test_so2_simplified.py .....
========================================================================= short test summary info ==========================================================================
SKIPPED [1] tests/cases/doc/test_doc.py:100: unconditional skip
SKIPPED [4] tests/cases/doc/test_doc.py:123: unconditional skip
SKIPPED [2] tests/cases/doc/test_doc_alternate.py:14: unconditional skip
SKIPPED [3] tests/cases/doc/test_generators.py: unconditional skip
SKIPPED [80] tests/cases/issues/test_issue_154.py: unconditional skip
SKIPPED [1] tests/cases/issues/test_issue_165.py: got empty parameter set ['empty'], function test_empty_parameter_set at /home/tkloczko/rpmbuild/BUILD/python-pytest-cases-3.6.7/tests/cases/issues/test_issue_165.py:8
SKIPPED [1] tests/cases/issues/test_issue_168.py: unconditional skip
SKIPPED [1] tests/cases/issues/test_issue_211.py:31: joe skipped
SKIPPED [2] tests/pytest_extension/fixtures/fixture_plus_and_others/test_fixtures_parametrize.py: unconditional skip
SKIPPED [1] tests/pytest_extension/fixtures/fixture_plus_and_others/test_fixtures_paramfixtures_marks.py: unconditional skip
SKIPPED [1] tests/pytest_extension/fixtures/fixture_plus_and_others/test_skip_on_paramz_fixture.py:7: unconditional skip
SKIPPED [2] tests/pytest_extension/fixtures/fixture_plus_and_others/test_skip_on_paramz_fixture.py: unconditional skip
SKIPPED [3] tests/pytest_extension/fixtures/fixture_unions/test_fixture_union_custom_mark.py: unconditional skip
SKIPPED [2] tests/pytest_extension/issues/test_issue_177.py:18: unconditional skip
SKIPPED [1] tests/pytest_extension/issues/test_issue_177.py:37: unconditional skip
SKIPPED [1] tests/pytest_extension/parametrize_plus/test_fixture_ref_custom2.py:24: condition: 5>4
SKIPPED [1] tests/pytest_extension/parametrize_plus/test_lazy_value.py:51: unconditional skip
SKIPPED [3] tests/pytest_extension/parametrize_plus/test_lazy_value.py:73: unconditional skip
SKIPPED [1] tests/pytest_extension/parametrize_plus/test_lazy_value__custom_ids.py:63: unconditional skip
SKIPPED [3] tests/pytest_extension/parametrize_plus/test_lazy_value__custom_ids.py:85: unconditional skip
SKIPPED [1] tests/pytest_extension/parametrize_plus/test_lazy_value_and_fixture_ref2.py: unconditional skip
SKIPPED [1] tests/pytest_extension/parametrize_plus/test_lazy_value_and_fixture_ref3.py: unconditional skip
==================================================================== 1319 passed, 116 skipped in 6.83s ===================================================================== I have some additional question (if may I ..) ==================================================================== 1319 passed, 116 skipped in 6.83s =====================================================================
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:80: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-2ee31231-5603-4575-b657-8d6ea9e19e0f/test_rmtree_errorhandler_rerai0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_rmtree_errorhandler_rerai0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:80: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-2ee31231-5603-4575-b657-8d6ea9e19e0f/test_rmtree_errorhandler_reado0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_rmtree_errorhandler_reado0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:80: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-2ee31231-5603-4575-b657-8d6ea9e19e0f/test_safe_delete_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_delete_no_perms0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:80: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-2ee31231-5603-4575-b657-8d6ea9e19e0f/test_safe_set_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_set_no_perms0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:80: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-2ee31231-5603-4575-b657-8d6ea9e19e0f/test_safe_get_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_get_no_perms0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:80: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-2ee31231-5603-4575-b657-8d6ea9e19e0f
<class 'OSError'>: [Errno 39] Directory not empty: '/tmp/pytest-of-tkloczko/garbage-2ee31231-5603-4575-b657-8d6ea9e19e0f'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:80: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-0e7a3794-9f58-41c1-afe1-022c3a44f27d/test_rmtree_errorhandler_rerai0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_rmtree_errorhandler_rerai0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:80: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-0e7a3794-9f58-41c1-afe1-022c3a44f27d/test_rmtree_errorhandler_reado0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_rmtree_errorhandler_reado0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:80: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-0e7a3794-9f58-41c1-afe1-022c3a44f27d/test_safe_delete_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_delete_no_perms0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:80: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-0e7a3794-9f58-41c1-afe1-022c3a44f27d/test_safe_set_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_set_no_perms0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:80: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-0e7a3794-9f58-41c1-afe1-022c3a44f27d/test_safe_get_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_get_no_perms0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:80: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-0e7a3794-9f58-41c1-afe1-022c3a44f27d
<class 'OSError'>: [Errno 39] Directory not empty: '/tmp/pytest-of-tkloczko/garbage-0e7a3794-9f58-41c1-afe1-022c3a44f27d'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:80: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-fbb5ba3f-7ba9-42fc-ad58-cde446e68beb/test_rmtree_errorhandler_rerai0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_rmtree_errorhandler_rerai0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:80: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-fbb5ba3f-7ba9-42fc-ad58-cde446e68beb/test_rmtree_errorhandler_reado0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_rmtree_errorhandler_reado0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:80: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-fbb5ba3f-7ba9-42fc-ad58-cde446e68beb/test_safe_delete_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_delete_no_perms0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:80: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-fbb5ba3f-7ba9-42fc-ad58-cde446e68beb/test_safe_set_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_set_no_perms0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:80: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-fbb5ba3f-7ba9-42fc-ad58-cde446e68beb/test_safe_get_no_perms0
<class 'OSError'>: [Errno 39] Directory not empty: 'test_safe_get_no_perms0'
warnings.warn(
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:80: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-fbb5ba3f-7ba9-42fc-ad58-cde446e68beb
<class 'OSError'>: [Errno 39] Directory not empty: '/tmp/pytest-of-tkloczko/garbage-fbb5ba3f-7ba9-42fc-ad58-cde446e68beb'
warnings.warn( It does not cause that pytest is finishing with non 0 exit code however it look a bit odd. |
Thanks @kloczek ! Not sure where this comes from. Sometimes the pytest It is hard to investigate without reducing the number of tests and finding a minimal reproducible example... |
Do you thingk that it may be worth to ask |
Just found that |
Looks like latest pytest shows some warnings.
The text was updated successfully, but these errors were encountered: