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

Commit94b461b

Browse files
committed
disable inspect.getfullargspec test on Python 2
1 parent565d154 commit94b461b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/embed_tests/Inspect.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
usingPython.Runtime;
66

77
namespacePython.EmbeddingTest{
8+
usingRuntime=Python.Runtime.Runtime;
9+
810
publicclassInspect{
911
[SetUp]
1012
publicvoidSetUp(){
@@ -18,6 +20,8 @@ public void Dispose() {
1820

1921
[Test]
2022
publicvoidBoundMethodsAreInspectable(){
23+
if(Runtime.IsPython2)
24+
Assert.Ignore("inspect.getfullargspec requires Python 3");
2125
varobj=newClass();
2226
using(varscope=Py.CreateScope()){
2327
scope.Import("inspect");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp