Title: tests failing on master (macOS Monterey / py 3.7) · Issue #12615 · python/mypy · GitHub
Open Graph Title: tests failing on master (macOS Monterey / py 3.7) · Issue #12615 · python/mypy
X Title: tests failing on master (macOS Monterey / py 3.7) · Issue #12615 · python/mypy
Description: Bug Report Tests are failing for the master branch on my macOS laptop. A few tests in PEP561Suite are flaky for reasons I don't quite understand. To Reproduce git pull git checkout f501cf649d7976077a7196e3548d773d67340a8c python3.7 -m ve...
Open Graph Description: Bug Report Tests are failing for the master branch on my macOS laptop. A few tests in PEP561Suite are flaky for reasons I don't quite understand. To Reproduce git pull git checkout f501cf649d797607...
X Description: Bug Report Tests are failing for the master branch on my macOS laptop. A few tests in PEP561Suite are flaky for reasons I don't quite understand. To Reproduce git pull git checkout f501cf649d79...
Opengraph URL: https://github.com/python/mypy/issues/12615
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tests failing on master (macOS Monterey / py 3.7)","articleBody":"**Bug Report**\r\n\r\nTests are failing for the master branch on my macOS laptop.\r\n\r\nA few tests in `PEP561Suite` are flaky for reasons I don't quite understand. \r\n\r\n**To Reproduce**\r\n\r\n```\r\ngit pull\r\ngit checkout f501cf649d7976077a7196e3548d773d67340a8c\r\npython3.7 -m venv .venv\r\n.venv/bin/pip install -r test-requirements.txt\r\n.venv/bin/pip install -e .\r\nPATH=$(pwd)/.venv/bin:$PATH .venv/bin/pytest -q -k 'PEP561Suite'\r\n```\r\n\r\n**Expected Behavior**\r\n\r\nTests pass.\r\n\r\n**Actual Behavior**\r\n\r\nThere's usually exactly one failure per run. On some rare occasions I've seen more than one failure, or no failures.\r\n\r\nHere are some sample failures:\r\n\r\n```\r\n_____________________________________________________________________________________________________________ testStubPrecedence _____________________________________________________________________________________________________________\r\n[gw3] darwin -- Python 3.7.13 /System/Volumes/Data/repos/mypy/.venv/bin/python3.7\r\ndata: /System/Volumes/Data/repos/mypy/test-data/unit/pep561.test:66:\r\n/System/Volumes/Data/repos/mypy/mypy/test/testpep561.py:30: in run_case\r\n test_pep561(test_case)\r\n/System/Volumes/Data/repos/mypy/mypy/test/testpep561.py:152: in test_pep561\r\n testcase.file, testcase.line, iter_count))\r\nE AssertionError: Invalid output (/System/Volumes/Data/repos/mypy/test-data/unit/pep561.test, line 66)\r\n------------------------------------------------------------------------------------------------------------ Captured stderr call ------------------------------------------------------------------------------------------------------------\r\nExpected:\r\n testStubPrecedence.py:5: note: Revealed type is \"builtins.list[builtins.str]\" (diff)\r\nActual:\r\n testStubPrecedence.py:3: error: Module \"typedpkg\" has no attribute \"dne\" (diff)\r\n testStubPrecedence.py:5: note: Revealed type is \"builtins.list[builtins.str]\" (diff)\r\n\r\nAlignment of first line difference:\r\n E: testStubPrecedence.py:5: note: Revealed type is \"builtins.list[builtins....\r\n A: testStubPrecedence.py:3: error: Module \"typedpkg\" has no attribute \"dne\"...\r\n ^\r\n```\r\n\r\n```\r\n______________________________________________________________________________________________ testNamespacePkgWStubsWithNamespacePackagesFlag _______________________________________________________________________________________________\r\n[gw2] darwin -- Python 3.7.13 /System/Volumes/Data/repos/mypy/.venv/bin/python3.7\r\ndata: /System/Volumes/Data/repos/mypy/test-data/unit/pep561.test:204:\r\n/System/Volumes/Data/repos/mypy/mypy/test/testpep561.py:30: in run_case\r\n test_pep561(test_case)\r\n/System/Volumes/Data/repos/mypy/mypy/test/testpep561.py:152: in test_pep561\r\n testcase.file, testcase.line, iter_count))\r\nE AssertionError: Invalid output (/System/Volumes/Data/repos/mypy/test-data/unit/pep561.test, line 204)\r\n------------------------------------------------------------------------------------------------------------ Captured stderr call ------------------------------------------------------------------------------------------------------------\r\nExpected:\r\n testNamespacePkgWStubsWithNamespacePackagesFlag.py:7: error: Argument 1 to \"bf\" has incompatible type \"int\"; expected \"bool\" (diff)\r\n testNamespacePkgWStubsWithNamespacePackagesFlag.py:8: error: Argument 1 to \"bf\" has incompatible type \"int\"; expected \"bool\" (diff)\r\nActual:\r\n testNamespacePkgWStubsWithNamespacePackagesFlag.py:3: error: Skipping analyzing \"typedpkg_ns.a.bbb\": module is installed, but missing library stubs or py.typed marker (diff)\r\n testNamespacePkgWStubsWithNamespacePackagesFlag.py:3: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports (diff)\r\n testNamespacePkgWStubsWithNamespacePackagesFlag.py:3: error: Skipping analyzing \"typedpkg_ns.a\": module is installed, but missing library stubs or py.typed marker (diff)\r\n testNamespacePkgWStubsWithNamespacePackagesFlag.py:8: error: Argument 1 to \"bf\" has incompatible type \"int\"; expected \"bool\" (diff)\r\n\r\nAlignment of first line difference:\r\n E: ...spacePackagesFlag.py:7: error: Argument 1 to \"bf\" has incompatible ty...\r\n A: ...spacePackagesFlag.py:3: error: Skipping analyzing \"typedpkg_ns.a.bbb\"...\r\n ^\r\n```\r\n\r\n```\r\n_______________________________________________________________________________________________________ testTypedPkgNamespaceRegImport _______________________________________________________________________________________________________\r\n[gw2] darwin -- Python 3.7.13 /System/Volumes/Data/repos/mypy/.venv/bin/python3.7\r\ndata: /System/Volumes/Data/repos/mypy/test-data/unit/pep561.test:150:\r\n/System/Volumes/Data/repos/mypy/mypy/test/testpep561.py:30: in run_case\r\n test_pep561(test_case)\r\n/System/Volumes/Data/repos/mypy/mypy/test/testpep561.py:152: in test_pep561\r\n testcase.file, testcase.line, iter_count))\r\nE AssertionError: Invalid output (/System/Volumes/Data/repos/mypy/test-data/unit/pep561.test, line 150)\r\n------------------------------------------------------------------------------------------------------------ Captured stderr call ------------------------------------------------------------------------------------------------------------\r\nExpected:\r\n testTypedPkgNamespaceRegImport.py:4: error: Cannot find implementation or library stub for module named \"typedpkg_ns.a.dne\" (diff)\r\n testTypedPkgNamespaceRegImport.py:4: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports (diff)\r\n testTypedPkgNamespaceRegImport.py:10: error: Argument 1 has incompatible type \"bool\"; expected \"str\" (diff)\r\n testTypedPkgNamespaceRegImport.py:11: error: Argument 1 has incompatible type \"int\"; expected \"bool\" (diff)\r\nActual:\r\n testTypedPkgNamespaceRegImport.py:3: error: Cannot find implementation or library stub for module named \"typedpkg_ns.a.bbb\" (diff)\r\n testTypedPkgNamespaceRegImport.py:3: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports (diff)\r\n testTypedPkgNamespaceRegImport.py:3: error: Cannot find implementation or library stub for module named \"typedpkg_ns\" (diff)\r\n testTypedPkgNamespaceRegImport.py:3: error: Cannot find implementation or library stub for module named \"typedpkg_ns.a\" (diff)\r\n testTypedPkgNamespaceRegImport.py:4: error: Cannot find implementation or library stub for module named \"typedpkg_ns.a.dne\" (diff)\r\n testTypedPkgNamespaceRegImport.py:10: error: Argument 1 has incompatible type \"bool\"; expected \"str\" (diff)\r\n\r\nAlignment of first line difference:\r\n E: ...kgNamespaceRegImport.py:4: error: Cannot find implementation or libra...\r\n A: ...kgNamespaceRegImport.py:3: error: Cannot find implementation or libra...\r\n ^\r\n```\r\n\r\n```\r\n_______________________________________________________________________________________________________ testTypedPkgNamespaceRegImport _______________________________________________________________________________________________________\r\n[gw0] darwin -- Python 3.7.13 /System/Volumes/Data/repos/mypy/.venv/bin/python3.7\r\ndata: /System/Volumes/Data/repos/mypy/test-data/unit/pep561.test:150:\r\n/System/Volumes/Data/repos/mypy/mypy/test/testpep561.py:30: in run_case\r\n test_pep561(test_case)\r\n/System/Volumes/Data/repos/mypy/mypy/test/testpep561.py:113: in test_pep561\r\n install_package(pkg, python_executable, use_pip, editable)\r\n/System/Volumes/Data/repos/mypy/mypy/test/testpep561.py:86: in install_package\r\n raise Exception(proc.stdout.decode('utf-8') + proc.stderr.decode('utf-8'))\r\nE Exception: Looking in indexes: https://registry.affirm-stage.com/artifactory/api/pypi/pypi/simple\r\nE Processing /System/Volumes/Data/repos/mypy/test-data/packages/typedpkg_ns_a\r\nE Preparing metadata (setup.py): started\r\nE Preparing metadata (setup.py): finished with status 'done'\r\nE Building wheels for collected packages: typedpkg-namespace.alpha\r\nE Building wheel for typedpkg-namespace.alpha (setup.py): started\r\nE Building wheel for typedpkg-namespace.alpha (setup.py): finished with status 'done'\r\nE Created wheel for typedpkg-namespace.alpha: filename=typedpkg_namespace.alpha-1.0.0-py3-none-any.whl size=1588 sha256=21e162c192f4c7f108ec1b970a54d677de03e021e7143da28589e81f308a7505\r\nE Stored in directory: /private/var/folders/kd/x5k73mjs4jn02v7k1c0spz_40000gn/T/pip-ephem-wheel-cache-niwbfkch/wheels/85/1b/b9/19a1923b949574d3f92d0b2fd98b06cfe4eb7aa0b819bbbcf7\r\nE ERROR: Exception:\r\nE Traceback (most recent call last):\r\nE File \"/var/folders/kd/x5k73mjs4jn02v7k1c0spz_40000gn/T/tmptvamo6c8/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py\", line 2681, in version\r\nE return self._version\r\nE File \"/var/folders/kd/x5k73mjs4jn02v7k1c0spz_40000gn/T/tmptvamo6c8/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py\", line 2815, in __getattr__\r\nE raise AttributeError(attr)\r\nE AttributeError: _version\r\nE\r\nE During handling of the above exception, another exception occurred:\r\nE\r\nE Traceback (most recent call last):\r\nE File \"/var/folders/kd/x5k73mjs4jn02v7k1c0spz_40000gn/T/tmptvamo6c8/lib/python3.7/site-packages/pip/_internal/cli/base_command.py\", line 167, in exc_logging_wrapper\r\nE status = run_func(*args)\r\nE File \"/var/folders/kd/x5k73mjs4jn02v7k1c0spz_40000gn/T/tmptvamo6c8/lib/python3.7/site-packages/pip/_internal/cli/req_command.py\", line 205, in wrapper\r\nE return func(self, options, args)\r\nE File \"/var/folders/kd/x5k73mjs4jn02v7k1c0spz_40000gn/T/tmptvamo6c8/lib/python3.7/site-packages/pip/_internal/commands/install.py\", line 366, in run\r\nE global_options=[],\r\nE File \"/var/folders/kd/x5k73mjs4jn02v7k1c0spz_40000gn/T/tmptvamo6c8/lib/python3.7/site-packages/pip/_internal/wheel_builder.py\", line 354, in build\r\nE req.editable and req.permit_editable_wheels,\r\nE File \"/var/folders/kd/x5k73mjs4jn02v7k1c0spz_40000gn/T/tmptvamo6c8/lib/python3.7/site-packages/pip/_internal/wheel_builder.py\", line 227, in _build_one\r\nE _verify_one(req, wheel_path)\r\nE File \"/var/folders/kd/x5k73mjs4jn02v7k1c0spz_40000gn/T/tmptvamo6c8/lib/python3.7/site-packages/pip/_internal/wheel_builder.py\", line 175, in _verify_one\r\nE dist_verstr = str(dist.version)\r\nE File \"/var/folders/kd/x5k73mjs4jn02v7k1c0spz_40000gn/T/tmptvamo6c8/lib/python3.7/site-packages/pip/_internal/metadata/pkg_resources.py\", line 147, in version\r\nE return parse_version(self._dist.version)\r\nE File \"/var/folders/kd/x5k73mjs4jn02v7k1c0spz_40000gn/T/tmptvamo6c8/lib/python3.7/site-packages/pip/_vendor/pkg_resources/__init__.py\", line 2689, in version\r\nE raise ValueError(msg, self)\r\nE ValueError: (\"Missing 'Version:' header and/or METADATA file at path: [could not detect]\", typedpkg-namespace-alpha [unknown version] (/private/var/folders/kd/x5k73mjs4jn02v7k1c0spz_40000gn/T/pip-ephem-wheel-cache-niwbfkch/wheels/85/1b/b9/19a1923b949574d3f92d0b2fd98b06cfe4eb7aa0b819bbbcf7/typedpkg_namespace.alpha-1.0.0-py3-none-any.whl))\r\n```\r\n\r\n**Your Environment**\r\n\r\nmypy commit `f501cf649d7976077a7196e3548d773d67340a8c`\r\nPython 3.7.13\r\nmacOS Monterey 12.3.1\r\nx86_64","author":{"url":"https://github.com/huguesb","@type":"Person","name":"huguesb"},"datePublished":"2022-04-18T06:07:14Z","url":"https://github.com/python/mypy/issues/12615"}
| 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:006bb33e-90db-479b-8986-50c847d0b415 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A296:2FF516:618BAA:835B31:6B00342A |
| html-safe-nonce | b42d4744ce3d826b876fc7f14407bd3c74e61e44c2216b73151ab18a78c52571 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjk2OjJGRjUxNjo2MThCQUE6ODM1QjMxOjZCMDAzNDJBIiwidmlzaXRvcl9pZCI6IjgwODc3MTY0NDg2MDE5MTIzNjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dc867c898b3f63d0cd65234e1e3aeb6448979f761ab7190f5aca398cd219beef |
| hovercard-subject-tag | issue:1206702886 |
| 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/12615/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5736f511ab6c445dfbf0f361910a984194046ae6544b311df434b1fe7e4b2901/python/mypy/issues/12615 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5736f511ab6c445dfbf0f361910a984194046ae6544b311df434b1fe7e4b2901/python/mypy/issues/12615 |
| og:image:alt | Bug Report Tests are failing for the master branch on my macOS laptop. A few tests in PEP561Suite are flaky for reasons I don't quite understand. To Reproduce git pull git checkout f501cf649d797607... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | huguesb |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width