running pytest /usr/lib/python3.10/site-packages/setuptools/command/easy_install.py:156: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( /usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( Searching for wcwidth>=0.1.7 Reading https://pypi.org/simple/wcwidth/ /usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: is an invalid version and will not be supported in a future release warnings.warn( Downloading https://files.pythonhosted.org/packages/59/7c/e39aca596badaf1b78e8f547c807b04dae603a433d3e7a7e04d67f2ef3e5/wcwidth-0.2.5-py2.py3-none-any.whl#sha256=beb4802a9cebb9144e99086eff703a642a13d6a0052920003a230f3294bbe784 Best match: wcwidth 0.2.5 Processing wcwidth-0.2.5-py2.py3-none-any.whl Installing wcwidth-0.2.5-py2.py3-none-any.whl to /build/python-cmd2/src/cmd2-2.3.3/.eggs Installed /build/python-cmd2/src/cmd2-2.3.3/.eggs/wcwidth-0.2.5-py3.10.egg Searching for pyperclip>=1.6 Reading https://pypi.org/simple/pyperclip/ Downloading https://files.pythonhosted.org/packages/a7/2c/4c64579f847bd5d539803c8b909e54ba087a79d01bb3aba433a95879a6c5/pyperclip-1.8.2.tar.gz#sha256=105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57 Best match: pyperclip 1.8.2 Processing pyperclip-1.8.2.tar.gz Writing /tmp/easy_install-2bt6n7xe/pyperclip-1.8.2/setup.cfg Running pyperclip-1.8.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-2bt6n7xe/pyperclip-1.8.2/egg-dist-tmp-zd5jc359 warning: no files found matching '*.py' under directory 'pyperclip' /usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( zip_safe flag not set; analyzing archive contents... Moving pyperclip-1.8.2-py3.10.egg to /build/python-cmd2/src/cmd2-2.3.3/.eggs Installed /build/python-cmd2/src/cmd2-2.3.3/.eggs/pyperclip-1.8.2-py3.10.egg running egg_info writing cmd2.egg-info/PKG-INFO writing dependency_links to cmd2.egg-info/dependency_links.txt writing requirements to cmd2.egg-info/requires.txt writing top-level names to cmd2.egg-info/top_level.txt reading manifest file 'cmd2.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' no previously-included directories found matching '.github' no previously-included directories found matching 'docs/_build' no previously-included directories found matching 'docs/.nox' warning: no previously-included files found matching '.github' warning: no previously-included files found matching '.gitignore' warning: no previously-included files found matching 'azure-pipelines.yml' warning: no previously-included files matching 'htmlcov/**' found anywhere in distribution warning: no previously-included files matching '.coverage*' found anywhere in distribution warning: no previously-included files matching '__pycache__/**' found anywhere in distribution warning: no previously-included files matching '.gitignore' found anywhere in distribution adding license file 'LICENSE' writing manifest file 'cmd2.egg-info/SOURCES.txt' running build_ext ============================= test session starts ============================== platform linux -- Python 3.10.1, pytest-6.2.5, py-1.11.0, pluggy-0.13.1 rootdir: /build/python-cmd2/src/cmd2-2.3.3, configfile: setup.cfg, testpaths: tests plugins: cov-2.12.1 collected 967 items tests/test_ansi.py .......................................... [ 4%] tests/test_argparse.py .............................EEEE [ 7%] tests/test_argparse_completer.py ....................................... [ 11%] ........................................................................ [ 19%] ................................................. [ 24%] tests/test_argparse_custom.py .......................... [ 26%] tests/test_cmd2.py .s................................................... [ 32%] ...s.................................................................... [ 39%] ......................................................................EE [ 47%] EEEE............. [ 49%] tests/test_completion.py ............................................... [ 53%] ............................................................. [ 60%] tests/test_history.py ............................F.E..........EEE..E [ 65%] tests/test_parsing.py .................................................. [ 70%] ........................................................................ [ 77%] ..................E... [ 80%] tests/test_plugin.py .................................................. [ 85%] tests/test_run_pyscript.py .F................ [ 87%] tests/test_table_creator.py ................. [ 88%] tests/test_transcript.py .................E................ [ 92%] tests/test_utils.py .................................................... [ 97%] ..................... [ 99%] tests/test_utils_defining_class.py . [100%] ==================================== ERRORS ==================================== __________________ ERROR at setup of test_pytest_mock_invalid __________________ file /build/python-cmd2/src/cmd2-2.3.3/tests/test_argparse.py, line 454 def test_pytest_mock_invalid(mocker): E fixture 'mocker' not found > available fixtures: argparse_app, base_app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, monkeypatch, no_cover, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, subcommand_app, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory > use 'pytest --fixtures [testpath]' for help on them. /build/python-cmd2/src/cmd2-2.3.3/tests/test_argparse.py:454 ____________ ERROR at setup of test_pytest_mock_valid[spec_param0] _____________ file /build/python-cmd2/src/cmd2-2.3.3/tests/test_argparse.py, line 464 @pytest.mark.parametrize( 'spec_param', [ {'spec': True}, {'spec_set': True}, {'autospec': True}, ], ) def test_pytest_mock_valid(mocker, spec_param): E fixture 'mocker' not found > available fixtures: argparse_app, base_app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, monkeypatch, no_cover, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, subcommand_app, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory > use 'pytest --fixtures [testpath]' for help on them. /build/python-cmd2/src/cmd2-2.3.3/tests/test_argparse.py:464 ____________ ERROR at setup of test_pytest_mock_valid[spec_param1] _____________ file /build/python-cmd2/src/cmd2-2.3.3/tests/test_argparse.py, line 464 @pytest.mark.parametrize( 'spec_param', [ {'spec': True}, {'spec_set': True}, {'autospec': True}, ], ) def test_pytest_mock_valid(mocker, spec_param): E fixture 'mocker' not found > available fixtures: argparse_app, base_app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, monkeypatch, no_cover, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, subcommand_app, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory > use 'pytest --fixtures [testpath]' for help on them. /build/python-cmd2/src/cmd2-2.3.3/tests/test_argparse.py:464 ____________ ERROR at setup of test_pytest_mock_valid[spec_param2] _____________ file /build/python-cmd2/src/cmd2-2.3.3/tests/test_argparse.py, line 464 @pytest.mark.parametrize( 'spec_param', [ {'spec': True}, {'spec_set': True}, {'autospec': True}, ], ) def test_pytest_mock_valid(mocker, spec_param): E fixture 'mocker' not found > available fixtures: argparse_app, base_app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, monkeypatch, no_cover, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, subcommand_app, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory > use 'pytest --fixtures [testpath]' for help on them. /build/python-cmd2/src/cmd2-2.3.3/tests/test_argparse.py:464 ________________ ERROR at setup of test_ansi_pouterr_always_tty ________________ file /build/python-cmd2/src/cmd2-2.3.3/tests/test_cmd2.py, line 2529 def test_ansi_pouterr_always_tty(mocker, capsys): E fixture 'mocker' not found > available fixtures: base_app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, commandresult_app, cov, disable_commands_app, doctest_namespace, exit_code_repl, help_app, helpcat_app, hook_failure, monkeypatch, multiline_app, no_cover, onchange_app, outsim_app, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, say_app, select_app, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory > use 'pytest --fixtures [testpath]' for help on them. /build/python-cmd2/src/cmd2-2.3.3/tests/test_cmd2.py:2529 _______________ ERROR at setup of test_ansi_pouterr_always_notty _______________ file /build/python-cmd2/src/cmd2-2.3.3/tests/test_cmd2.py, line 2552 def test_ansi_pouterr_always_notty(mocker, capsys): E fixture 'mocker' not found > available fixtures: base_app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, commandresult_app, cov, disable_commands_app, doctest_namespace, exit_code_repl, help_app, helpcat_app, hook_failure, monkeypatch, multiline_app, no_cover, onchange_app, outsim_app, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, say_app, select_app, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory > use 'pytest --fixtures [testpath]' for help on them. /build/python-cmd2/src/cmd2-2.3.3/tests/test_cmd2.py:2552 ___________________ ERROR at setup of test_ansi_terminal_tty ___________________ file /build/python-cmd2/src/cmd2-2.3.3/tests/test_cmd2.py, line 2575 def test_ansi_terminal_tty(mocker, capsys): E fixture 'mocker' not found > available fixtures: base_app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, commandresult_app, cov, disable_commands_app, doctest_namespace, exit_code_repl, help_app, helpcat_app, hook_failure, monkeypatch, multiline_app, no_cover, onchange_app, outsim_app, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, say_app, select_app, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory > use 'pytest --fixtures [testpath]' for help on them. /build/python-cmd2/src/cmd2-2.3.3/tests/test_cmd2.py:2575 __________________ ERROR at setup of test_ansi_terminal_notty __________________ file /build/python-cmd2/src/cmd2-2.3.3/tests/test_cmd2.py, line 2597 def test_ansi_terminal_notty(mocker, capsys): E fixture 'mocker' not found > available fixtures: base_app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, commandresult_app, cov, disable_commands_app, doctest_namespace, exit_code_repl, help_app, helpcat_app, hook_failure, monkeypatch, multiline_app, no_cover, onchange_app, outsim_app, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, say_app, select_app, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory > use 'pytest --fixtures [testpath]' for help on them. /build/python-cmd2/src/cmd2-2.3.3/tests/test_cmd2.py:2597 ____________________ ERROR at setup of test_ansi_never_tty _____________________ file /build/python-cmd2/src/cmd2-2.3.3/tests/test_cmd2.py, line 2612 def test_ansi_never_tty(mocker, capsys): E fixture 'mocker' not found > available fixtures: base_app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, commandresult_app, cov, disable_commands_app, doctest_namespace, exit_code_repl, help_app, helpcat_app, hook_failure, monkeypatch, multiline_app, no_cover, onchange_app, outsim_app, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, say_app, select_app, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory > use 'pytest --fixtures [testpath]' for help on them. /build/python-cmd2/src/cmd2-2.3.3/tests/test_cmd2.py:2612 ___________________ ERROR at setup of test_ansi_never_notty ____________________ file /build/python-cmd2/src/cmd2-2.3.3/tests/test_cmd2.py, line 2627 def test_ansi_never_notty(mocker, capsys): E fixture 'mocker' not found > available fixtures: base_app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, commandresult_app, cov, disable_commands_app, doctest_namespace, exit_code_repl, help_app, helpcat_app, hook_failure, monkeypatch, multiline_app, no_cover, onchange_app, outsim_app, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, say_app, select_app, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory > use 'pytest --fixtures [testpath]' for help on them. /build/python-cmd2/src/cmd2-2.3.3/tests/test_cmd2.py:2627 _____________________ ERROR at setup of test_history_clear _____________________ file /build/python-cmd2/src/cmd2-2.3.3/tests/test_history.py, line 703 def test_history_clear(mocker, hist_file): E fixture 'mocker' not found > available fixtures: base_app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, hist, hist_file, histitem, monkeypatch, no_cover, parser, persisted_hist, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory > use 'pytest --fixtures [testpath]' for help on them. /build/python-cmd2/src/cmd2-2.3.3/tests/test_history.py:703 _____________ ERROR at setup of test_history_can_create_directory ______________ file /build/python-cmd2/src/cmd2-2.3.3/tests/test_history.py, line 867 def test_history_can_create_directory(mocker): E fixture 'mocker' not found > available fixtures: base_app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, hist, hist_file, histitem, monkeypatch, no_cover, parser, persisted_hist, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory > use 'pytest --fixtures [testpath]' for help on them. /build/python-cmd2/src/cmd2-2.3.3/tests/test_history.py:867 ____________ ERROR at setup of test_history_cannot_create_directory ____________ file /build/python-cmd2/src/cmd2-2.3.3/tests/test_history.py, line 889 def test_history_cannot_create_directory(mocker, capsys): E fixture 'mocker' not found > available fixtures: base_app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, hist, hist_file, histitem, monkeypatch, no_cover, parser, persisted_hist, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory > use 'pytest --fixtures [testpath]' for help on them. /build/python-cmd2/src/cmd2-2.3.3/tests/test_history.py:889 _____________ ERROR at setup of test_history_file_permission_error _____________ file /build/python-cmd2/src/cmd2-2.3.3/tests/test_history.py, line 899 def test_history_file_permission_error(mocker, capsys): E fixture 'mocker' not found > available fixtures: base_app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, hist, hist_file, histitem, monkeypatch, no_cover, parser, persisted_hist, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory > use 'pytest --fixtures [testpath]' for help on them. /build/python-cmd2/src/cmd2-2.3.3/tests/test_history.py:899 ___________ ERROR at setup of test_persist_history_permission_error ____________ file /build/python-cmd2/src/cmd2-2.3.3/tests/test_history.py, line 955 def test_persist_history_permission_error(hist_file, mocker, capsys): E fixture 'mocker' not found > available fixtures: base_app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, hist, hist_file, histitem, monkeypatch, no_cover, parser, persisted_hist, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory > use 'pytest --fixtures [testpath]' for help on them. /build/python-cmd2/src/cmd2-2.3.3/tests/test_history.py:955 _______________ ERROR at setup of test_is_valid_command_invalid ________________ file /build/python-cmd2/src/cmd2-2.3.3/tests/test_parsing.py, line 968 def test_is_valid_command_invalid(mocker, parser): E fixture 'mocker' not found > available fixtures: base_app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, default_parser, doctest_namespace, monkeypatch, no_cover, parser, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory > use 'pytest --fixtures [testpath]' for help on them. /build/python-cmd2/src/cmd2-2.3.3/tests/test_parsing.py:968 ______________ ERROR at setup of test_history_transcript_bad_path ______________ file /build/python-cmd2/src/cmd2-2.3.3/tests/test_transcript.py, line 186 def test_history_transcript_bad_path(mocker): E fixture 'mocker' not found > available fixtures: base_app, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, monkeypatch, no_cover, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory > use 'pytest --fixtures [testpath]' for help on them. /build/python-cmd2/src/cmd2-2.3.3/tests/test_transcript.py:186 =================================== FAILURES =================================== ________________________ test_history_run_all_commands _________________________ base_app = def test_history_run_all_commands(base_app): # make sure we refuse to run all commands as a default run_cmd(base_app, 'shortcuts') out, err = run_cmd(base_app, 'history -r') assert not out > assert err[0].startswith("Cowardly refusing to run all") E AssertionError: assert False E + where False = ('Cowardly refusing to run all') E + where = '\x1b[91mCowardly refusing to run all previously entered commands.\x1b[39m'.startswith tests/test_history.py:692: AssertionError ___________________ test_run_pyscript_recursive_not_allowed ____________________ base_app = request = > def test_run_pyscript_recursive_not_allowed(base_app, request): test_dir = os.path.dirname(request.module.__file__) python_script = os.path.join(test_dir, 'pyscript', 'recursive.py') expected = 'Recursively entering interactive Python shells is not allowed' out, err = run_cmd(base_app, "run_pyscript {}".format(python_script)) > assert err[0] == expected E AssertionError: assert '\x1b[91mRecu...lowed\x1b[39m' == 'Recursively ...s not allowed' E - Recursively entering interactive Python shells is not allowed E + Recursively entering interactive Python shells is not allowed E ? +++++ +++++ tests/test_run_pyscript.py:49: AssertionError ---------- coverage: platform linux, python 3.10.1-final-0 ----------- Name Stmts Miss Cover ------------------------------------------------ cmd2/__init__.py 26 1 96% cmd2/ansi.py 755 0 100% cmd2/argparse_completer.py 332 1 99% cmd2/argparse_custom.py 407 22 95% cmd2/clipboard.py 14 4 71% cmd2/cmd2.py 2296 265 88% cmd2/command_definition.py 55 36 35% cmd2/constants.py 26 0 100% cmd2/decorators.py 115 3 97% cmd2/exceptions.py 24 0 100% cmd2/history.py 134 0 100% cmd2/parsing.py 291 1 99% cmd2/plugin.py 19 0 100% cmd2/py_bridge.py 41 0 100% cmd2/rl_utils.py 64 18 72% cmd2/table_creator.py 468 0 100% cmd2/transcript.py 114 8 93% cmd2/utils.py 431 15 97% ------------------------------------------------ TOTAL 5612 374 93% Coverage HTML written to dir htmlcov =========================== short test summary info ============================ FAILED tests/test_history.py::test_history_run_all_commands - AssertionError:... FAILED tests/test_run_pyscript.py::test_run_pyscript_recursive_not_allowed - ... ERROR tests/test_argparse.py::test_pytest_mock_invalid ERROR tests/test_argparse.py::test_pytest_mock_valid[spec_param0] ERROR tests/test_argparse.py::test_pytest_mock_valid[spec_param1] ERROR tests/test_argparse.py::test_pytest_mock_valid[spec_param2] ERROR tests/test_cmd2.py::test_ansi_pouterr_always_tty ERROR tests/test_cmd2.py::test_ansi_pouterr_always_notty ERROR tests/test_cmd2.py::test_ansi_terminal_tty ERROR tests/test_cmd2.py::test_ansi_terminal_notty ERROR tests/test_cmd2.py::test_ansi_never_tty ERROR tests/test_cmd2.py::test_ansi_never_notty ERROR tests/test_history.py::test_history_clear ERROR tests/test_history.py::test_history_can_create_directory ERROR tests/test_history.py::test_history_cannot_create_directory ERROR tests/test_history.py::test_history_file_permission_error ERROR tests/test_history.py::test_persist_history_permission_error ERROR tests/test_parsing.py::test_is_valid_command_invalid ERROR tests/test_transcript.py::test_history_transcript_bad_path ======== 2 failed, 946 passed, 2 skipped, 17 errors in 71.97s (0:01:11) ======== ==> ERROR: A failure occurred in check().  Aborting...