Title: Skip Py2 subprocess tests if Py2 interpreter found does not have typing installed · Issue #4039 · python/mypy · GitHub
Open Graph Title: Skip Py2 subprocess tests if Py2 interpreter found does not have typing installed · Issue #4039 · python/mypy
X Title: Skip Py2 subprocess tests if Py2 interpreter found does not have typing installed · Issue #4039 · python/mypy
Description: The behavior of mypy with regard to Python 2.7 tests is inconsistent. On the one hand, if no Python 2.7 interpreter can be found at all, https://github.com/python/mypy/blob/master/mypy/util.py#L66 will return None and mypy will happily s...
Open Graph Description: The behavior of mypy with regard to Python 2.7 tests is inconsistent. On the one hand, if no Python 2.7 interpreter can be found at all, https://github.com/python/mypy/blob/master/mypy/util.py#L66 ...
X Description: The behavior of mypy with regard to Python 2.7 tests is inconsistent. On the one hand, if no Python 2.7 interpreter can be found at all, https://github.com/python/mypy/blob/master/mypy/util.py#L66 ...
Opengraph URL: https://github.com/python/mypy/issues/4039
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Skip Py2 subprocess tests if Py2 interpreter found does not have typing installed","articleBody":"The behavior of mypy with regard to Python 2.7 tests is inconsistent. On the one hand, if no Python 2.7 interpreter can be found at all, https://github.com/python/mypy/blob/master/mypy/util.py#L66 will return `None` and mypy will happily skip the Py2 tests. But if a Python 2.7 interpreter is found, but is missing the `typing` backport (which mypy no longer bundles), mypy will go ahead and run the Py2 tests and they will fail.\r\n\r\nOur build boxes are in the midst of an upgrade from an OS version with Python 2.6 as system Python to one with Python 2.7. On the older OS, mypy builds fine and just skips the Py2 tests (which is fine). On the newer OS, it finds the system Python 2.7 and those tests fail for lack of `typing`. It'sdifficult for us to install the `typing` module into the system Python on these hosts.\r\n\r\nI propose that it would be more consistent if mypy considers \"no Python 2.7 with typing available\" equivalent to \"no Python 2.7 available\" and skips the Py2 tests. It would be quite easy to add a `python -c \"import typing\"` check to `try_find_python2_interpreter`. I can submit a PR for this, if the idea is approved.","author":{"url":"https://github.com/carljm","@type":"Person","name":"carljm"},"datePublished":"2017-09-30T22:49:40Z","url":"https://github.com/python/mypy/issues/4039"}
| 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:d421c133-d57b-7272-f973-bff3ccd9afd9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 95C4:28B491:12331C0:17DBA13:6B000CCB |
| html-safe-nonce | a7980b78e6b0e9c94d5f370a0e1e66120f86566c8b503539d779faf6f82c4503 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUM0OjI4QjQ5MToxMjMzMUMwOjE3REJBMTM6NkIwMDBDQ0IiLCJ2aXNpdG9yX2lkIjoiMjA2NDQwODc5ODkyMzA2NjU3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5acdedd320751a197315a1b6c35af895bae7ceff6c7464fab1024b7eed366be1 |
| hovercard-subject-tag | issue:261877821 |
| 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/mypy/4039/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7579ca33e74a510d28dc1d79720423501a17d95622c9331a3ba9ff64fe181edf/python/mypy/issues/4039 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7579ca33e74a510d28dc1d79720423501a17d95622c9331a3ba9ff64fe181edf/python/mypy/issues/4039 |
| og:image:alt | The behavior of mypy with regard to Python 2.7 tests is inconsistent. On the one hand, if no Python 2.7 interpreter can be found at all, https://github.com/python/mypy/blob/master/mypy/util.py#L66 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | carljm |
| hostname | github.com |
| expected-hostname | github.com |
| None | cf7ee0062053ad9eb05b6e5de57bd96c2055708bcbada4144946b5ec129cf1d7 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| 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 | 9cab7de176a56362d2aabcbb4d1e07e846eba8a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width