Environment
- Pythonnet version: 2.5.1
- Python version: 3.8
- Operating System: Win 10 64
Details
In debug build (DebugWinPY3) this test:
|
class Sub(System.Exception): |
fails this assertion:
|
Debug.Assert(typeSize > 0 && typeSize <= ExceptionOffset.Size()); |
Python 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.
See also #1196 (comment) for previous discussion.
@koubaa @amos402
Environment
Details
In debug build (
DebugWinPY3) this test:pythonnet/src/tests/test_constructors.py
Line 41 in 61d1b7c
fails this assertion:
pythonnet/src/runtime/interop.cs
Line 92 in 61d1b7c
Python type object for
Subclass gets an unknown extra field of sizeIntPtr.Size, causing it to be larger than its base type object (reflected)System.Exception.See also #1196 (comment) for previous discussion.
@koubaa @amos402