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

Commitf59e5d0

Browse files
committed
Added LoadNativeTypeOffsetClass
1 parentf82d963 commitf59e5d0

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

‎src/embed_tests/Python.EmbeddingTest.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
<NoneInclude="fixtures/**/*.py"CopyToOutputDirectory="PreserveNewest" />
1313
</ItemGroup>
1414

15+
<PropertyGroup>
16+
<DefineConstants>$(DefineConstants);$(ConfiguredConstants)</DefineConstants>
17+
</PropertyGroup>
18+
1519
<ItemGroup>
1620
<PackageReferenceInclude="NUnit"Version="3.*" />
1721
<PackageReferenceInclude="NUnit3TestAdapter"Version="3.*">
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
usingSystem;
2+
usingSystem.Collections.Generic;
3+
usingSystem.Linq;
4+
usingSystem.Reflection;
5+
usingSystem.Text;
6+
usingSystem.Threading.Tasks;
7+
8+
usingNUnit.Framework;
9+
10+
namespacePython.EmbeddingPythonTest
11+
{
12+
publicclassTestNativeTypeOffset
13+
{
14+
#ifWINDOWS
15+
// The code for NativeTypeOffset is not generated under Windows because sys.abiflags does not exist (see setup.py)
16+
#else
17+
/// <summary>
18+
/// Tests that installation has generated code for NativeTypeOffset and that it can be loaded.
19+
/// </summary>
20+
[Test]
21+
publicvoidLoadNativeTypeOffsetClass()
22+
{
23+
newPython.Runtime.NativeTypeOffset();
24+
}
25+
#endif
26+
}
27+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp