Title: Multiple assertion failures for Python classes derived from System.Exception in debug builds · Issue #1218 · pythonnet/pythonnet · GitHub
Open Graph Title: Multiple assertion failures for Python classes derived from System.Exception in debug builds · Issue #1218 · pythonnet/pythonnet
X Title: Multiple assertion failures for Python classes derived from System.Exception in debug builds · Issue #1218 · pythonnet/pythonnet
Description: Environment Pythonnet version: 2.5.1 Python version: 3.8 Operating System: Win 10 64 Details In debug build (DebugWinPY3) this test: pythonnet/src/tests/test_constructors.py Line 41 in 61d1b7c class Sub(System.Exception): fails this asse...
Open Graph Description: Environment Pythonnet version: 2.5.1 Python version: 3.8 Operating System: Win 10 64 Details In debug build (DebugWinPY3) this test: pythonnet/src/tests/test_constructors.py Line 41 in 61d1b7c clas...
X Description: Environment Pythonnet version: 2.5.1 Python version: 3.8 Operating System: Win 10 64 Details In debug build (DebugWinPY3) this test: pythonnet/src/tests/test_constructors.py Line 41 in 61d1b7c clas...
Opengraph URL: https://github.com/pythonnet/pythonnet/issues/1218
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Multiple assertion failures for Python classes derived from System.Exception in debug builds","articleBody":"### Environment\r\n\r\n- Pythonnet version: 2.5.1\r\n- Python version: 3.8\r\n- Operating System: Win 10 64\r\n\r\n### Details\r\n\r\nIn debug build (`DebugWinPY3`) this test:\r\nhttps://github.com/pythonnet/pythonnet/blob/61d1b7c22eb7cd68f991d35fcafbdf4dd90b7b19/src/tests/test_constructors.py#L41\r\n\r\nfails this assertion:\r\nhttps://github.com/pythonnet/pythonnet/blob/61d1b7c22eb7cd68f991d35fcafbdf4dd90b7b19/src/runtime/interop.cs#L92\r\n\r\nPython type object for `Sub` class gets an unknown extra field of size `IntPtr.Size`, causing it to be larger than its base type object (reflected) `System.Exception`.\r\n\r\nSee also https://github.com/pythonnet/pythonnet/pull/1196#issuecomment-690750845 for previous discussion.\r\n\r\n@koubaa @amos402 ","author":{"url":"https://github.com/lostmsu","@type":"Person","name":"lostmsu"},"datePublished":"2020-09-11T03:24:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/1218/pythonnet/issues/1218"}
| 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:20d49712-093d-ab24-e457-f09cf456f9ab |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E0D6:31B82C:966436:C3E01E:69766917 |
| html-safe-nonce | e764852848750e31c181d3f48060f59cd389e580d7efe2a24d95464987a4cfbe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEQ2OjMxQjgyQzo5NjY0MzY6QzNFMDFFOjY5NzY2OTE3IiwidmlzaXRvcl9pZCI6IjQ1OTY4NTY1NTAzOTA2NTUyNTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3f5f3eb17ab24e224456d786c209bab7d6539657d2ba1cce020a0cce16596fee |
| hovercard-subject-tag | issue:698781111 |
| 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/pythonnet/pythonnet/1218/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c8d23d2124de0694207e9b8100fa1256b63964b0f3b4a6c3fcc48e228b6a9c25/pythonnet/pythonnet/issues/1218 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c8d23d2124de0694207e9b8100fa1256b63964b0f3b4a6c3fcc48e228b6a9c25/pythonnet/pythonnet/issues/1218 |
| og:image:alt | Environment Pythonnet version: 2.5.1 Python version: 3.8 Operating System: Win 10 64 Details In debug build (DebugWinPY3) this test: pythonnet/src/tests/test_constructors.py Line 41 in 61d1b7c clas... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lostmsu |
| hostname | github.com |
| expected-hostname | github.com |
| None | 032152924a283b83384255d9489e7b93b54ba01da8d380b05ecd3953b3212411 |
| turbo-cache-control | no-preview |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| 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 | 5b577f6be6482e336e3c30e8daefa30144947b17 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width