Title: scripts/runtests.py cannot run tests/mypy_test.py · Issue #10599 · python/typeshed · GitHub
Open Graph Title: scripts/runtests.py cannot run tests/mypy_test.py · Issue #10599 · python/typeshed
X Title: scripts/runtests.py cannot run tests/mypy_test.py · Issue #10599 · python/typeshed
Description: Steps to reproduce: clone a fresh copy of the repo git clone https://github.com/python/typeshed.git cd typeshed Set up a local development enviroment as described in CONTRIBUTING.md: python3 -m venv .venv .venv/bin/pip install -U pip .ve...
Open Graph Description: Steps to reproduce: clone a fresh copy of the repo git clone https://github.com/python/typeshed.git cd typeshed Set up a local development enviroment as described in CONTRIBUTING.md: python3 -m ven...
X Description: Steps to reproduce: clone a fresh copy of the repo git clone https://github.com/python/typeshed.git cd typeshed Set up a local development enviroment as described in CONTRIBUTING.md: python3 -m ven...
Opengraph URL: https://github.com/python/typeshed/issues/10599
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"scripts/runtests.py cannot run tests/mypy_test.py","articleBody":"Steps to reproduce:\r\n\r\n1. clone a fresh copy of the repo\r\n\r\n git clone https://github.com/python/typeshed.git\r\n cd typeshed\r\n\r\n1. Set up a local development enviroment as described in `CONTRIBUTING.md`:\r\n\r\n python3 -m venv .venv\r\n .venv/bin/pip install -U pip\r\n .venv/bin/pip install -r requirements-tests.txt\r\n\r\n1. Run the local tests as described in `tests/README.md`:\r\n\r\n .venv/bin/python3 scripts/runtests.py stdlib/xml\r\n\r\nExpected results:\r\n\r\n* All tests pass or are skipped\r\n\r\nActual results:\r\n\r\nmypy tests fail:\r\n\r\n```\r\nRunning mypy for Python 3.7...\r\nusage: mypy_test.py [-h] [-x [EXCLUDE ...]] [-v] [-p [{3.12,3.11,3.10,3.9,3.8} ...]]\r\n [--platform [{linux,win32,darwin} ...]]\r\n [filter ...]\r\nmypy_test.py: error: argument -p/--python-version: invalid choice: '3.7' (choose from '3.12', '3.11', '3.10', '3.9', '3.8')\r\n```\r\n\r\nIt looks like #10559 removed \"3.7\" from the `tests/mypy_test.py` wrapper, so it would reject requests to test types in Python 3.7 style, but did not update `scripts/runtests.py` to stop asking for Python 3.7 style.\r\n\r\nAdding \"3.7\" back to the list of acceptable Python versions in `tests/mypy_test.py` gets things working nicely for me; alternatively, updating `scripts/runtests.py` to ask for Python 3.8 support works too.","author":{"url":"https://github.com/Screwtapello","@type":"Person","name":"Screwtapello"},"datePublished":"2023-08-21T08:55:22Z","url":"https://github.com/python/typeshed/issues/10599"}
| 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:9e373d12-d035-5c2b-f1ac-a2f7b657cb8e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD9A:18D1D3:8758E3:AF1D55:6AFFE104 |
| html-safe-nonce | e1ac62a9fabaedbb11b8d9d5aa6941b61885ffc31cedbe07240c5900c636550f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDlBOjE4RDFEMzo4NzU4RTM6QUYxRDU1OjZBRkZFMTA0IiwidmlzaXRvcl9pZCI6IjkxMTg1NDIxNDMzMzY0NzI4MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c94180b195aef98ffde8f7996cf8b56e509c2594bda274ce0d9a20308a64853e |
| hovercard-subject-tag | issue:1858917838 |
| 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/typeshed/10599/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5b29a9c5471db6cef98a6e455675eac1195c03b559e3af57fab4da4dd6639ee0/python/typeshed/issues/10599 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5b29a9c5471db6cef98a6e455675eac1195c03b559e3af57fab4da4dd6639ee0/python/typeshed/issues/10599 |
| og:image:alt | Steps to reproduce: clone a fresh copy of the repo git clone https://github.com/python/typeshed.git cd typeshed Set up a local development enviroment as described in CONTRIBUTING.md: python3 -m ven... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Screwtapello |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/typeshed git https://github.com/python/typeshed.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 31696383 |
| octolytics-dimension-repository_nwo | python/typeshed |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31696383 |
| octolytics-dimension-repository_network_root_nwo | python/typeshed |
| 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 | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width