GithubHelp home page GithubHelp logo

Comments (4)

freakboy3742 avatar freakboy3742 commented on June 10, 2024 1

Looks like that might be tldr's problem - it's missing the write_sep method. Should be easy enough to add - thanks for the report!

from pytest-tldr.

freakboy3742 avatar freakboy3742 commented on June 10, 2024

I've just released 0.1.5 that includes this fix.

from pytest-tldr.

pseudotensor avatar pseudotensor commented on June 10, 2024

I have 0.1.5 and I still get this:

Traceback (most recent call last):
  File "/home/jon/.pyenv/versions/3.6.4/bin/pytest", line 11, in <module>
    sys.exit(main())
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/_pytest/config.py", line 61, in main
    return config.hook.pytest_cmdline_main(config=config)
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/pluggy/__init__.py", line 617, in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/pluggy/__init__.py", line 222, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/pluggy/__init__.py", line 216, in <lambda>
    firstresult=hook.spec_opts.get('firstresult'),
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/pluggy/callers.py", line 201, in _multicall
    return outcome.get_result()
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/pluggy/callers.py", line 76, in get_result
    raise ex[1].with_traceback(ex[2])
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/pluggy/callers.py", line 180, in _multicall
    res = hook_impl.function(*args)
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/_pytest/main.py", line 138, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/_pytest/main.py", line 132, in wrap_session
    exitstatus=session.exitstatus)
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/pluggy/__init__.py", line 617, in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/pluggy/__init__.py", line 222, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/pluggy/__init__.py", line 216, in <lambda>
    firstresult=hook.spec_opts.get('firstresult'),
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/pluggy/callers.py", line 201, in _multicall
    return outcome.get_result()
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/pluggy/callers.py", line 76, in get_result
    raise ex[1].with_traceback(ex[2])
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/pluggy/callers.py", line 180, in _multicall
    res = hook_impl.function(*args)
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/pytest_tldr.py", line 282, in pytest_sessionfinish
    terminalreporter=self, exitstatus=exitstatus
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/pluggy/__init__.py", line 617, in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/pluggy/__init__.py", line 222, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/pluggy/__init__.py", line 216, in <lambda>
    firstresult=hook.spec_opts.get('firstresult'),
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/pluggy/callers.py", line 201, in _multicall
    return outcome.get_result()
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/pluggy/callers.py", line 76, in get_result
    raise ex[1].with_traceback(ex[2])
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/pluggy/callers.py", line 180, in _multicall
    res = hook_impl.function(*args)
  File "/home/jon/.pyenv/versions/3.6.4/lib/python3.6/site-packages/_pytest/runner.py", line 41, in pytest_terminal_summary
    tr.write_sep("=", "slowest %s test durations" % durations)
AttributeError: 'TLDRReporter' object has no attribute 'write_sep'

from pytest-tldr.

freakboy3742 avatar freakboy3742 commented on June 10, 2024

@pseudotensor Are you sure you've got 0.1.5? Can you provide a pip freeze listing?

Also - what other pytest plugins do you have installed? What's your minimum case for reproducing this error?

from pytest-tldr.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.