Title: Test failures when hypothesis is available but cannot reach GitHub · Issue #132316 · python/cpython · GitHub
Open Graph Title: Test failures when hypothesis is available but cannot reach GitHub · Issue #132316 · python/cpython
X Title: Test failures when hypothesis is available but cannot reach GitHub · Issue #132316 · python/cpython
Description: Bug report Bug description: Hi, we recently started seeing several tests (namely test_binascii, test_math_property, test_tools and test_zoneinfo) to fail due to hypothesis warnings (which were recently turned into errors with #131802): h...
Open Graph Description: Bug report Bug description: Hi, we recently started seeing several tests (namely test_binascii, test_math_property, test_tools and test_zoneinfo) to fail due to hypothesis warnings (which were rece...
X Description: Bug report Bug description: Hi, we recently started seeing several tests (namely test_binascii, test_math_property, test_tools and test_zoneinfo) to fail due to hypothesis warnings (which were rece...
Opengraph URL: https://github.com/python/cpython/issues/132316
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Test failures when hypothesis is available but cannot reach GitHub","articleBody":"# Bug report\n\n### Bug description:\n\nHi, we recently started seeing several tests (namely `test_binascii`, `test_math_property`, `test_tools` and `test_zoneinfo`) to fail due to hypothesis warnings (which were recently turned into errors with https://github.com/python/cpython/pull/131802):\n```\nhypothesis.errors.HypothesisWarning: Authorization failed when trying to download artifact from GitHub. Check that you have a valid GITHUB_TOKEN set in your environment.`\n```\nor alternatively with\n```\nhypothesis.errors.HypothesisWarning: Could not connect to GitHub to get the latest artifact.\n```\nwhen I restrict the access to the internet.\n\n\nI see that running with `\"CI\"` set in the environment fixes the issue as the problematic profile with `GitHubArtifactDatabase` is not registered, but that seems more like a lucky workaround.\n\nI am not sure about the solution - maybe it can check whether `\"GITHUB_TOKEN\"` is also available? Or maybe the warning should be ignored and not cause the tests to fail.\n\nI also think it should honor `-urlfetch` and `-network` options.\n\n\n### CPython versions tested on:\n\n3.13\n\n### Operating systems tested on:\n\nOther\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-132348\n* gh-132367\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/kulikjak","@type":"Person","name":"kulikjak"},"datePublished":"2025-04-09T12:17:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/132316/cpython/issues/132316"}
| 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:77d22dfb-6f5b-5955-a35c-7240e840df90 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B4A:215443:2EB5255:3ECA22C:6A53C27D |
| html-safe-nonce | b81551bed729986b2e3941c3fd495dfdf095278d24dfb0ad00b44240d178bf31 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjRBOjIxNTQ0MzoyRUI1MjU1OjNFQ0EyMkM6NkE1M0MyN0QiLCJ2aXNpdG9yX2lkIjoiMjU3Njc1Nzc0OTc1NDA4NjAxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c8051a53f6265652ec2a0083fa37c00780d044f61ef82cbb0e3bea7d3b6c64a8 |
| hovercard-subject-tag | issue:2982643577 |
| 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/cpython/132316/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2302ea341e5cf45904b14a9ee1142250159802b4f9f5aae970c9013274767d21/python/cpython/issues/132316 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2302ea341e5cf45904b14a9ee1142250159802b4f9f5aae970c9013274767d21/python/cpython/issues/132316 |
| og:image:alt | Bug report Bug description: Hi, we recently started seeing several tests (namely test_binascii, test_math_property, test_tools and test_zoneinfo) to fail due to hypothesis warnings (which were rece... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kulikjak |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width