Skip to content

Assemblies loading multiple times with .NET Core #886

@slozier

Description

@slozier

For example, IronPythonTest is loaded twice with the following:

import os
import sys

import clr
clr.AddReferenceToFileAndPath(os.path.join(sys.prefix, 'IronPythonTest.dll'))

from IronPythonTest import ExceptionsTest

clr.AddReference('IronPythonTest')

from IronPythonTest import ComparisonTest

class MyTest(ExceptionsTest):
    def VirtualFunc(self):
        raise ex("hello world")

class ComparisonTest2(ComparisonTest): pass

str(ComparisonTest2(3.5))

This is a combination (from test_exceptions, test_imp, test_number) which caused test failures when trying to enable test_imp.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions