Skip to content

Commit a8ecab0

Browse files
authored
Prevent Mono crash during CI (#730)
* Re-add ipy32 console * Prevent Mono crash during CI
1 parent f0d3ace commit a8ecab0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Src/IronPython/Runtime/Types/PythonType.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2371,6 +2371,14 @@ private void AddSystemInterfaces(List<PythonType> mro) {
23712371
}
23722372

23732373
foreach (Type iface in interfaces) {
2374+
#if NET45
2375+
// causes failures on Mono: https://github.com/mono/mono/issues/14712
2376+
if (iface == typeof(System.Runtime.InteropServices._Type) || iface == typeof(System.Runtime.InteropServices._MethodInfo)) {
2377+
nonCollidingInterfaces.Remove(iface);
2378+
continue;
2379+
}
2380+
#endif
2381+
23742382
InterfaceMapping mapping = _underlyingSystemType.GetInterfaceMap(iface);
23752383

23762384
// grab all the interface methods which would hide other members

0 commit comments

Comments
 (0)