Giter VIP home page Giter VIP logo

Comments (6)

nicoddemus avatar nicoddemus commented on August 10, 2024

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.

jmillxyz avatar jmillxyz commented on August 10, 2024

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.

nicoddemus avatar nicoddemus commented on August 10, 2024

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.

jmillxyz avatar jmillxyz commented on August 10, 2024

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.

jmillxyz avatar jmillxyz commented on August 10, 2024

Okay, after further testing it's definitely after the addition of pytest-selenium. Thanks for the help thus far, cheers!

from pluggy.

nicoddemus avatar nicoddemus commented on August 10, 2024

OK, glad you found it!

from pluggy.

Related Issues (20)

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.