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

Filter warnings on pytest >= v3.1 #882

Merged
merged 1 commit into from
May 30, 2017
Merged

Conversation

dean0x7d
Copy link
Member

The new version of pytest now reports Python warnings by default. For example: Python 2.7 and 3.6. This PR filters out some warnings generated by third-party extensions which are not useful for pybind11 tests. Alternatively, all warnings could be ignored, but I think it's good to do it selectively in case something in pybind11 really does create an issue.

(The filterwarnings entry in pytest.ini is ignored by older versions so pytest 3.0 still works.)

The new version of pytest now reports Python warnings by default. This
commit filters out some third-party extension warnings which are not
useful for pybind11 tests.
@dean0x7d dean0x7d merged commit 005fde6 into pybind:master May 30, 2017
@dean0x7d dean0x7d deleted the pytest-warnings branch May 31, 2017 13:44
@dean0x7d dean0x7d modified the milestone: v2.2 Aug 13, 2017
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.

1 participant