Skip to content

Commit 7505ecc

Browse files
committed
test_interop.py: skip unsupported tests in native mode
1 parent 9c1a9e0 commit 7505ecc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_interop.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@ def test_isinstance02():
522522
assert isinstance(h, HashMap)
523523
assert isinstance(h, Map)
524524

525+
@skipIf(is_native, "not supported in native mode")
525526
def test_is_type():
526527
import java
527528
from java.util.logging import Handler
@@ -538,7 +539,8 @@ def test_is_type():
538539
assert not java.is_type(lr)
539540
assert not java.is_type(Level.ALL)
540541
assert not java.is_type("ahoj")
541-
542+
543+
@skipIf(is_native, "not supported in native mode")
542544
def test_extend_java_class_01():
543545
from java.util.logging import Handler
544546
from java.util.logging import LogRecord
@@ -585,7 +587,8 @@ def sayHello(self):
585587
assert h2.isLoggable(lr)
586588
assert h2.this.counter == 1
587589
assert h.this.counter == 3
588-
590+
591+
@skipIf(is_native, "not supported in native mode")
589592
def test_extend_java_class_02():
590593
from java.math import BigDecimal
591594
try:
@@ -595,7 +598,8 @@ class MyDecimal(BigDecimal):
595598
assert True
596599
else:
597600
assert False
598-
601+
602+
@skipIf(is_native, "not supported in native mode")
599603
def test_extend_java_class_03():
600604
#test of java constructor
601605
from java.util.logging import LogRecord

0 commit comments

Comments
 (0)