Skip to content

Commit 99e0182

Browse files
committed
Allow numpy package test to run without Chaquopy
1 parent 93dd5de commit 99e0182

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

server/pypi/packages/numpy/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
from contextlib import contextmanager, nullcontext
2-
from java import jarray, jboolean, jbyte, jchar, jshort, jint, jlong, jfloat, jdouble
32
import unittest
43

54
try:
65
from android.os import Build
76
except ImportError:
87
Build = None
8+
else:
9+
from java import jarray, jboolean, jbyte, jchar, jshort, jint, jlong, jfloat, jdouble
910

1011

1112
TEST_DATA = [2, 3, 5, 7]

0 commit comments

Comments
 (0)