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

Commitf225d58

Browse files
committed
Reference Python.Test explicitly
1 parent3cc3908 commitf225d58

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

‎src/python_tests_runner/Python.PythonTestsRunner.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
<ItemGroup>
88
<ProjectReferenceInclude="..\runtime\Python.Runtime.csproj" />
9+
<ProjectReferenceInclude="..\testing\Python.Test.csproj" />
910
</ItemGroup>
1011

1112
<ItemGroup>

‎src/python_tests_runner/PythonTestRunner.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
usingNUnit.Framework;
99

1010
usingPython.Runtime;
11+
usingPython.Test;
1112

1213
namespacePython.PythonTestsRunner
1314
{

‎tests/conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ def pytest_addoption(parser):
3131

3232
defpytest_configure(config):
3333
globalbin_path
34+
if"clr"insys.modules:
35+
# Already loaded (e.g. by the C# test runner), skip build
36+
importclr
37+
clr.AddReference("Python.Test")
38+
return
39+
3440
runtime_opt=config.getoption("runtime")
3541

3642
test_proj_path=os.path.join(cwd,"..","src","testing")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp