Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 676948 Details for
Bug 758737
dev-python/pytest-regressions-2.0.2: failed (test phase)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
pytest-regressions-2.0.2-build.log
pytest-regressions-2.0.2-build.log (text/plain), 62.98 KB, created by
Joonas Niilola
on 2020-12-06 08:23:25 UTC
(
hide
)
Description:
pytest-regressions-2.0.2-build.log
Filename:
MIME Type:
Creator:
Joonas Niilola
Created:
2020-12-06 08:23:25 UTC
Size:
62.98 KB
patch
obsolete
> * Package: dev-python/pytest-regressions-2.0.2 > * Repository: gentoo > * Maintainer: andrewammerlaan@riseup.net proxy-maint@gentoo.org > * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_8 test userland_GNU > * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>>> Unpacking source... >>>> Unpacking pytest-regressions-2.0.2.tar.gz to /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work >>>> Source unpacked in /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work >>>> Preparing source in /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2 ... >>>> Source prepared. >>>> Configuring source in /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2 ... >>>> Source configured. >>>> Compiling source in /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2 ... > * python3_8: running distutils-r1_run_phase distutils-r1_python_compile >python3.8 setup.py build -j 16 >running build >running build_py >creating /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/lib/pytest_regressions >copying src/pytest_regressions/testing.py -> /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/lib/pytest_regressions >copying src/pytest_regressions/data_regression.py -> /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/lib/pytest_regressions >copying src/pytest_regressions/plugin.py -> /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/lib/pytest_regressions >copying src/pytest_regressions/num_regression.py -> /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/lib/pytest_regressions >copying src/pytest_regressions/common.py -> /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/lib/pytest_regressions >copying src/pytest_regressions/file_regression.py -> /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/lib/pytest_regressions >copying src/pytest_regressions/__init__.py -> /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/lib/pytest_regressions >copying src/pytest_regressions/image_regression.py -> /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/lib/pytest_regressions >warning: build_py: byte-compiling is disabled, skipping. > > * Using python3.9 in global scope > * python3_9: running distutils-r1_run_phase python_compile_all >>>> Source compiled. >>>> Test phase: dev-python/pytest-regressions-2.0.2 > * python3_8: running distutils-r1_run_phase python_test >python3.8 setup.py install --home=/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/test --install-lib=/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/test/lib --install-scripts=/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/test/scripts >running install >running bdist_egg >running egg_info >writing src/pytest_regressions.egg-info/PKG-INFO >writing dependency_links to src/pytest_regressions.egg-info/dependency_links.txt >writing entry points to src/pytest_regressions.egg-info/entry_points.txt >writing requirements to src/pytest_regressions.egg-info/requires.txt >writing top-level names to src/pytest_regressions.egg-info/top_level.txt >reading manifest file 'src/pytest_regressions.egg-info/SOURCES.txt' >writing manifest file 'src/pytest_regressions.egg-info/SOURCES.txt' >installing library code to /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/bdist.linux-x86_64/egg >running install_lib >running build_py >warning: build_py: byte-compiling is disabled, skipping. > >creating /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/bdist.linux-x86_64 >creating /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/bdist.linux-x86_64/egg >creating /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/bdist.linux-x86_64/egg/pytest_regressions >copying /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/lib/pytest_regressions/testing.py -> /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/bdist.linux-x86_64/egg/pytest_regressions >copying /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/lib/pytest_regressions/data_regression.py -> /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/bdist.linux-x86_64/egg/pytest_regressions >copying /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/lib/pytest_regressions/plugin.py -> /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/bdist.linux-x86_64/egg/pytest_regressions >copying /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/lib/pytest_regressions/num_regression.py -> /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/bdist.linux-x86_64/egg/pytest_regressions >copying /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/lib/pytest_regressions/common.py -> /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/bdist.linux-x86_64/egg/pytest_regressions >copying /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/lib/pytest_regressions/file_regression.py -> /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/bdist.linux-x86_64/egg/pytest_regressions >copying /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/lib/pytest_regressions/__init__.py -> /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/bdist.linux-x86_64/egg/pytest_regressions >copying /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/lib/pytest_regressions/image_regression.py -> /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/bdist.linux-x86_64/egg/pytest_regressions >warning: install_lib: byte-compiling is disabled, skipping. > >creating /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/bdist.linux-x86_64/egg/EGG-INFO >copying src/pytest_regressions.egg-info/PKG-INFO -> /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/bdist.linux-x86_64/egg/EGG-INFO >copying src/pytest_regressions.egg-info/SOURCES.txt -> /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/bdist.linux-x86_64/egg/EGG-INFO >copying src/pytest_regressions.egg-info/dependency_links.txt -> /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/bdist.linux-x86_64/egg/EGG-INFO >copying src/pytest_regressions.egg-info/entry_points.txt -> /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/bdist.linux-x86_64/egg/EGG-INFO >copying src/pytest_regressions.egg-info/requires.txt -> /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/bdist.linux-x86_64/egg/EGG-INFO >copying src/pytest_regressions.egg-info/top_level.txt -> /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/bdist.linux-x86_64/egg/EGG-INFO >zip_safe flag not set; analyzing archive contents... >creating /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/dist >creating '/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/dist/pytest_regressions-2.0.2-py3.8.egg' and adding '/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/bdist.linux-x86_64/egg' to it >removing '/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/bdist.linux-x86_64/egg' (and everything under it) >Processing pytest_regressions-2.0.2-py3.8.egg >Copying pytest_regressions-2.0.2-py3.8.egg to /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/test/lib >Adding pytest-regressions 2.0.2 to easy-install.pth file > >Installed /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/test/lib/pytest_regressions-2.0.2-py3.8.egg >Processing dependencies for pytest-regressions==2.0.2 >Searching for PyYAML==5.3.1 >Best match: PyYAML 5.3.1 >Adding PyYAML 5.3.1 to easy-install.pth file > >Using /usr/lib/python3.8/site-packages >Searching for pytest==6.1.2 >Best match: pytest 6.1.2 >Adding pytest 6.1.2 to easy-install.pth file >Installing py.test script to /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/test/scripts >Installing pytest script to /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/test/scripts > >Using /usr/lib/python3.8/site-packages >Searching for pytest-datadir==1.3.1 >Best match: pytest-datadir 1.3.1 >Adding pytest-datadir 1.3.1 to easy-install.pth file > >Using /usr/lib/python3.8/site-packages >Searching for toml==0.10.1 >Best match: toml 0.10.1 >Adding toml 0.10.1 to easy-install.pth file > >Using /usr/lib/python3.8/site-packages >Searching for py==1.9.0 >Best match: py 1.9.0 >Adding py 1.9.0 to easy-install.pth file > >Using /usr/lib/python3.8/site-packages >Searching for pluggy==0.13.1 >Best match: pluggy 0.13.1 >Adding pluggy 0.13.1 to easy-install.pth file > >Using /usr/lib/python3.8/site-packages >Searching for packaging==20.4 >Best match: packaging 20.4 >Adding packaging 20.4 to easy-install.pth file > >Using /usr/lib/python3.8/site-packages >Searching for iniconfig==1.0.0 >Best match: iniconfig 1.0.0 >Adding iniconfig 1.0.0 to easy-install.pth file > >Using /usr/lib/python3.8/site-packages >Searching for attrs==20.1.0 >Best match: attrs 20.1.0 >Adding attrs 20.1.0 to easy-install.pth file > >Using /usr/lib/python3.8/site-packages >Finished processing dependencies for pytest-regressions==2.0.2 >======================================= test session starts ======================================== >platform linux -- Python 3.8.6, pytest-6.1.2, py-1.9.0, pluggy-0.13.1 -- /usr/bin/python3.8 >cachedir: .pytest_cache >PyQt5 5.15.1 -- Qt runtime 5.15.1 -- Qt compiled 5.15.1 >rootdir: /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2, configfile: tox.ini >plugins: datadir-1.3.1, qt-3.3.0 >collecting ... collected 27 items > >tests/test_data_regression.py::test_example ERROR [ 3%] >tests/test_data_regression.py::test_basename ERROR [ 7%] >tests/test_data_regression.py::test_custom_object ERROR [ 11%] >tests/test_data_regression.py::test_usage_workflow FAILED [ 14%] >tests/test_data_regression.py::test_data_regression_full_path FAILED [ 18%] >tests/test_data_regression.py::test_data_regression_no_aliases FAILED [ 22%] >tests/test_data_regression.py::test_not_create_file_on_error PASSED [ 25%] >tests/test_file_regression.py::test_simple_text_file ERROR [ 29%] >tests/test_file_regression.py::test_simple_bin_file ERROR [ 33%] >tests/test_file_regression.py::test_binary_and_text_error ERROR [ 37%] >tests/test_file_regression.py::test_file_regression_workflow FAILED [ 40%] >tests/test_grids.py::test_grids PASSED [ 44%] >tests/test_grids.py::test_grids2 ERROR [ 48%] >tests/test_image_regression.py::test_image_regression ERROR [ 51%] >tests/test_image_regression.py::test_image_regression_workflow FAILED [ 55%] >tests/test_num_regression.py::test_usage_workflow FAILED [ 59%] >tests/test_num_regression.py::test_common_cases ERROR [ 62%] >tests/test_num_regression.py::test_different_data_types ERROR [ 66%] >tests/test_num_regression.py::test_n_dimensions ERROR [ 70%] >tests/test_num_regression.py::test_arrays_with_different_sizes ERROR [ 74%] >tests/test_num_regression.py::test_integer_values_smoke_test ERROR [ 77%] >tests/test_num_regression.py::test_number_formats ERROR [ 81%] >tests/test_num_regression.py::test_fill_different_shape_with_nan ERROR [ 85%] >tests/test_num_regression.py::test_fill_different_shape_with_nan_false ERROR [ 88%] >tests/test_num_regression.py::test_fill_different_shape_with_nan_for_non_float_array ERROR [ 92%] >tests/test_num_regression.py::test_bool_array ERROR [ 96%] >tests/test_num_regression.py::test_arrays_of_same_size ERROR [100%] > >============================================== ERRORS ============================================== >__________________________________ ERROR at setup of test_example __________________________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_data_regression.py, line 8 > def test_example(data_regression): >E fixture 'data_regression' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, linecomp, monkeypatch, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_data_regression.py:8 >_________________________________ ERROR at setup of test_basename __________________________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_data_regression.py, line 14 > def test_basename(data_regression): >E fixture 'data_regression' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, linecomp, monkeypatch, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_data_regression.py:14 >_______________________________ ERROR at setup of test_custom_object _______________________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_data_regression.py, line 20 > def test_custom_object(data_regression): >E fixture 'data_regression' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, linecomp, monkeypatch, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_data_regression.py:20 >_____________________________ ERROR at setup of test_simple_text_file ______________________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_file_regression.py, line 10 > def test_simple_text_file(file_regression, datadir): >E fixture 'file_regression' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, linecomp, monkeypatch, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_file_regression.py:10 >______________________________ ERROR at setup of test_simple_bin_file ______________________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_file_regression.py, line 20 > def test_simple_bin_file(file_regression, datadir): >E fixture 'file_regression' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, linecomp, monkeypatch, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_file_regression.py:20 >___________________________ ERROR at setup of test_binary_and_text_error ___________________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_file_regression.py, line 25 > def test_binary_and_text_error(file_regression): >E fixture 'file_regression' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, linecomp, monkeypatch, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_file_regression.py:25 >__________________________________ ERROR at setup of test_grids2 ___________________________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_grids.py, line 35 > def test_grids2(data_regression): >E fixture 'data_regression' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, linecomp, monkeypatch, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_grids.py:35 >_____________________________ ERROR at setup of test_image_regression ______________________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_image_regression.py, line 8 > def test_image_regression(image_regression, datadir): >E fixture 'image_regression' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, linecomp, monkeypatch, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_image_regression.py:8 >_______________________________ ERROR at setup of test_common_cases ________________________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py, line 54 > def test_common_cases(num_regression, no_regen): >E fixture 'num_regression' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, linecomp, monkeypatch, no_regen, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py:54 >___________________________ ERROR at setup of test_different_data_types ____________________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py, line 158 > def test_different_data_types(num_regression, no_regen): >E fixture 'num_regression' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, linecomp, monkeypatch, no_regen, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py:158 >_______________________________ ERROR at setup of test_n_dimensions ________________________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py, line 171 > def test_n_dimensions(num_regression, no_regen): >E fixture 'num_regression' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, linecomp, monkeypatch, no_regen, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py:171 >________________________ ERROR at setup of test_arrays_with_different_sizes ________________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py, line 180 > def test_arrays_with_different_sizes(num_regression, no_regen): >E fixture 'num_regression' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, linecomp, monkeypatch, no_regen, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py:180 >_________________________ ERROR at setup of test_integer_values_smoke_test _________________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py, line 188 > def test_integer_values_smoke_test(num_regression, no_regen): >E fixture 'num_regression' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, linecomp, monkeypatch, no_regen, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py:188 >______________________________ ERROR at setup of test_number_formats _______________________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py, line 193 > def test_number_formats(num_regression, no_regen): >E fixture 'num_regression' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, linecomp, monkeypatch, no_regen, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py:193 >_______________________ ERROR at setup of test_fill_different_shape_with_nan _______________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py, line 198 > def test_fill_different_shape_with_nan(num_regression, no_regen): >E fixture 'num_regression' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, linecomp, monkeypatch, no_regen, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py:198 >____________________ ERROR at setup of test_fill_different_shape_with_nan_false ____________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py, line 205 > def test_fill_different_shape_with_nan_false(num_regression, no_regen): >E fixture 'num_regression' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, linecomp, monkeypatch, no_regen, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py:205 >_____________ ERROR at setup of test_fill_different_shape_with_nan_for_non_float_array _____________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py, line 219 > def test_fill_different_shape_with_nan_for_non_float_array(num_regression, no_regen): >E fixture 'num_regression' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, linecomp, monkeypatch, no_regen, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py:219 >________________________________ ERROR at setup of test_bool_array _________________________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py, line 230 > def test_bool_array(num_regression, no_regen): >E fixture 'num_regression' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, linecomp, monkeypatch, no_regen, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py:230 >____________________________ ERROR at setup of test_arrays_of_same_size ____________________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py, line 254 > def test_arrays_of_same_size(num_regression): >E fixture 'num_regression' not found >> available fixtures: LineMatcher, _config_for_test, _pytest, _sys_snapshot, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, linecomp, monkeypatch, no_regen, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, testdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py:254 >============================================= FAILURES ============================================= >_______________________________________ test_usage_workflow ________________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_usage_workflow0')> >monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f557ea00af0> > > def test_usage_workflow(testdir, monkeypatch): > """ > :type testdir: _pytest.pytester.TmpTestdir > > :type monkeypatch: _pytest.monkeypatch.monkeypatch > """ > import sys > import yaml > > monkeypatch.setattr( > sys, "testing_get_data", lambda: {"contents": "Foo", "value": 10}, raising=False > ) > source = """ > import sys > def test_1(data_regression): > contents = sys.testing_get_data() > data_regression.check(contents) > """ > > def get_yaml_contents(): > yaml_filename = testdir.tmpdir / "test_file" / "test_1.yml" > assert yaml_filename.check(file=1) > with yaml_filename.open() as f: > return yaml.safe_load(f) > >> check_regression_fixture_workflow( > testdir, > source=source, > data_getter=get_yaml_contents, > data_modifier=lambda: monkeypatch.setattr( > sys, > "testing_get_data", > lambda: {"contents": "Bar", "value": 20}, > raising=False, > ), > expected_data_1={"contents": "Foo", "value": 10}, > expected_data_2={"contents": "Bar", "value": 20}, > ) > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_data_regression.py:65: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/lib/pytest_regressions/testing.py:69: in check_regression_fixture_workflow > xx = data_getter() >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > > def get_yaml_contents(): > yaml_filename = testdir.tmpdir / "test_file" / "test_1.yml" >> assert yaml_filename.check(file=1) >E AssertionError: assert False >E + where False = <bound method LocalPath.check of local('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_usage_workflow0/test_file/test_1.yml')>(file=1) >E + where <bound method LocalPath.check of local('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_usage_workflow0/test_file/test_1.yml')> = local('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_usage_workflow0/test_file/test_1.yml').check > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_data_regression.py:61: AssertionError >--------------------------------------- Captured stdout call --------------------------------------- >======================================= test session starts ======================================== >platform linux -- Python 3.8.6, pytest-6.1.2, py-1.9.0, pluggy-0.13.1 >PyQt5 5.15.1 -- Qt runtime 5.15.1 -- Qt compiled 5.15.1 >rootdir: /var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_usage_workflow0 >plugins: datadir-1.3.1, qt-3.3.0 >collected 1 item > >test_file.py E [100%] > >============================================== ERRORS ============================================== >_____________________________________ ERROR at setup of test_1 _____________________________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_usage_workflow0/test_file.py, line 2 > def test_1(data_regression): >E fixture 'data_regression' not found >> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, monkeypatch, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_usage_workflow0/test_file.py:2 >===================================== short test summary info ====================================== >ERROR test_file.py::test_1 >========================================= 1 error in 0.01s ========================================= >__________________________________ test_data_regression_full_path __________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_data_regression_full_path0')> >tmpdir = local('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_data_regression_full_path1') > > def test_data_regression_full_path(testdir, tmpdir): > """ > Test data_regression with ``fullpath`` parameter. > > :type testdir: _pytest.pytester.TmpTestdir > """ > fullpath = tmpdir.join("full/path/to").ensure(dir=1).join("contents.yaml") > assert not fullpath.isfile() > > source = """ > def test(data_regression): > contents = {'data': [1, 2]} > data_regression.check(contents, fullpath=%s) > """ % ( > repr(str(fullpath)) > ) > testdir.makepyfile(test_foo=source) > # First run fails because there's no yml file yet > result = testdir.inline_run() > result.assertoutcome(failed=1) > > # ensure now that the file was generated and the test passes >> assert fullpath.isfile() >E AssertionError: assert False >E + where False = <bound method PathBase.isfile of local('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_data_regression_full_path1/full/path/to/contents.yaml')>() >E + where <bound method PathBase.isfile of local('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_data_regression_full_path1/full/path/to/contents.yaml')> = local('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_data_regression_full_path1/full/path/to/contents.yaml').isfile > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_data_regression.py:102: AssertionError >--------------------------------------- Captured stdout call --------------------------------------- >======================================= test session starts ======================================== >platform linux -- Python 3.8.6, pytest-6.1.2, py-1.9.0, pluggy-0.13.1 >PyQt5 5.15.1 -- Qt runtime 5.15.1 -- Qt compiled 5.15.1 >rootdir: /var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_data_regression_full_path0 >plugins: datadir-1.3.1, qt-3.3.0 >collected 1 item > >test_foo.py E [100%] > >============================================== ERRORS ============================================== >______________________________________ ERROR at setup of test ______________________________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_data_regression_full_path0/test_foo.py, line 1 > def test(data_regression): >E fixture 'data_regression' not found >> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, monkeypatch, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_data_regression_full_path0/test_foo.py:1 >===================================== short test summary info ====================================== >ERROR test_foo.py::test >========================================= 1 error in 0.01s ========================================= >_________________________________ test_data_regression_no_aliases __________________________________ > >self = <module 'py.error'>, func = <built-in function open> >args = ('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_data_regression_no_aliases0/test_file/test.yml', 'r') >kwargs = {}, __tracebackhide__ = False, cls = <class 'py.error.ENOENT'> >value = FileNotFoundError(2, 'No such file or directory'), tb = <traceback object at 0x7f557e8bab40> >errno = 2 > > def checked_call(self, func, *args, **kwargs): > """ call a function and raise an errno-exception if applicable. """ > __tracebackhide__ = True > try: >> return func(*args, **kwargs) >E FileNotFoundError: [Errno 2] No such file or directory: '/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_data_regression_no_aliases0/test_file/test.yml' > >/usr/lib/python3.8/site-packages/py/_error.py:66: FileNotFoundError > >During handling of the above exception, another exception occurred: > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_data_regression_no_aliases0')> > > def test_data_regression_no_aliases(testdir): > """ > YAML standard supports aliases as can be seen here: > http://pyyaml.org/wiki/PyYAMLDocumentation#Aliases. > > Even though this is a resourceful feature, data regression intends to be as human readable as > possible and it was deemed that YAML aliases make it harder for developers to understand > contents. > > This test makes sure data regression never uses aliases when dumping expected file to YAML. > > :type testdir: _pytest.pytester.TmpTestdir > """ > source = """ > def test(data_regression): > red = (255, 0, 0) > green = (0, 255, 0) > blue = (0, 0, 255) > > contents = { > 'color1': red, > 'color2': green, > 'color3': blue, > 'color4': red, > 'color5': green, > 'color6': blue, > } > data_regression.Check(contents) > """ > testdir.makepyfile(test_file=source) > > result = testdir.inline_run() > result.assertoutcome(failed=1) > >> yaml_file_contents = testdir.tmpdir.join("test_file", "test.yml").read() > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_data_regression.py:141: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/usr/lib/python3.8/site-packages/py/_path/common.py:176: in read > with self.open(mode) as f: >/usr/lib/python3.8/site-packages/py/_path/local.py:369: in open > return py.error.checked_call(open, self.strpath, mode) >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >self = <module 'py.error'>, func = <built-in function open> >args = ('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_data_regression_no_aliases0/test_file/test.yml', 'r') >kwargs = {}, __tracebackhide__ = False, cls = <class 'py.error.ENOENT'> >value = FileNotFoundError(2, 'No such file or directory'), tb = <traceback object at 0x7f557e8bab40> >errno = 2 > > def checked_call(self, func, *args, **kwargs): > """ call a function and raise an errno-exception if applicable. """ > __tracebackhide__ = True > try: > return func(*args, **kwargs) > except self.Error: > raise > except (OSError, EnvironmentError): > cls, value, tb = sys.exc_info() > if not hasattr(value, 'errno'): > raise > __tracebackhide__ = False > errno = value.errno > try: > if not isinstance(value, WindowsError): > raise NameError > except NameError: > # we are not on Windows, or we got a proper OSError > cls = self._geterrnoclass(errno) > else: > try: > cls = self._geterrnoclass(_winerrnomap[errno]) > except KeyError: > raise value >> raise cls("%s%r" % (func.__name__, args)) >E py.error.ENOENT: [No such file or directory]: open('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_data_regression_no_aliases0/test_file/test.yml', 'r') > >/usr/lib/python3.8/site-packages/py/_error.py:86: ENOENT >--------------------------------------- Captured stdout call --------------------------------------- >======================================= test session starts ======================================== >platform linux -- Python 3.8.6, pytest-6.1.2, py-1.9.0, pluggy-0.13.1 >PyQt5 5.15.1 -- Qt runtime 5.15.1 -- Qt compiled 5.15.1 >rootdir: /var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_data_regression_no_aliases0 >plugins: datadir-1.3.1, qt-3.3.0 >collected 1 item > >test_file.py E [100%] > >============================================== ERRORS ============================================== >______________________________________ ERROR at setup of test ______________________________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_data_regression_no_aliases0/test_file.py, line 1 > def test(data_regression): >E fixture 'data_regression' not found >> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, monkeypatch, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_data_regression_no_aliases0/test_file.py:1 >===================================== short test summary info ====================================== >ERROR test_file.py::test >========================================= 1 error in 0.01s ========================================= >__________________________________ test_file_regression_workflow ___________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_file_regression_workflow0')> >monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f557e64a3a0> > > def test_file_regression_workflow(testdir, monkeypatch): > """ > :type testdir: _pytest.pytester.TmpTestdir > :type monkeypatch: _pytest.monkeypatch.monkeypatch > """ > import sys > > monkeypatch.setattr(sys, "get_data", lambda: "foo", raising=False) > source = """ > import sys > def test_1(file_regression): > contents = sys.get_data() > file_regression.check(contents, extension='.test') > """ > > def get_file_contents(): > fn = Path(str(testdir.tmpdir)) / "test_file" / "test_1.test" > assert fn.is_file() > return fn.read_text() > >> check_regression_fixture_workflow( > testdir, > source, > data_getter=get_file_contents, > data_modifier=lambda: monkeypatch.setattr( > sys, "get_data", lambda: "foobar", raising=False > ), > expected_data_1="foo", > expected_data_2="foobar", > ) > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_file_regression.py:50: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/lib/pytest_regressions/testing.py:69: in check_regression_fixture_workflow > xx = data_getter() >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > > def get_file_contents(): > fn = Path(str(testdir.tmpdir)) / "test_file" / "test_1.test" >> assert fn.is_file() >E AssertionError: assert False >E + where False = <bound method Path.is_file of PosixPath('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_file_regression_workflow0/test_file/test_1.test')>() >E + where <bound method Path.is_file of PosixPath('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_file_regression_workflow0/test_file/test_1.test')> = PosixPath('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_file_regression_workflow0/test_file/test_1.test').is_file > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_file_regression.py:47: AssertionError >--------------------------------------- Captured stdout call --------------------------------------- >======================================= test session starts ======================================== >platform linux -- Python 3.8.6, pytest-6.1.2, py-1.9.0, pluggy-0.13.1 >PyQt5 5.15.1 -- Qt runtime 5.15.1 -- Qt compiled 5.15.1 >rootdir: /var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_file_regression_workflow0 >plugins: datadir-1.3.1, qt-3.3.0 >collected 1 item > >test_file.py E [100%] > >============================================== ERRORS ============================================== >_____________________________________ ERROR at setup of test_1 _____________________________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_file_regression_workflow0/test_file.py, line 2 > def test_1(file_regression): >E fixture 'file_regression' not found >> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, monkeypatch, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_file_regression_workflow0/test_file.py:2 >===================================== short test summary info ====================================== >ERROR test_file.py::test_1 >========================================= 1 error in 0.01s ========================================= >__________________________________ test_image_regression_workflow __________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_image_regression_workflow0')> >monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f557e6ba190> >datadir = PosixPath('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_image_regression_workflow1/test_image_regression') > > def test_image_regression_workflow(testdir, monkeypatch, datadir): > """ > :type testdir: _pytest.pytester.TmpTestdir > :type monkeypatch: _pytest.monkeypatch.monkeypatch > """ > import sys > from PIL import Image > > def get_image(color): > f = io.BytesIO() > img = Image.new("RGB", (100, 100), color) > img.save(f, "PNG") > return f.getvalue() > > monkeypatch.setattr(sys, "get_image", partial(get_image, "white"), raising=False) > source = """ > import sys > def test_1(image_regression): > contents = sys.get_image() > image_regression.check(contents) > """ > > def get_file_contents(): > fn = Path(str(testdir.tmpdir)) / "test_file" / "test_1.png" > assert fn.is_file() > return fn.read_bytes() > >> check_regression_fixture_workflow( > testdir, > source, > data_getter=get_file_contents, > data_modifier=lambda: monkeypatch.setattr( > sys, "get_image", partial(get_image, "black"), raising=False > ), > expected_data_1=partial(get_image, "white"), > expected_data_2=partial(get_image, "black"), > ) > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_image_regression.py:63: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/lib/pytest_regressions/testing.py:69: in check_regression_fixture_workflow > xx = data_getter() >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > > def get_file_contents(): > fn = Path(str(testdir.tmpdir)) / "test_file" / "test_1.png" >> assert fn.is_file() >E AssertionError: assert False >E + where False = <bound method Path.is_file of PosixPath('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_image_regression_workflow0/test_file/test_1.png')>() >E + where <bound method Path.is_file of PosixPath('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_image_regression_workflow0/test_file/test_1.png')> = PosixPath('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_image_regression_workflow0/test_file/test_1.png').is_file > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_image_regression.py:60: AssertionError >--------------------------------------- Captured stdout call --------------------------------------- >======================================= test session starts ======================================== >platform linux -- Python 3.8.6, pytest-6.1.2, py-1.9.0, pluggy-0.13.1 >PyQt5 5.15.1 -- Qt runtime 5.15.1 -- Qt compiled 5.15.1 >rootdir: /var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_image_regression_workflow0 >plugins: datadir-1.3.1, qt-3.3.0 >collected 1 item > >test_file.py E [100%] > >============================================== ERRORS ============================================== >_____________________________________ ERROR at setup of test_1 _____________________________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_image_regression_workflow0/test_file.py, line 2 > def test_1(image_regression): >E fixture 'image_regression' not found >> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, monkeypatch, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_image_regression_workflow0/test_file.py:2 >===================================== short test summary info ====================================== >ERROR test_file.py::test_1 >========================================= 1 error in 0.01s ========================================= >_______________________________________ test_usage_workflow ________________________________________ > >testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_usage_workflow1')> >monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f557e6f1a60> > > def test_usage_workflow(testdir, monkeypatch): > """ > :type testdir: _pytest.pytester.TmpTestdir > > :type monkeypatch: _pytest.monkeypatch.monkeypatch > """ > > import sys > > monkeypatch.setattr( > sys, "testing_get_data", lambda: {"data": 1.1 * np.ones(50)}, raising=False > ) > source = """ > import sys > def test_1(num_regression): > contents = sys.testing_get_data() > num_regression.check(contents) > """ > > def get_csv_contents(): > filename = testdir.tmpdir / "test_file" / "test_1.csv" > frame = pd.read_csv(str(filename)) > return {"data": frame["data"].values} > > def compare_arrays(obtained, expected): > assert (obtained["data"] == expected["data"]).all() > >> check_regression_fixture_workflow( > testdir, > source=source, > data_getter=get_csv_contents, > data_modifier=lambda: monkeypatch.setattr( > sys, "testing_get_data", lambda: {"data": 1.2 * np.ones(50)}, raising=False > ), > expected_data_1={"data": 1.1 * np.ones(50)}, > expected_data_2={"data": 1.2 * np.ones(50)}, > compare_fn=compare_arrays, > ) > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py:41: >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2-python3_8/lib/pytest_regressions/testing.py:69: in check_regression_fixture_workflow > xx = data_getter() >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2/tests/test_num_regression.py:35: in get_csv_contents > frame = pd.read_csv(str(filename)) >/usr/lib/python3.8/site-packages/pandas/io/parsers.py:686: in read_csv > return _read(filepath_or_buffer, kwds) >/usr/lib/python3.8/site-packages/pandas/io/parsers.py:452: in _read > parser = TextFileReader(fp_or_buf, **kwds) >/usr/lib/python3.8/site-packages/pandas/io/parsers.py:936: in __init__ > self._make_engine(self.engine) >/usr/lib/python3.8/site-packages/pandas/io/parsers.py:1168: in _make_engine > self._engine = CParserWrapper(self.f, **self.options) >/usr/lib/python3.8/site-packages/pandas/io/parsers.py:1998: in __init__ > self._reader = parsers.TextReader(src, **kwds) >pandas/_libs/parsers.pyx:382: in pandas._libs.parsers.TextReader.__cinit__ > ??? >_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > >> ??? >E FileNotFoundError: [Errno 2] No such file or directory: '/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_usage_workflow1/test_file/test_1.csv' > >pandas/_libs/parsers.pyx:674: FileNotFoundError >--------------------------------------- Captured stdout call --------------------------------------- >======================================= test session starts ======================================== >platform linux -- Python 3.8.6, pytest-6.1.2, py-1.9.0, pluggy-0.13.1 >PyQt5 5.15.1 -- Qt runtime 5.15.1 -- Qt compiled 5.15.1 >rootdir: /var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_usage_workflow1 >plugins: datadir-1.3.1, qt-3.3.0 >collected 1 item > >test_file.py E [100%] > >============================================== ERRORS ============================================== >_____________________________________ ERROR at setup of test_1 _____________________________________ >file /var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_usage_workflow1/test_file.py, line 2 > def test_1(num_regression): >E fixture 'num_regression' not found >> available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, datadir, doctest_namespace, monkeypatch, original_datadir, pytestconfig, qapp, qapp_args, qtbot, qtlog, qtmodeltester, record_property, record_testsuite_property, record_xml_attribute, recwarn, shared_datadir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory >> use 'pytest --fixtures [testpath]' for help on them. > >/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/pytest-of-portage/pytest-0/test_usage_workflow1/test_file.py:2 >===================================== short test summary info ====================================== >ERROR test_file.py::test_1 >========================================= 1 error in 0.01s ========================================= >===================================== short test summary info ====================================== >FAILED tests/test_data_regression.py::test_usage_workflow - AssertionError: assert False >FAILED tests/test_data_regression.py::test_data_regression_full_path - AssertionError: assert False >FAILED tests/test_data_regression.py::test_data_regression_no_aliases - py.error.ENOENT: [No such... >FAILED tests/test_file_regression.py::test_file_regression_workflow - AssertionError: assert False >FAILED tests/test_image_regression.py::test_image_regression_workflow - AssertionError: assert False >FAILED tests/test_num_regression.py::test_usage_workflow - FileNotFoundError: [Errno 2] No such f... >ERROR tests/test_data_regression.py::test_example >ERROR tests/test_data_regression.py::test_basename >ERROR tests/test_data_regression.py::test_custom_object >ERROR tests/test_file_regression.py::test_simple_text_file >ERROR tests/test_file_regression.py::test_simple_bin_file >ERROR tests/test_file_regression.py::test_binary_and_text_error >ERROR tests/test_grids.py::test_grids2 >ERROR tests/test_image_regression.py::test_image_regression >ERROR tests/test_num_regression.py::test_common_cases >ERROR tests/test_num_regression.py::test_different_data_types >ERROR tests/test_num_regression.py::test_n_dimensions >ERROR tests/test_num_regression.py::test_arrays_with_different_sizes >ERROR tests/test_num_regression.py::test_integer_values_smoke_test >ERROR tests/test_num_regression.py::test_number_formats >ERROR tests/test_num_regression.py::test_fill_different_shape_with_nan >ERROR tests/test_num_regression.py::test_fill_different_shape_with_nan_false >ERROR tests/test_num_regression.py::test_fill_different_shape_with_nan_for_non_float_array >ERROR tests/test_num_regression.py::test_bool_array >ERROR tests/test_num_regression.py::test_arrays_of_same_size >============================== 6 failed, 2 passed, 19 errors in 1.01s ============================== > * ERROR: dev-python/pytest-regressions-2.0.2::gentoo failed (test phase): > * Tests failed with python3.8 > * > * Call stack: > * ebuild.sh, line 125: Called src_test > * environment, line 3012: Called distutils-r1_src_test > * environment, line 1231: Called _distutils-r1_run_foreach_impl 'python_test' > * environment, line 447: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > * environment, line 2602: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2071: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2069: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > * environment, line 804: Called distutils-r1_run_phase 'python_test' > * environment, line 1168: Called python_test > * environment, line 2954: Called die > * The specific snippet of code: > * pytest -vv || die "Tests failed with ${EPYTHON}" > * > * If you need support, post the output of `emerge --info '=dev-python/pytest-regressions-2.0.2::gentoo'`, > * the complete build log and the output of `emerge -pqv '=dev-python/pytest-regressions-2.0.2::gentoo'`. > * The complete build log is located at '/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/dev-python/pytest-regressions-2.0.2/temp/environment'. > * Working directory: '/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2' > * S: '/var/tmp/portage/dev-python/pytest-regressions-2.0.2/work/pytest-regressions-2.0.2'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 758737
: 676948