reason='JNIus on Android does not take JVM options' ) def test_jvm_options(self): options = ['-Dtest.var{}=value'.format(i) for i in range(40)] process = subprocess.Popen([sys.executable, '-c', textwrap.dedent( '''\ import jnius_config import json import sys jnius_config.set_options(*json.load(sys.stdin)) import jnius ManagementFactory = jnius.autoclass("java.lang.management.ManagementFactory") json.dump(list(ManagementFactory.getRuntimeMXBean().getInputArguments()), sys.stdout)''')], bufsize=-1, stdin=subprocess.PIPE, stdout=subprocess.PIPE) stdoutdata, _ = process.communicate(json.dumps(options).encode()) assert process.wait() == 0 > actual_options = json.loads(stdoutdata.decode()) test_jvm_options.py:30: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.12/json/__init__.py:346: in loads return _default_decoder.decode(s) /usr/lib64/python3.12/json/decoder.py:337: in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = s = 'WARNING: Not able to assign machine() = riscv64 to a cpu value!\n Using cpu = \'riscv64\' instead!\n["-Dtest....=value", "-Dtest.var35=value", "-Dtest.var36=value", "-Dtest.var37=value", "-Dtest.var38=value", "-Dtest.var39=value"]' idx = 0 def raw_decode(self, s, idx=0): """Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. """ try: obj, end = self.scan_once(s, idx) except StopIteration as err: > raise JSONDecodeError("Expecting value", s, err.value) from None E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) /usr/lib64/python3.12/json/decoder.py:355: JSONDecodeError ____________________ ReflectTest.test_hierharchy_arraylist _____________________ self = def test_hierharchy_arraylist(self): d = identify_hierarchy_dict(find_javaclass("java.util.ArrayList"), 0, True) self.assertContains(d, "java.util.ArrayList")# concrete self.assertContains(d, "java.util.AbstractCollection")# superclass self.assertContains(d, "java.util.Collection")# interface self.assertContains(d, "java.lang.Iterable")# interface self.assertContains(d, "java.lang.Object")# root maxLevel = max(d.values()) > self.assertEqual(d["java.lang.Object"], maxLevel) E AssertionError: 3 != 4 test_reflect.py:38: AssertionError =========================== short test summary info ============================ FAILED test_jvm_options.py::TestJVMOptions::test_jvm_options - json.decoder.J... FAILED test_reflect.py::ReflectTest::test_hierharchy_arraylist - AssertionErr... ======================== 2 failed, 163 passed in 13.52s ======================== error: Bad exit status from /var/tmp/rpm-tmp.z2iMeM (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.z2iMeM (%check) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/python-jnius.spec