question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Direct use of 'tmpdir' fixture causes warnings to be raised in latest pytest versions

See original GitHub issue

The following warning message appears after test runs:

RemovedInPytest4Warning: Fixture "tmpdir" called directly. Fixtures are not meant to be called directly, are created automatically when test functions request them as parameters. See https://docs.pytest.org/en/latest/fixture.html for more information.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
youtuxcommented, Feb 13, 2019

@mpasternak I just release version 2.0.1 on PyPI. Happy testing!

1reaction
mpasternakcommented, Feb 12, 2019

@youtux thanks for the fix. I’ve also hit this bug today with clean pip install pytest-splinter.

… also, I know it’s been only 23 hours since you committed the fix but… how about a release? 😃 Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changelog — pytest documentation
Changelog¶. Versions follow Semantic Versioning ( <major>.<minor>.<patch> ). Backward incompatible (breaking) changes will only be introduced in major ...
Read more >
How to use temporary directories and files in tests - Pytest
You can use the tmp_path fixture which will provide a temporary directory unique to the test invocation, created in the base temporary directory....
Read more >
pytest fixtures: explicit, modular, scalable
fixtures have explicit names and are activated by declaring their use from test functions, modules, classes or whole projects. fixtures are implemented in...
Read more >
API Reference — pytest documentation
For pre-releases, the last component will be a string with the prerelease ... Test functions can directly use fixture names as input arguments...
Read more >
7.0.x PDF - pytest Documentation
In order to write assertions about raised exceptions, you can use pytest.raises() as ... Override a fixture with direct test parametrization.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found