[ 0%] tests/test_decimal.py ..... [ 2%] tests/test_dictionary.py .. [ 2%] tests/test_encrypt.py ................................. [ 12%] tests/test_filters.py ....... [ 14%] tests/test_formxobject.py . [ 14%] tests/test_image_access.py ..............................sss. [ 24%] tests/test_io.py ...............F [ 29%] tests/test_ipython.py .... [ 30%] tests/test_metadata.py ................................................. [ 44%] ............. [ 48%] tests/test_object.py ................................................... [ 63%] .............. [ 67%] tests/test_outlines.py ................. [ 72%] tests/test_page.py .. [ 73%] tests/test_pages.py .............................. [ 82%] tests/test_parsers.py ......... [ 84%] tests/test_pdf.py .................................. [ 94%] tests/test_pdfa.py ss [ 95%] tests/test_private_pdfs.py s [ 95%] tests/test_refcount.py ..... [ 97%] tests/test_sanity.py .......... [100%] =================================== FAILURES =================================== ______________________________ test_save_bytesio _______________________________ resources = PosixPath('/builddir/build/BUILD/pikepdf-1.19.4/tests/resources') outpdf = PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_save_bytesio0/out.pdf') def test_save_bytesio(resources, outpdf): with Pdf.open(resources / 'fourpages.pdf') as input_: pdf = Pdf.new() for page in input_.pages: pdf.pages.append(page) bio = BytesIO() pdf.save(bio) bio_value = bio.getvalue() assert bio_value != b'' pdf.save(outpdf) > assert outpdf.read_bytes() == bio_value E AssertionError: assert b'%PDF-1.3\n%...1673\n%%EOF\n' == b'%PDF-1.3\n%...1673\n%%EOF\n' E At index 1981 diff: b'3' != b'1' E Use -v to get the full diff tests/test_io.py:224: AssertionError =========================== short test summary info ============================ SKIPPED [1] tests/test_image_access.py:418: jbig2dec not installed SKIPPED [1] tests/test_image_access.py:427: jbig2dec not installed SKIPPED [1] tests/test_image_access.py:436: jbig2dec not installed SKIPPED [1] tests/test_pdfa.py:33: verapdf not found SKIPPED [1] tests/test_pdfa.py:45: verapdf not found SKIPPED [1] tests/test_private_pdfs.py:25: private resources not available FAILED tests/test_io.py::test_save_bytesio - AssertionError: assert b'%PDF-1.... ============= 1 failed, 334 passed, 6 skipped in 279.59s (0:04:39) ============= RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.up539u (%check) Bad exit status from /var/tmp/rpm-tmp.up539u (%check) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, 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-pikepdf.spec