Skip to content

Commit 05235b9

Browse files
br-skfilmor
authored andcommitted
Add unit test for using a separate domain
1 parent 70e2c72 commit 05235b9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_common.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,18 @@ def test_netfx_chinese_path(example_netstandard: Path, tmpdir_factory):
137137
run_tests(asm)
138138

139139

140+
@pytest.mark.skipif(
141+
sys.platform != "win32", reason=".NET Framework only exists on Windows"
142+
)
143+
def test_netfx_separate_domain(example_netstandard):
144+
from clr_loader import get_netfx
145+
146+
netfx = get_netfx(domain="some_domain")
147+
asm = netfx.get_assembly(os.path.join(example_netstandard, "example.dll"))
148+
149+
run_tests(asm)
150+
151+
140152
def run_tests(asm):
141153
func = asm.get_function("Example.TestClass", "Test")
142154
test_data = b"testy mctestface"

0 commit comments

Comments
 (0)