Skip to content

Commit 23740ec

Browse files
committed
test_jarray.py: skip tests in native mode
1 parent 4017a0b commit 23740ec

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@
3838
# SOFTWARE.
3939

4040
import platform
41-
import sys
4241
import unittest
4342

43+
import sys
44+
4445
# The platform.system() == 'Java' is to make it possible to run with Jython
45-
if platform.system() == 'Java' or sys.implementation.name == "graalpython":
46+
if (platform.system() == 'Java' or sys.implementation.name == "graalpython") and \
47+
not __graalpython__.is_native:
4648
from java.util import Arrays
4749
from java.lang import StringBuilder
4850
import jarray

0 commit comments

Comments
 (0)