[py-dev] [hpk42/pytest] errors in factory setup call terminalwriter with bogous args (issue #179)

Ronny Pfannschmidt issues-reply at bitbucket.org
Mon Aug 20 16:25:26 CEST 2012


--- you can reply above this line ---

New issue 179: errors in factory setup call terminalwriter with bogous args
https://bitbucket.org/hpk42/pytest/issue/179/errors-in-factory-setup-call

Ronny Pfannschmidt:

{{{
============================= test session starts ==============================
platform linux2 -- Python 2.7.3 -- pytest-2.3.0.dev10
plugins: xdist, codecheckers, couchdbkit, cache
collecting ... collected 300 items

tests/test_checkout.py EEEE
tests/test_client.py EEEEE
tests/test_metadata.py EEEEEE
tests/test_util.py E
tests/test_vc_script.py E
tests/remote/test_remote.py EE
tests/remote/test_remote_object.py EE
tests/repository/test_commit_builder.py E
tests/repository/test_creation.py EE
tests/repository/test_find.py E
tests/repository/test_history.py EEEEE
tests/repository/test_history_diff.py E
tests/repository/test_renames.py Ex
tests/repository/test_repopath.py EE
tests/repository/test_simple_renames.py x
tests/workdir/test_common.py EEEEEEEEEEE
tests/workdir/test_stated_path.py EEE
tests/test_checkout.py EEEE
tests/test_client.py EEEEE
tests/test_metadata.py EEEEEE
tests/test_util.py E
tests/test_vc_script.py E
tests/remote/test_remote.py EE
tests/remote/test_remote_object.py EE
tests/repository/test_commit_builder.py E
tests/repository/test_creation.py EE
tests/repository/test_find.py E
tests/repository/test_history.py EEEEE
tests/repository/test_history_diff.py E
tests/repository/test_renames.py Ex
tests/repository/test_repopath.py EE
tests/repository/test_simple_renames.py x
tests/workdir/test_common.py EEEEEEEEEEE
tests/workdir/test_stated_path.py EEE
tests/test_checkout.py EEEE
tests/test_client.py EEEEE
tests/test_metadata.py EEEEEE
tests/test_util.py E
tests/test_vc_script.py E
tests/remote/test_remote.py EE
tests/remote/test_remote_object.py EE
tests/repository/test_commit_builder.py E
tests/repository/test_creation.py EE
tests/repository/test_find.py E
tests/repository/test_history.py EEEEE
tests/repository/test_history_diff.py E
tests/repository/test_renames.py Ex
tests/repository/test_repopath.py EE
tests/repository/test_simple_renames.py x
tests/workdir/test_common.py EEEEEEEEEEE
tests/workdir/test_stated_path.py EEE
tests/test_checkout.py EEEE
tests/test_client.py EEEEE
tests/test_metadata.py EEEEEE
tests/test_util.py E
tests/test_vc_script.py E
tests/remote/test_remote.py EE
tests/remote/test_remote_object.py EE
tests/repository/test_commit_builder.py E
tests/repository/test_creation.py EE
tests/repository/test_find.py E
tests/repository/test_history.py EEEEE
tests/repository/test_history_diff.py E
tests/repository/test_renames.py Ex
tests/repository/test_repopath.py EE
tests/repository/test_simple_renames.py x
tests/workdir/test_common.py EEEEEEEEEEE
tests/workdir/test_stated_path.py EEE
tests/test_checkout.py EEEE
tests/test_client.py EEEEE
tests/test_metadata.py EEEEEE
tests/test_util.py E
tests/test_vc_script.py E
tests/remote/test_remote.py EE
tests/remote/test_remote_object.py EE
tests/repository/test_commit_builder.py E
tests/repository/test_creation.py EE
tests/repository/test_find.py E
tests/repository/test_history.py EEEEE
tests/repository/test_history_diff.py E
tests/repository/test_renames.py Ex
tests/repository/test_repopath.py EE
tests/repository/test_simple_renames.py x
tests/workdir/test_common.py EEEEEEEEEEE
tests/workdir/test_stated_path.py EEE
tests/test_checkout.py EEEE
tests/test_client.py EEEEE
tests/test_metadata.py EEEEEE
tests/test_util.py E
tests/test_vc_script.py E
tests/remote/test_remote.py EE
tests/remote/test_remote_object.py EE
tests/repository/test_commit_builder.py E
tests/repository/test_creation.py EE
tests/repository/test_find.py E
tests/repository/test_history.py EEEEE
tests/repository/test_history_diff.py E
tests/repository/test_renames.py Ex
tests/repository/test_repopath.py EE
tests/repository/test_simple_renames.py x
tests/workdir/test_common.py EEEEEEEEEEE
tests/workdir/test_stated_path.py EEE

==================================== ERRORS ====================================
___________ ERROR at setup of test_checkout_local[direct-subversion] ___________

    def pytest_funcarg__repo(request, mgr):
        LookupError: no factory found for argument 'mgr'
        available funcargs: pytestconfig, couchdb, couchdb_server, recwarn, spec, repo, wd, monkeypatch, vcs, capfd, capsys, tmpdir, backend
        use 'py.test --funcargs [testpath]' for help on them.

/home/ronny/Projects/pissoff/anyvc/tests/conftest.py:105
____________ ERROR at setup of test_clone_local[direct-subversion] _____________

    def pytest_funcarg__wd(request, mgr):
        LookupError: no factory found for argument 'mgr'
        available funcargs: pytestconfig, couchdb, couchdb_server, recwarn, spec, repo, wd, monkeypatch, vcs, capfd, capsys, tmpdir, backend
        use 'py.test --funcargs [testpath]' for help on them.

/home/ronny/Projects/pissoff/anyvc/tests/conftest.py:111
____________ ERROR at setup of test_clone_remote[direct-subversion] ____________

    @py.test.mark.feature('wd:heavy')
    def test_clone_remote(mgr):
        LookupError: no factory found for argument 'mgr'
        available funcargs: pytestconfig, couchdb, couchdb_server, recwarn, spec, repo, wd, monkeypatch, vcs, capfd, capsys, tmpdir, backend
        use 'py.test --funcargs [testpath]' for help on them.

/home/ronny/Projects/pissoff/anyvc/tests/test_checkout.py:37
__________ ERROR at setup of test_checkout_remote[direct-subversion] ___________

    @pytest.factory(scope='session')
    def backend(request, vcs, spec):
        LookupError: no factory found for argument 'request'
        available funcargs: pytestconfig, couchdb, couchdb_server, recwarn, spec, repo, wd, monkeypatch, vcs, capfd, capsys, tmpdir, backend
        use 'py.test --funcargs [testpath]' for help on them.

/home/ronny/Projects/pissoff/anyvc/tests/conftest.py:72
________ ERROR at setup of test_output_state[direct-subversion-deleted] ________

<_pytest.python.SetupCall instance at 0x14253f8>Traceback (most recent call last):
  File "/home/ronny/.local/virtualenvs/tools/bin/py.test", line 9, in <module>
    load_entry_point('pytest==2.3.0.dev10', 'console_scripts', 'py.test')()
  File "/home/ronny/Projects/codespeak/pytest/_pytest/core.py", line 470, in main
    exitstatus = config.hook.pytest_cmdline_main(config=config)
  File "/home/ronny/Projects/codespeak/pytest/_pytest/core.py", line 422, in __call__
    return self._docall(methods, kwargs)
  File "/home/ronny/Projects/codespeak/pytest/_pytest/core.py", line 433, in _docall
    res = mc.execute()
  File "/home/ronny/Projects/codespeak/pytest/_pytest/core.py", line 351, in execute
    res = method(**kwargs)
  File "/home/ronny/Projects/codespeak/pytest/_pytest/main.py", line 103, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/home/ronny/Projects/codespeak/pytest/_pytest/main.py", line 95, in wrap_session
    exitstatus=session.exitstatus or (session._testsfailed and 1))
  File "/home/ronny/Projects/codespeak/pytest/_pytest/core.py", line 422, in __call__
    return self._docall(methods, kwargs)
  File "/home/ronny/Projects/codespeak/pytest/_pytest/core.py", line 433, in _docall
    res = mc.execute()
  File "/home/ronny/Projects/codespeak/pytest/_pytest/core.py", line 351, in execute
    res = method(**kwargs)
  File "/home/ronny/Projects/codespeak/pytest/_pytest/terminal.py", line 332, in pytest_sessionfinish
    self.summary_errors()
  File "/home/ronny/Projects/codespeak/pytest/_pytest/terminal.py", line 430, in summary_errors
    self._outrep_summary(rep)
  File "/home/ronny/Projects/codespeak/pytest/_pytest/terminal.py", line 433, in _outrep_summary
    rep.toterminal(self._tw)
  File "/home/ronny/Projects/codespeak/pytest/_pytest/runner.py", line 155, in toterminal
    longrepr.toterminal(out)
  File "/home/ronny/Projects/codespeak/pytest/_pytest/python.py", line 1215, in toterminal
    tw.line(line)
  File "/home/ronny/Projects/codespeak/py/py/_io/terminalwriter.py", line 185, in line
    self._checkfill(s)
  File "/home/ronny/Projects/codespeak/py/py/_io/terminalwriter.py", line 197, in _checkfill
    diff2last = self._lastlen - len(line)
AttributeError: SetupCall instance has no attribute '__len__'
}}}



--

This is an issue notification from bitbucket.org. You are receiving
this either because you are the owner of the issue, or you are
following the issue.



More information about the Pytest-dev mailing list