Skip to content
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

Fix for pytest 7 #123

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS.md
Expand Up @@ -18,5 +18,6 @@ along with the following contributors:
- Emmanuel Leblond ([@touilleMan](https://github.com/touilleMan))
- Alex Ford ([@asford](https://github.com/asford))
- And Past ([@apast](https://github.com/apast))
- Hugo van Kemenade ([@hugovk](https://github.com/hugovk))

[home]: README.md
7 changes: 5 additions & 2 deletions pytest_watch/config.py
Expand Up @@ -33,8 +33,11 @@ def __init__(self):
self.path = None

def pytest_cmdline_main(self, config):
if hasattr(config, 'inifile'):
# pytest >= 2.7.0
if hasattr(config, 'inipath'):
# pytest >= 7
inifile = config.inipath
elif hasattr(config, 'inifile'):
# pytest 2.7.0 - 6
inifile = config.inifile
else:
# pytest < 2.7.0
Expand Down