Comments (6)
Could you provide some more information, such as which pytest version are you using and how are you invoking pytest? That might shed some light into the matter.
from pluggy.
Sure, sorry about that! I've updated the stacktrace accordingly. I'm also using pytest-django
and pytest-selenium
though I don't think they're related.
I also tried running just py.test tests/sample_test.py
with the following contents:
import pytest
def test_sanity():
assert 1 == 1
with the same results.
from pluggy.
Hmm it seems there's a mismatch somewhere between a hook declaration and a hook implementation... the only pytest builtin hook with a startdir
parameter is pytest_report_header
. Any chance there's a pytest_report_header
hook somewhere in this code?
Is this code published somewhere so people can try to reproduce it?
from pluggy.
Here's an example, sorry it's such a big project but it's the quickest way to get where I am now.
It appears to start after the addition of either python-selenium
or pytest-cov
...
To reproduce, pip install -r requirements/test.txt && pip install -r requirements/local.txt
, then py.test
I also had to properly space line #49 in /Users/jon/.virtualenvs/example/lib/python3.5/site-packages/selenium/webdriver/safari/webdriver.py
to fall under the if
statement.
from pluggy.
Okay, after further testing it's definitely after the addition of pytest-selenium
. Thanks for the help thus far, cheers!
from pluggy.
OK, glad you found it!
from pluggy.
Related Issues (20)
- Drop Python 3.7
- Export our typing HOT 2
- multi hook registration does not unregister HOT 6
- Can plugins be executed concurrently? HOT 3
- RFE: is it possible to start making github releases?🤔 HOT 3
- pytest won't run root conftest.py's pytest_configure in special circumstances HOT 2
- Rename misleading function name `PluggyManager.load_setuptools_entrypoints` HOT 3
- Issue with ordering of hooks HOT 2
- Question about default values in hook implementation HOT 1
- discussion: pluggy speedup by using 'codegen' HOT 7
- Is it possible to override an existing hook with a HookCaller class?
- pluggy loads disabled pytest plugins HOT 5
- Warn when old-style hookwrapper raises during teardown
- Add python-lsp-server to downstream tests
- Troubles to understand the new updates on Pluggy HOT 11
- Bug: Pluggy 1.4 searches all home dirs for __init__.py HOT 2
- Possible to tell which hook answered a call? HOT 1
- load_setuptools_entrypoints messing up with rpath HOT 2
- How to get in touch regarding a security concern HOT 6
- [FR] Rename `load_setuptools_entrypoints` to `load_package_metadata_entrypoints()` HOT 2
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 pluggy.