8000 Disable app domain test case on .NET Standard · pythonnet/pythonnet@9ab7b13 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9ab7b13

Browse files
author
Benoit Hudson
committed
Disable app domain test case on .NET Standard
This test doesn't compile on appveyor and travis, because we use APIs from .NET Framework 4.0 rather than .NET Standard. Even if it were fixed to compile, it would throw exceptions because .NET Core doesn't have application domains.
1 parent e585bdc commit 9ab7b13

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/embed_tests/TestDomainReload.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
using NUnit.Framework;
55
using Python.Runtime;
66

7+
//
8+
// This test case is disabled on .NET Standard because it doesn't have all the
9+
// APIs we use; .NET Core doesn't implement application domains, which is what
10+
// we're testing so there's no point trying.
11+
//
12+
// Unfortunately this means no continuous integration testing for this case.
13+
//
14+
#if !NETSTANDARD
715
namespace Python.EmbeddingTest
816
{
917
class TestDomainReload
@@ -228,3 +236,4 @@ static Assembly ResolveAssembly(object sender, ResolveEventArgs args)
228236
}
229237
}
230238
}
239+
#endif

0 commit comments

Comments
 (0)
0