Comments (4)
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.
I've just released 0.1.5 that includes this fix.
from pytest-tldr.
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.
@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)
- hookspec UserWarning on use HOT 4
- Enable TLDR with a flag? HOT 4
- AttributeError after installing
- raise RuntimeError(f"Failed to collect tests from {entry.path} HOT 1
- print calls should always use report.longreprtext HOT 1
- No write to terminal, HOT 1
- Improve configurability of verbosity behavior HOT 3
- 0.2.3 no longer compatible with pytest <=5.x HOT 1
- Conflict with pytest-profiling? HOT 2
- `AttributeError` for `pytest v7.2.0` HOT 1
- Support Python2
- Suppresses Collection Errors HOT 1
- Coverage Report HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytest-tldr.