Title: matplotlib tests fail, expecting their decorator to be outermost · Issue #331 · getappmap/appmap-python · GitHub
Open Graph Title: matplotlib tests fail, expecting their decorator to be outermost · Issue #331 · getappmap/appmap-python
X Title: matplotlib tests fail, expecting their decorator to be outermost · Issue #331 · getappmap/appmap-python
Description: In the 3.5 version of this project: https://github.com/matplotlib/matplotlib Revision de98877e3dc45de8dd441d008f23d88738dc015d Create venv pip install -r requirements/dev/dev-requirements.txt pip install -r requirements/testing/all.txt p...
Open Graph Description: In the 3.5 version of this project: https://github.com/matplotlib/matplotlib Revision de98877e3dc45de8dd441d008f23d88738dc015d Create venv pip install -r requirements/dev/dev-requirements.txt pip i...
X Description: In the 3.5 version of this project: https://github.com/matplotlib/matplotlib Revision de98877e3dc45de8dd441d008f23d88738dc015d Create venv pip install -r requirements/dev/dev-requirements.txt pip i...
Opengraph URL: https://github.com/getappmap/appmap-python/issues/331
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"matplotlib tests fail, expecting their decorator to be outermost","articleBody":"In the 3.5 version of this project: https://github.com/matplotlib/matplotlib\r\n\r\nRevision `de98877e3dc45de8dd441d008f23d88738dc015d`\r\n\r\nCreate venv\r\npip install -r requirements/dev/dev-requirements.txt\r\npip install -r requirements/testing/all.txt \r\npip install pytest-xdist pytest appmap\r\npytest -vv\r\n\r\n(most tests will pass)\r\n\r\nrun `appmap-python pytest -vv` - all tests will fail. \r\n\r\nThey all fail with the same error. Here is a single test example.\r\n\r\n```\r\nappmap-python pytest -n8 -vv lib/matplotlib/tests/test_type1font.py::test_Type1Font INT ✘ 3.9.19 matplotlib 17:12:42 \r\n=========================================================================================== test session starts ===========================================================================================\r\nplatform darwin -- Python 3.9.19, pytest-8.2.1, pluggy-1.5.0 -- /Users/petecheslock/repos/matplotlib/venv/bin/python\r\ncachedir: .pytest_cache\r\nrootdir: /Users/petecheslock/repos/matplotlib\r\nconfigfile: pytest.ini\r\nplugins: cov-5.0.0, xvfb-3.0.0, rerunfailures-14.0, appmap-2.0.4, timeout-2.3.1, xdist-3.6.1\r\n8 workers [1 item] \r\nscheduling tests via LoadScheduling\r\n\r\nlib/matplotlib/tests/test_type1font.py::test_Type1Font \r\n[gw0] [100%] ERROR lib/matplotlib/tests/test_type1font.py::test_Type1Font \r\n\r\n================================================================================================= ERRORS ==================================================================================================\r\n____________________________________________________________________________________ ERROR at setup of test_Type1Font _____________________________________________________________________________________\r\n[gw0] darwin -- Python 3.9.19 /Users/petecheslock/repos/matplotlib/venv/bin/python\r\n\r\nrequest = \u003cSubRequest 'mpl_test_settings' for \u003cFunction test_Type1Font>>\r\n\r\n @pytest.fixture(autouse=True)\r\n def mpl_test_settings(request):\r\n> from matplotlib.testing.decorators import _cleanup_cm\r\n\r\nlib/matplotlib/testing/conftest.py:40: \r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\nvenv/lib/python3.9/site-packages/_appmap/wrapt/wrappers.py:613: in __call__\r\n return self._self_wrapper(self.__wrapped__, instance,\r\nvenv/lib/python3.9/site-packages/_appmap/importer.py:235: in wrapped_exec_module\r\n exec_module(*args, **kwargs)\r\nlib/matplotlib/testing/decorators.py:17: in \u003cmodule>\r\n from matplotlib import (_api, _pylab_helpers, cbook, ft2font, pyplot as plt,\r\nvenv/lib/python3.9/site-packages/_appmap/wrapt/wrappers.py:613: in __call__\r\n return self._self_wrapper(self.__wrapped__, instance,\r\nvenv/lib/python3.9/site-packages/_appmap/importer.py:235: in wrapped_exec_module\r\n exec_module(*args, **kwargs)\r\nlib/matplotlib/pyplot.py:2603: in \u003cmodule>\r\n def imshow(\r\nlib/matplotlib/pyplot.py:105: in _copy_docstring_and_deprecators\r\n func = decorator(func)\r\nvenv/lib/python3.9/site-packages/_appmap/wrapt/wrappers.py:622: in __call__\r\n return self._self_wrapper(self.__wrapped__, self._self_instance,\r\nvenv/lib/python3.9/site-packages/_appmap/instrument.py:131: in instrumented_fn\r\n return call_instrumented(f, instance, args, kwargs)\r\nvenv/lib/python3.9/site-packages/_appmap/instrument.py:82: in call_instrumented\r\n return f.fn(*args, **kwargs)\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n\r\nsince = '3.5', name = 'aspect', func = \u003cfunction imshow at 0x1537dcca0>\r\n\r\n def make_keyword_only(since, name, func=None):\r\n \"\"\"\r\n Decorator indicating that passing parameter *name* (or any of the following\r\n ones) positionally to *func* is being deprecated.\r\n \r\n When used on a method that has a pyplot wrapper, this should be the\r\n outermost decorator, so that :file:`boilerplate.py` can access the original\r\n signature.\r\n \"\"\"\r\n \r\n decorator = functools.partial(make_keyword_only, since, name)\r\n \r\n if func is None:\r\n return decorator\r\n \r\n signature = inspect.signature(func)\r\n POK = inspect.Parameter.POSITIONAL_OR_KEYWORD\r\n KWO = inspect.Parameter.KEYWORD_ONLY\r\n> assert (name in signature.parameters\r\n and signature.parameters[name].kind == POK), (\r\n f\"Matplotlib internal error: {name!r} must be a positional-or-keyword \"\r\n f\"parameter for {func.__name__}()\")\r\nE AssertionError: Matplotlib internal error: 'aspect' must be a positional-or-keyword parameter for imshow()\r\n\r\nlib/matplotlib/_api/deprecation.py:434: AssertionError\r\n========================================================================================= short test summary info =========================================================================================\r\nERROR lib/matplotlib/tests/test_type1font.py::test_Type1Font - AssertionError: Matplotlib internal error: 'aspect' must be a positional-or-keyword parameter for imshow()\r\n```","author":{"url":"https://github.com/petecheslock","@type":"Person","name":"petecheslock"},"datePublished":"2024-05-29T21:13:15Z","url":"https://github.com/getappmap/appmap-python/issues/331"}
| 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:21cd1f20-2451-2d64-dbf0-6e1ed5df0421 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C9E0:213839:6D61E57:8B0C7A8:6B030B73 |
| html-safe-nonce | 768bc6b02a1d70212dd0f2876c8af0910a81ed505319158296d1f5f013ec29d9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUUwOjIxMzgzOTo2RDYxRTU3OjhCMEM3QTg6NkIwMzBCNzMiLCJ2aXNpdG9yX2lkIjoiNzgyNjI5MDAxNTgwNDA5NDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 23314fe06d8668fb94952e81f737d15dbfd06a39324e2ad0a4b72144dc9cffa3 |
| hovercard-subject-tag | issue:2324257814 |
| 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/getappmap/appmap-python/331/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ec2e8fc692a59e272d6dede1203822cf4d217ea17a1525e31c4a4772ad124b75/getappmap/appmap-python/issues/331 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ec2e8fc692a59e272d6dede1203822cf4d217ea17a1525e31c4a4772ad124b75/getappmap/appmap-python/issues/331 |
| og:image:alt | In the 3.5 version of this project: https://github.com/matplotlib/matplotlib Revision de98877e3dc45de8dd441d008f23d88738dc015d Create venv pip install -r requirements/dev/dev-requirements.txt pip i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | petecheslock |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/getappmap/appmap-python git https://github.com/getappmap/appmap-python.git |
| octolytics-dimension-user_id | 46610017 |
| octolytics-dimension-user_login | getappmap |
| octolytics-dimension-repository_id | 314785884 |
| octolytics-dimension-repository_nwo | getappmap/appmap-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 314785884 |
| octolytics-dimension-repository_network_root_nwo | getappmap/appmap-python |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width