Title: Tests are failing due to hypothesis filtering · Issue #186 · python-hyper/hyperlink · GitHub
Open Graph Title: Tests are failing due to hypothesis filtering · Issue #186 · python-hyper/hyperlink
X Title: Tests are failing due to hypothesis filtering · Issue #186 · python-hyper/hyperlink
Description: I do see three test failures with the same error reported: __________ TestHypothesisStrategies.test_hostname_labels_valid_ascii ___________ self = Open Graph Description: I do see three test failures with the same error reported: __________ TestHypothesisStrategies.test_hostname_labels_valid_ascii ___________ self = X Description: I do see three test failures with the same error reported: __________ TestHypothesisStrategies.test_hostname_labels_valid_ascii ___________ self = <hyperlink.test.test_hypothesis.TestHypothesisS...
Opengraph URL: https://github.com/python-hyper/hyperlink/issues/186
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Tests are failing due to hypothesis filtering","articleBody":"I do see three test failures with the same error reported:\n```\n__________ TestHypothesisStrategies.test_hostname_labels_valid_ascii ___________\n\nself = \u003chyperlink.test.test_hypothesis.TestHypothesisStrategies testMethod=test_hostname_labels_valid_ascii>\n\n @given(hostname_labels(allow_idn=False))\n> def test_hostname_labels_valid_ascii(self, label):\nE hypothesis.errors.FailedHealthCheck: It looks like this test is filtering out a lot of inputs. 8 inputs were generated successfully, while 50 inputs were filtered out.\nE \nE An input might be filtered out by calls to assume(), strategy.filter(...), or occasionally by Hypothesis internals.\nE \nE Applying this much filtering makes input generation slow, since Hypothesis must discard inputs which are filtered out and try generating it again. It is also possible that applying this much filtering will distort the domain and/or distribution of the test, leaving your testing less rigorous than expected.\nE\nE If you expect this many inputs to be filtered out during generation, you can disable this health check with @settings(suppress_health_check=[HealthCheck.filter_too_much]). See https://hypothesis.readthedocs.io/en/latest/reference/api.html#hypothesis.HealthCheck for details.\n\nsrc/hyperlink/test/test_hypothesis.py:126: FailedHealthCheck\n---------------------------------- Hypothesis ----------------------------------\nYou can add @seed(116461503814248224408486686781843716136) to this test or run pytest with --hypothesis-seed=116461503814248224408486686781843716136 to reproduce this failure.\n________________ TestHypothesisStrategies.test_hostnames_ascii _________________\n\nself = \u003chyperlink.test.test_hypothesis.TestHypothesisStrategies testMethod=test_hostnames_ascii>\n\n @given(hostnames(allow_idn=False))\n> def test_hostnames_ascii(self, hostname):\nE hypothesis.errors.FailedHealthCheck: It looks like this test is filtering out a lot of inputs. 6 inputs were generated successfully, while 50 inputs were filtered out.\nE\nE An input might be filtered out by calls to assume(), strategy.filter(...), or occasionally by Hypothesis internals.\nE\nE Applying this much filtering makes input generation slow, since Hypothesis must discard inputs which are filtered out and try generating it again. It is also possible that applying this much filtering will distort the domain and/or distribution of the test, leaving your testing less rigorous than expected.\nE\nE If you expect this many inputs to be filtered out during generation, you can disable this health check with @settings(suppress_health_check=[HealthCheck.filter_too_much]). See https://hypothesis.readthedocs.io/en/latest/reference/api.html#hypothesis.HealthCheck for details.\n\nsrc/hyperlink/test/test_hypothesis.py:162: FailedHealthCheck\n---------------------------------- Hypothesis ----------------------------------\nYou can add @seed(122086611077758224883304239040414256859) to this test or run pytest with --hypothesis-seed=122086611077758224883304239040414256859 to reproduce this failure.\n_____________ TestHypothesisStrategies.test_hostnames_ascii_nolead _____________\n\nself = \u003chyperlink.test.test_hypothesis.TestHypothesisStrategies testMethod=test_hostnames_ascii_nolead>\n\n @given(hostnames(allow_leading_digit=False, allow_idn=False))\n> def test_hostnames_ascii_nolead(self, hostname):\nE hypothesis.errors.FailedHealthCheck: It looks like this test is filtering out a lot of inputs. 0 inputs were generated successfully, while 50 inputs were filtered out.\nE\nE An input might be filtered out by calls to assume(), strategy.filter(...), or occasionally by Hypothesis internals.\nE\nE Applying this much filtering makes input generation slow, since Hypothesis must discard inputs which are filtered out and try generating it again. It is also possible that applying this much filtering will distort the domain and/or distribution of the test, leaving your testing less rigorous than expected.\nE\nE If you expect this many inputs to be filtered out during generation, you can disable this health check with @settings(suppress_health_check=[HealthCheck.filter_too_much]). See https://hypothesis.readthedocs.io/en/latest/reference/api.html#hypothesis.HealthCheck for details.\n\nsrc/hyperlink/test/test_hypothesis.py:177: FailedHealthCheck\n---------------------------------- Hypothesis ----------------------------------\nYou can add @seed(265092412803701260153578618770534088842) to this test or run pytest with --hypothesis-seed=265092412803701260153578618770534088842 to reproduce this failure.\n```","author":{"url":"https://github.com/mtelka","@type":"Person","name":"mtelka"},"datePublished":"2025-12-24T15:13:02Z","url":"https://github.com/python-hyper/hyperlink/issues/186"}
react-profiling 0 react-import-map react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 route-pattern /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:930f6526-2c69-7edb-5266-e83fbbc01f02 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id 826E:2925CB:AE2A53:F5E763:6B06E7AC html-safe-nonce 000525319436d5854c17aba32d149686a3a8aab69741fe2943abb0d9cc96f217 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjZFOjI5MjVDQjpBRTJBNTM6RjVFNzYzOjZCMDZFN0FDIiwidmlzaXRvcl9pZCI6IjE0NjgzODA5MDE0Njg5ODkzNTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac 4b0fb004fb0d21fcc1f1f062c716e5bd83a90febf60128a4625dc1050a0a4908 hovercard-subject-tag issue:3760558226 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-hyper/hyperlink/186/issue_layout twitter:image https://opengraph.githubassets.com/b29214d1f42167d447c2535086ac5c9ea6560f6cac1092324ed51b97a5ea3b84/python-hyper/hyperlink/issues/186 twitter:card summary_large_image og:image https://opengraph.githubassets.com/b29214d1f42167d447c2535086ac5c9ea6560f6cac1092324ed51b97a5ea3b84/python-hyper/hyperlink/issues/186 og:image:alt I do see three test failures with the same error reported: __________ TestHypothesisStrategies.test_hostname_labels_valid_ascii ___________ self = og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username mtelka hostname github.com expected-hostname github.com None 351ea5ca38a5758919d44ee52c70fe9003c0c2dfa20f04effd7fac0c5330c16b turbo-cache-control no-preview go-import github.com/python-hyper/hyperlink git https://github.com/python-hyper/hyperlink.git octolytics-dimension-user_id 13035907 octolytics-dimension-user_login python-hyper octolytics-dimension-repository_id 82321340 octolytics-dimension-repository_nwo python-hyper/hyperlink octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 82321340 octolytics-dimension-repository_network_root_nwo python-hyper/hyperlink turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release af8913cd0f2f77c41796be449ac66a9108825abc ui-target full theme-color #1e2327 color-scheme light dark react-app-name issues
Response headers:
Server github.com Content-Type text/html; charset=utf-8 Cache-Control max-age=0, private, must-revalidate
URLs of crawlers that visited me.