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

Deprecate support for passing command-line as string to pytest.main() #1727

Merged

Conversation

nicoddemus
Copy link
Member

Fixes #1723

@coveralls
Copy link

coveralls commented Jul 13, 2016

Coverage Status

Coverage increased (+0.003%) to 92.233% when pulling e0e9af2 on nicoddemus:deprecate-str-pytest-main into 1fb09d9 on pytest-dev:features.

# we want to remove this way of passing arguments to pytest.main()
# in pytest-4.0
warning = 'passing a string to pytest.main() is deprecated, ' \
'pass a list of arguments instead.'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd really prefer putting parentheses around the string instead of using \ which can be very brittle (e.g. if someone accidentally adds a space after it)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@nicoddemus
Copy link
Member Author

Done, thanks

@coveralls
Copy link

coveralls commented Jul 14, 2016

Coverage Status

Coverage increased (+0.003%) to 92.233% when pulling ab0b6fa on nicoddemus:deprecate-str-pytest-main into 1fb09d9 on pytest-dev:features.

@The-Compiler The-Compiler merged commit 691dc8b into pytest-dev:features Jul 14, 2016
@nicoddemus nicoddemus modified the milestone: 4.0 Jan 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants