-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nested conftest not found on Windows #198
Comments
Original comment by Jason R. Coombs (BitBucket: jaraco, GitHub: jaraco): Unfortunately, I'm still getting the error about the fixture: {{{ tests\unit\test_karma.py:21: TestMongoDBKarma.test_basic_usage ERROR =================================== ERRORS ==================================== C:\Users\jaraco\G\public\pmxbot\tests\unit\test_karma.py:21 |
Original comment by Jason R. Coombs (BitBucket: jaraco, GitHub: jaraco): It appears the issue is unique to Windows. I ran the same test on my Ubuntu Precise box and it runs just fine. Furthermore, I found I was able to reproduce the issue with a very simple test layout, which I've uploaded to [[/jaraco/pytest-issue198|this repo]]. Run the latest py.test on that repo on Windows and you get the error "fixture 'myarg' not found". I know Windows issues are a pain, so I'll see what else I can do to help. Perhaps you could refer me to places in the code where the conftest discovery happens, and I could review it with this bug in mind. |
…ongo-client-close pytest-server-fixtures: Explicitly close initial Mongo client
Originally reported by: Jason R. Coombs (BitBucket: jaraco, GitHub: jaraco)
In the [[https://bitbucket.org/yougov/pmxbot|pmxbot project]], there is a pytest test suite, and within that test suite are two conftest.py files, one at tests/conftest.py and another at tests/unit/conftest.py.
These tests run fine under pytest 2.2.4, but under 2.3.dev10 and 2.3.dev17, some tests fail. Specifically, the tests that depend on the funcarg as defined in [[/yougov/pmxbot/src/85020053dd0b/tests/unit/conftest.py|tests/unit/conftest.py]] will fail because the funcarg is not defined:
I read the changelog for changes between 2.2 and 2.3 and I didn't see anything that seemed to indicate that this pattern is no longer supported.
Can pytest support multiple, scoped conftest.py modules? I wanted to report this as it appears to be a regression from 2.2. The changelog should probably mention it (or if it already does, highlight the impact as I've described) if it is not supported. Do you have any other suggestions?
The text was updated successfully, but these errors were encountered: