{"action":"created","issue":{"url":"https://api.github.com/repos/HypothesisWorks/hypothesis/issues/1630","repository_url":"https://api.github.com/repos/HypothesisWorks/hypothesis","labels_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/issues/1630/labels{/name}","comments_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/issues/1630/comments","events_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/issues/1630/events","html_url":"https://github.com/HypothesisWorks/hypothesis/issues/1630","id":368055071,"node_id":"MDU6SXNzdWUzNjgwNTUwNzE=","number":1630,"title":"Allow warnings-as-errors to be disabled when running tests","user":{"login":"seifertm","id":8395347,"node_id":"MDQ6VXNlcjgzOTUzNDc=","avatar_url":"https://avatars1.githubusercontent.com/u/8395347?v=4","gravatar_id":"","url":"https://api.github.com/users/seifertm","html_url":"https://github.com/seifertm","followers_url":"https://api.github.com/users/seifertm/followers","following_url":"https://api.github.com/users/seifertm/following{/other_user}","gists_url":"https://api.github.com/users/seifertm/gists{/gist_id}","starred_url":"https://api.github.com/users/seifertm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seifertm/subscriptions","organizations_url":"https://api.github.com/users/seifertm/orgs","repos_url":"https://api.github.com/users/seifertm/repos","events_url":"https://api.github.com/users/seifertm/events{/privacy}","received_events_url":"https://api.github.com/users/seifertm/received_events","type":"User","site_admin":false},"labels":[{"id":602737425,"node_id":"MDU6TGFiZWw2MDI3Mzc0MjU=","url":"https://api.github.com/repos/HypothesisWorks/hypothesis/labels/tests/build/CI","name":"tests/build/CI","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-09T06:13:43Z","updated_at":"2018-10-09T13:21:02Z","closed_at":null,"author_association":"NONE","body":"Sorry to pull this issue out again… I am currently trying to package a more recent version of Hypothesis (Python) for Gentoo Linux. When running the tests with Python3, I get a DeprecationWarning (from `pluggy-0.5.2`) that is treated as an exception (the same error was described and solved in https://github.com/HypothesisWorks/hypothesis/issues/969). Previously, it was possible to configure the behaviour of Python's `warnings` module. However, the env var `PYTHONWARNINGS` seems to have no effect, nor does the `-W` switch for pytest or the interpreter.\r\n\r\nBy the looks of it, [this line](https://github.com/HypothesisWorks/hypothesis/blob/master/hypothesis-python/tests/common/setup.py#L32) overrides all warning configuration for the tests. If I remove the offending line, tests run just fine.\r\n\r\nIs there a configuration option to disable the fact that warnings are treated as errors? I feel that this would be useful for other downstream packagers as well."},"comment":{"url":"https://api.github.com/repos/HypothesisWorks/hypothesis/issues/comments/428188968","html_url":"https://github.com/HypothesisWorks/hypothesis/issues/1630#issuecomment-428188968","issue_url":"https://api.github.com/repos/HypothesisWorks/hypothesis/issues/1630","id":428188968,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODE4ODk2OA==","user":{"login":"Zac-HD","id":12229877,"node_id":"MDQ6VXNlcjEyMjI5ODc3","avatar_url":"https://avatars1.githubusercontent.com/u/12229877?v=4","gravatar_id":"","url":"https://api.github.com/users/Zac-HD","html_url":"https://github.com/Zac-HD","followers_url":"https://api.github.com/users/Zac-HD/followers","following_url":"https://api.github.com/users/Zac-HD/following{/other_user}","gists_url":"https://api.github.com/users/Zac-HD/gists{/gist_id}","starred_url":"https://api.github.com/users/Zac-HD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zac-HD/subscriptions","organizations_url":"https://api.github.com/users/Zac-HD/orgs","repos_url":"https://api.github.com/users/Zac-HD/repos","events_url":"https://api.github.com/users/Zac-HD/events{/privacy}","received_events_url":"https://api.github.com/users/Zac-HD/received_events","type":"User","site_admin":false},"created_at":"2018-10-09T13:21:02Z","updated_at":"2018-10-09T13:21:02Z","author_association":"MEMBER","body":"```python\r\n# Fixed in recent versions but allowed by pytest=3.0.0; see #1630\r\nfilterwarnings('ignore', category=DeprecationWarning, module='pluggy.__init__')\r\n```\r\n\r\nshould work, and I'd accept a PR to add it to our test config if it does - or a wider filter so long as it only catches warnings from old versions of indirect dependencies."}}
{"actor":{"display_login":"Zac-HD"}}