Skip to content

Commit 10406cd

Browse files
committed
disable inspect.getfullargspec test on Python 2
1 parent 9dd0c3f commit 10406cd

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
using Python.Runtime;
66

77
namespace Python.EmbeddingTest {
8+
using Runtime = Python.Runtime.Runtime;
9+
810
public class Inspect {
911
[SetUp]
1012
public void SetUp() {
@@ -18,6 +20,8 @@ public void Dispose() {
1820

1921
[Test]
2022
public void BoundMethodsAreInspectable() {
23+
if (Runtime.IsPython2)
24+
Assert.Ignore("inspect.getfullargspec requires Python 3");
2125
var obj = new Class();
2226
using (var scope = Py.CreateScope()) {
2327
scope.Import("inspect");

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy