Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd67d3e0

Browse files
committed
fixed MacOS bad assembly test by using PythonDLL (which is never a .NET assembly)
1 parentb614dba commitd67d3e0

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

‎src/embed_tests/pyimport.cs

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -83,24 +83,9 @@ public void TestCastGlobalVar()
8383
[Test]
8484
publicvoidBadAssembly()
8585
{
86-
stringpath;
87-
if(RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
88-
{
89-
path=@"C:\Windows\System32\kernel32.dll";
90-
}
91-
elseif(RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
92-
{
93-
path="/usr/lib/libc.dylib";
94-
}
95-
elseif(RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
96-
{
97-
path="/usr/lib/locale/locale-archive";
98-
}
99-
else
100-
{
101-
Assert.Pass("TODO: add bad assembly location for other platforms");
102-
return;
103-
}
86+
stringpath=Runtime.Runtime.PythonDLL;
87+
88+
Assert.IsTrue(File.Exists(path),$"Test DLL{path} does not exist!");
10489

10590
stringcode=$@"
10691
import clr

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp