Warning: Permanently added '98.85.228.249' (ED25519) to the list of known hosts. You can reproduce this build on your computer by running: sudo dnf install copr-rpmbuild /usr/bin/copr-rpmbuild --verbose --drop-resultdir --task-url https://copr.fedorainfracloud.org/backend/get-build-task/11407836-fedora-45-x86_64 --chroot fedora-45-x86_64 Version: 1.12 PID: 11628 Logging PID: 11630 Task: {'allow_user_ssh': False, 'appstream': False, 'background': False, 'build_id': 11407836, 'buildroot_pkgs': [], 'chroot': 'fedora-45-x86_64', 'enable_net': False, 'fedora_review': False, 'git_hash': '7d8cef01b8b8213d7512df81efe21eb919badb91', 'git_repo': 'https://copr-dist-git.fedorainfracloud.org/git/nivaca/py-pdftools/py-pdftools', 'isolation': 'default', 'memory_reqs': 2048, 'package_name': 'py-pdftools', 'package_version': '1.32.0-1', 'project_dirname': 'py-pdftools', 'project_name': 'py-pdftools', 'project_owner': 'nivaca', 'repo_priority': None, 'repos': [{'baseurl': 'https://download.copr.fedorainfracloud.org/results/nivaca/py-pdftools/fedora-45-x86_64/', 'id': 'copr_base', 'name': 'Copr repository', 'priority': None, 'repo_gpgcheck': False}], 'sandbox': 'nivaca/py-pdftools--nivaca', 'source_json': {}, 'source_type': None, 'ssh_public_keys': None, 'storage': 1, 'submitter': 'nivaca', 'tags': [], 'task_id': '11407836-fedora-45-x86_64', 'timeout': 18000, 'uses_devel_repo': False, 'with_opts': [], 'without_opts': []} Running: git clone https://copr-dist-git.fedorainfracloud.org/git/nivaca/py-pdftools/py-pdftools /var/lib/copr-rpmbuild/workspace/workdir-i0m1kdtx/py-pdftools --depth 500 --no-single-branch --recursive cmd: ['git', 'clone', 'https://copr-dist-git.fedorainfracloud.org/git/nivaca/py-pdftools/py-pdftools', '/var/lib/copr-rpmbuild/workspace/workdir-i0m1kdtx/py-pdftools', '--depth', '500', '--no-single-branch', '--recursive'] cwd: . rc: 0 stdout: stderr: Cloning into '/var/lib/copr-rpmbuild/workspace/workdir-i0m1kdtx/py-pdftools'... Running: git checkout 7d8cef01b8b8213d7512df81efe21eb919badb91 -- cmd: ['git', 'checkout', '7d8cef01b8b8213d7512df81efe21eb919badb91', '--'] cwd: /var/lib/copr-rpmbuild/workspace/workdir-i0m1kdtx/py-pdftools rc: 0 stdout: stderr: Note: switching to '7d8cef01b8b8213d7512df81efe21eb919badb91'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at 7d8cef0 automatic import of py-pdftools Running: dist-git-client sources cmd: ['dist-git-client', 'sources'] cwd: /var/lib/copr-rpmbuild/workspace/workdir-i0m1kdtx/py-pdftools rc: 0 stdout: stderr: INFO: Reading stdout from command: git rev-parse --abbrev-ref HEAD INFO: Reading stdout from command: git rev-parse HEAD INFO: Reading sources specification file: sources INFO: Downloading py-pdftools-1.32.0.tar.gz INFO: Reading stdout from command: curl --help all INFO: Calling: curl -H Pragma: -H 'Accept-Encoding: identity' -o py-pdftools-1.32.0.tar.gz --location --connect-timeout 60 --retry 3 --retry-delay 10 --remote-time --show-error --fail --retry-all-errors https://copr-dist-git.fedorainfracloud.org/repo/pkgs/nivaca/py-pdftools/py-pdftools/py-pdftools-1.32.0.tar.gz/md5/7b159ccc56c129261463b3014703a5f2/py-pdftools-1.32.0.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 30.58M 100 30.58M 0 0 488.4M 0 0 INFO: Reading stdout from command: md5sum py-pdftools-1.32.0.tar.gz tail: /var/lib/copr-rpmbuild/main.log: file truncated Running (timeout=18000): unbuffer mock --spec /var/lib/copr-rpmbuild/workspace/workdir-i0m1kdtx/py-pdftools/py-pdftools.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-i0m1kdtx/py-pdftools --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1795997168.257285 -r /var/lib/copr-rpmbuild/results/configs/child.cfg INFO: mock.py version 6.9 starting (python version = 3.14.5, NVR = mock-6.9-1.fc44), args: /usr/libexec/mock/mock --spec /var/lib/copr-rpmbuild/workspace/workdir-i0m1kdtx/py-pdftools/py-pdftools.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-i0m1kdtx/py-pdftools --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1795997168.257285 -r /var/lib/copr-rpmbuild/results/configs/child.cfg Start(bootstrap): init plugins INFO: tmpfs initialized INFO: selinux enabled INFO: chroot_scan: initialized INFO: compress_logs: initialized Finish(bootstrap): init plugins Start: init plugins INFO: tmpfs initialized INFO: selinux enabled INFO: chroot_scan: initialized INFO: compress_logs: initialized Finish: init plugins INFO: Signal handler active Start: run INFO: Start(/var/lib/copr-rpmbuild/workspace/workdir-i0m1kdtx/py-pdftools/py-pdftools.spec) Config(fedora-45-x86_64) Start: clean chroot Finish: clean chroot Mock Version: 6.9 INFO: Mock Version: 6.9 Start(bootstrap): chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-45-x86_64-bootstrap-1795997168.257285/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start(bootstrap): cleaning package manager metadata Finish(bootstrap): cleaning package manager metadata INFO: Guessed host environment type: unknown INFO: Using container image: registry.fedoraproject.org/fedora:45 INFO: Pulling image: registry.fedoraproject.org/fedora:45 INFO: Tagging container image as mock-bootstrap-0f629c88-58cd-4985-a31b-1353afc9a714 INFO: Checking that 28b1dcadcaee4137ec03be4baa1106b07ceff33465f68a9212431f0e73914dba image matches host's architecture INFO: Copy content of container 28b1dcadcaee4137ec03be4baa1106b07ceff33465f68a9212431f0e73914dba to /var/lib/mock/fedora-45-x86_64-bootstrap-1795997168.257285/root INFO: mounting 28b1dcadcaee4137ec03be4baa1106b07ceff33465f68a9212431f0e73914dba with podman image mount INFO: image 28b1dcadcaee4137ec03be4baa1106b07ceff33465f68a9212431f0e73914dba as /var/lib/containers/storage/overlay/764bf47e67963696606a8df68eb6300ee338ebb1975321c7a541159cf9ab9c23/merged INFO: umounting image 28b1dcadcaee4137ec03be4baa1106b07ceff33465f68a9212431f0e73914dba (/var/lib/containers/storage/overlay/764bf47e67963696606a8df68eb6300ee338ebb1975321c7a541159cf9ab9c23/merged) with podman image umount INFO: Removing image mock-bootstrap-0f629c88-58cd-4985-a31b-1353afc9a714 INFO: Package manager dnf5 detected and used (fallback) INFO: Not updating bootstrap chroot, bootstrap_image_ready=True Start(bootstrap): creating root cache Finish(bootstrap): creating root cache Finish(bootstrap): chroot init Start: chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-45-x86_64-1795997168.257285/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin INFO: Package manager dnf5 detected and used (direct choice) INFO: Buildroot is handled by package management downloaded with a bootstrap image: rpm-6.1.0-1.fc45.x86_64 rpm-sequoia-1.10.3-1.fc45.x86_64 dnf5-5.4.8.0-2.fc45.x86_64 dnf5-plugins-5.4.8.0-2.fc45.x86_64 Start: installing minimal buildroot with dnf5 Updating and loading repositories: updates 100% | 4.5 MiB/s | 6.3 MiB | 00m01s Copr repository 100% | 10.5 KiB/s | 16.6 KiB | 00m02s fedora 100% | 19.4 MiB/s | 36.6 MiB | 00m02s Repositories loaded. Package Arch Version Repository Size Installing group/module packages: bash x86_64 0:5.3.15-2.fc45 fedora 8.5 MiB bzip2 x86_64 0:1.0.8-24.fc45 fedora 95.0 KiB coreutils x86_64 0:9.11-6.fc45 fedora 5.9 MiB cpio x86_64 0:2.15-10.fc45 fedora 1.1 MiB diffutils x86_64 0:3.12-6.fc45 fedora 1.6 MiB fedora-release-common noarch 0:45-14 updates 4.2 KiB findutils x86_64 1:4.11.0-2.fc45 fedora 1.9 MiB gawk x86_64 0:5.4.1-1.fc45 fedora 2.2 MiB glibc-minimal-langpack x86_64 0:2.44-2.fc45 updates 0.0 B grep x86_64 0:3.12-4.fc45 fedora 1.0 MiB gzip x86_64 0:1.14-4.fc45 fedora 401.6 KiB info x86_64 0:7.3-3.fc45 fedora 372.4 KiB patch x86_64 0:2.8-6.fc45 fedora 226.6 KiB redhat-rpm-config noarch 0:345-5.fc45 updates 184.2 KiB rpm-build x86_64 0:6.1.0-1.fc45 fedora 312.2 KiB sed x86_64 0:4.10-2.fc45 fedora 866.5 KiB shadow-utils x86_64 2:4.20.0-2.fc45 fedora 3.9 MiB tar x86_64 2:1.35-10.fc45 fedora 3.0 MiB unzip x86_64 0:6.0-71.fc45 fedora 441.8 KiB util-linux x86_64 0:2.42.4-1.fc45 fedora 3.7 MiB which x86_64 0:2.25-2.fc45 fedora 83.6 KiB xz x86_64 1:5.8.3-2.fc45 fedora 1.4 MiB Installing dependencies: R-srpm-macros noarch 0:1.3.7-3.fc45 fedora 3.5 KiB add-determinism x86_64 0:0.7.3-3.fc45 fedora 2.2 MiB alternatives x86_64 0:1.33-6.fc45 fedora 62.1 KiB ansible-srpm-macros noarch 0:1-22.fc45 fedora 35.7 KiB audit-libs x86_64 0:4.2.1-2.fc45 fedora 390.5 KiB binutils x86_64 0:2.47-1.fc45 fedora 28.4 MiB build-reproducibility-srpm-macros noarch 0:0.7.3-3.fc45 fedora 1.2 KiB bzip2-libs x86_64 0:1.0.8-24.fc45 fedora 80.5 KiB ca-certificates noarch 0:2026.2.92_v9.0.319-2.fc45 fedora 2.7 MiB cmake-srpm-macros noarch 0:4.3.0-7.fc45 updates 524.0 B coreutils-common x86_64 0:9.11-6.fc45 fedora 10.9 MiB crypto-policies noarch 0:20260713-2.gitc42da77.fc45 fedora 134.3 KiB curl x86_64 0:8.21.0-9.fc45 updates 487.9 KiB cyrus-sasl-lib x86_64 0:2.1.28-37.fc45 fedora 2.3 MiB debugedit x86_64 0:5.4-1.fc45 updates 228.8 KiB dwz x86_64 0:0.17-3.fc45 fedora 291.1 KiB ed x86_64 0:1.22.6-1.fc45 fedora 150.9 KiB efi-srpm-macros noarch 0:6-9.fc45 fedora 40.3 KiB elfutils x86_64 0:0.197-1.fc45 updates 3.1 MiB elfutils-debuginfod-client x86_64 0:0.197-1.fc45 updates 79.9 KiB elfutils-libelf x86_64 0:0.197-1.fc45 updates 1.6 MiB elfutils-libs x86_64 0:0.197-1.fc45 updates 719.5 KiB erlang-srpm-macros noarch 0:0.4.2-1.fc45 updates 2.0 KiB fedora-gpg-keys noarch 0:45-1 fedora 130.3 KiB fedora-release noarch 0:45-14 updates 0.0 B fedora-release-identity-basic noarch 0:45-14 updates 629.0 B fedora-repos noarch 0:45-1 fedora 4.9 KiB file x86_64 0:5.48-3.fc45 fedora 101.9 KiB file-libs x86_64 0:5.48-3.fc45 fedora 12.3 MiB filesystem x86_64 0:3.18-59.fc45 fedora 112.0 B filesystem-srpm-macros noarch 0:3.18-59.fc45 fedora 38.2 KiB fips-provider x86_64 0:1.5.3-2.fc45 updates 4.8 MiB fonts-srpm-macros noarch 1:5.0.0-4.fc45 fedora 55.8 KiB forge-srpm-macros noarch 0:0.4.0-5.fc45 fedora 38.9 KiB fpc-srpm-macros noarch 0:1.3-17.fc45 fedora 144.0 B gap-srpm-macros noarch 0:2-3.fc45 fedora 2.1 KiB gdb-minimal x86_64 0:18.1-1.fc45 updates 14.4 MiB gdbm-libs x86_64 1:1.23-12.fc45 fedora 133.7 KiB ghc-srpm-macros noarch 0:1.10-2.fc45 fedora 792.0 B glibc x86_64 0:2.44-2.fc45 updates 7.1 MiB glibc-common x86_64 0:2.44-2.fc45 updates 1.0 MiB glibc-gconv-extra x86_64 0:2.44-2.fc45 updates 7.7 MiB gmp x86_64 1:6.3.0-6.fc45 fedora 815.2 KiB gnat-srpm-macros noarch 0:7-3.fc45 fedora 1.0 KiB gnome-srpm-macros noarch 0:1.0-2.fc45 fedora 3.5 KiB gnulib-l10n noarch 0:20241231-4.fc45 fedora 655.0 KiB gnupg2 x86_64 0:2.4.9-18.fc45 fedora 6.5 MiB gnupg2-dirmngr x86_64 0:2.4.9-18.fc45 fedora 630.1 KiB gnupg2-gpg-agent x86_64 0:2.4.9-18.fc45 fedora 678.8 KiB gnupg2-gpgconf x86_64 0:2.4.9-18.fc45 fedora 253.8 KiB gnupg2-keyboxd x86_64 0:2.4.9-18.fc45 fedora 201.3 KiB gnupg2-verify x86_64 0:2.4.9-18.fc45 fedora 356.3 KiB gnutls x86_64 0:3.8.13-3.fc45 fedora 3.8 MiB go-srpm-macros noarch 0:3.8.0-3.fc45 fedora 61.9 KiB gpgverify noarch 0:2.2-5.fc45 fedora 8.7 KiB ima-evm-utils-libs x86_64 0:1.7-1.fc45 updates 96.1 KiB jansson x86_64 0:2.14-5.fc45 fedora 89.0 KiB java-srpm-macros noarch 0:1-9.fc45 fedora 870.0 B json-c x86_64 0:0.18-9.fc45 fedora 82.7 KiB kernel-srpm-macros noarch 0:1.0-30.fc45 fedora 1.9 KiB keyutils-libs x86_64 0:1.6.3-8.fc45 fedora 54.2 KiB krb5-libs x86_64 0:1.22.3-1.fc45 updates 2.4 MiB libacl x86_64 0:2.4.0-2.fc45 fedora 43.9 KiB libarchive x86_64 0:3.8.9-2.fc45 fedora 1.0 MiB libassuan x86_64 0:2.5.7-6.fc45 fedora 163.9 KiB libattr x86_64 0:2.6.0-2.fc45 fedora 24.3 KiB libblkid x86_64 0:2.42.4-1.fc45 fedora 282.3 KiB libbrotli x86_64 0:1.2.1-1.fc45 fedora 865.0 KiB libcap x86_64 0:2.78-2.fc45 fedora 208.2 KiB libcap-ng x86_64 0:0.9.6-1.fc45 fedora 68.8 KiB libcbor x86_64 0:0.14.0-3.fc45 fedora 83.5 KiB libcom_err x86_64 0:1.47.4-2.fc45 fedora 63.0 KiB libcurl x86_64 0:8.21.0-9.fc45 updates 1.1 MiB libeconf x86_64 0:0.7.9-4.fc45 fedora 64.8 KiB libevent x86_64 0:2.1.13-1.fc45 fedora 980.7 KiB libfdisk x86_64 0:2.42.4-1.fc45 fedora 392.3 KiB libffi x86_64 0:3.5.2-3.fc45 fedora 83.7 KiB libfido2 x86_64 0:1.17.0-6.fc45 updates 256.5 KiB libfsverity x86_64 0:1.7-4.fc45 fedora 24.4 KiB libgcc x86_64 0:16.2.1-3.fc45 updates 270.7 KiB libgcrypt x86_64 0:1.12.2-2.fc45 fedora 1.7 MiB libgomp x86_64 0:16.2.1-3.fc45 updates 577.5 KiB libgpg-error x86_64 0:1.61-2.fc45 fedora 953.9 KiB libidn2 x86_64 0:2.3.8-4.fc45 fedora 556.4 KiB libksba x86_64 0:1.8.0-3.fc45 fedora 431.1 KiB liblastlog2 x86_64 0:2.42.4-1.fc45 fedora 37.6 KiB libmount x86_64 0:2.42.4-1.fc45 fedora 408.9 KiB libnghttp2 x86_64 0:1.69.0-6.fc45 fedora 166.1 KiB libnghttp3 x86_64 0:1.19.0-1.fc45 updates 163.4 KiB libpfm x86_64 0:4.14.1-2.fc45 updates 2.4 MiB libpkgconf x86_64 0:2.5.1-2.fc45 fedora 90.1 KiB libpsl x86_64 0:0.23.1-1.fc45 fedora 80.4 KiB libselinux x86_64 0:3.11-5.fc45 fedora 205.2 KiB libselinux-utils x86_64 0:3.11-5.fc45 fedora 306.0 KiB libsemanage x86_64 0:3.11-4.fc45 fedora 320.6 KiB libsepol x86_64 0:3.11-2.fc45 fedora 866.1 KiB libsmartcols x86_64 0:2.42.4-1.fc45 fedora 188.5 KiB libssh x86_64 0:0.12.2-1.fc45 fedora 725.7 KiB libssh-config noarch 0:0.12.2-1.fc45 fedora 277.0 B libstdc++ x86_64 0:16.2.1-3.fc45 updates 3.1 MiB libtasn1 x86_64 0:4.21.0-2.fc45 fedora 176.6 KiB libtool-ltdl x86_64 0:2.5.4-11.fc45 fedora 70.0 KiB libunistring x86_64 0:1.1-12.fc45 fedora 1.7 MiB libusb1 x86_64 0:1.0.30-2.fc45 fedora 180.1 KiB libuuid x86_64 0:2.42.4-1.fc45 fedora 37.2 KiB libverto x86_64 0:0.3.2-13.fc45 fedora 25.3 KiB libxcrypt x86_64 0:4.5.2-4.fc45 fedora 293.2 KiB libxml2 x86_64 0:2.15.4-1.fc45 fedora 1.7 MiB libzstd x86_64 0:1.6.0-1.fc45 updates 754.7 KiB linkdupes x86_64 0:0.7.3-3.fc45 fedora 782.1 KiB lua-libs x86_64 0:5.5.1-2.fc45 fedora 298.0 KiB lua-srpm-macros noarch 0:1-18.fc45 fedora 1.3 KiB lz4-libs x86_64 0:1.10.0-5.fc45 fedora 165.3 KiB meson-srpm-macros noarch 0:1.12.1-3.fc45 updates 1.7 KiB mpfr x86_64 0:4.2.2-4.fc45 fedora 849.2 KiB ncurses-base noarch 0:6.6-3.fc45 fedora 329.7 KiB ncurses-libs x86_64 0:6.6-3.fc45 fedora 969.1 KiB nettle x86_64 0:4.0-5.fc45 fedora 801.9 KiB ngtcp2 x86_64 0:1.22.1-3.fc45 fedora 334.3 KiB ngtcp2-crypto-ossl x86_64 0:1.22.1-3.fc45 fedora 51.6 KiB npth x86_64 0:1.8-5.fc45 fedora 49.5 KiB ocaml-srpm-macros noarch 0:11-4.fc45 fedora 1.9 KiB openblas-srpm-macros noarch 0:2-22.fc45 fedora 112.0 B openldap x86_64 0:2.6.16-1.fc45 updates 683.9 KiB openssl-libs x86_64 1:4.0.3-1.fc45 fedora 6.7 MiB p11-kit x86_64 0:0.26.6-1.fc45 updates 2.7 MiB p11-kit-trust x86_64 0:0.26.6-1.fc45 updates 478.4 KiB package-notes-srpm-macros noarch 0:0.20-2.fc45 fedora 1.6 KiB pam-libs x86_64 0:1.7.2-4.fc45 fedora 134.5 KiB pcre2 x86_64 0:10.49-1.fc45 updates 726.6 KiB pcre2-syntax noarch 0:10.49-1.fc45 updates 292.5 KiB perl-srpm-macros noarch 0:1-65.fc45 fedora 861.0 B pkgconf x86_64 0:2.5.1-2.fc45 fedora 92.7 KiB pkgconf-m4 noarch 0:2.5.1-2.fc45 fedora 14.3 KiB pkgconf-pkg-config x86_64 0:2.5.1-2.fc45 fedora 989.0 B policycoreutils x86_64 0:3.11-2.fc45 fedora 892.9 KiB popt x86_64 0:1.19-11.fc45 fedora 136.7 KiB publicsuffix-list-dafsa noarch 0:20260624-2.fc45 fedora 71.3 KiB pyproject-srpm-macros noarch 0:1.24.0-1.fc45 updates 3.4 KiB python-srpm-macros noarch 0:3.15-2.fc45 fedora 51.6 KiB qt5-srpm-macros noarch 0:5.15.18-3.fc45 fedora 500.0 B qt6-srpm-macros noarch 0:6.11.2-1.fc45 fedora 472.0 B readline x86_64 0:8.3-6.fc45 fedora 515.5 KiB redhat-systemd-presets noarch 0:102-3.fc45 fedora 1.0 KiB redhat-systemd-presets-common noarch 0:102-3.fc45 fedora 16.9 KiB rpm x86_64 0:6.1.0-1.fc45 fedora 3.1 MiB rpm-build-libs x86_64 0:6.1.0-1.fc45 fedora 288.3 KiB rpm-libs x86_64 0:6.1.0-1.fc45 fedora 1.1 MiB rpm-plugin-selinux x86_64 0:6.1.0-1.fc45 fedora 11.9 KiB rpm-sequoia x86_64 0:1.10.3-1.fc45 fedora 2.4 MiB rpm-sign-libs x86_64 0:6.1.0-1.fc45 fedora 39.6 KiB rust-srpm-macros noarch 0:28.5-2.fc45 fedora 5.5 KiB selinux-policy noarch 0:45.26-1.fc45 updates 32.1 KiB selinux-policy-targeted noarch 0:45.26-1.fc45 updates 18.9 MiB setup noarch 0:2.15.1-2.fc45 fedora 725.6 KiB sqlite-libs x86_64 0:3.54.1-2.fc45 updates 1.6 MiB systemd-libs x86_64 0:262.1-1.fc45 updates 2.8 MiB systemd-standalone-sysusers x86_64 0:262.1-1.fc45 updates 981.2 KiB tpm2-tss x86_64 0:4.2.2-1.fc45 updates 1.6 MiB tree-sitter-srpm-macros noarch 0:0.4.6-2.fc45 fedora 8.6 KiB util-linux-core x86_64 0:2.42.4-1.fc45 fedora 1.5 MiB xxhash-libs x86_64 0:0.8.4-2.fc45 updates 94.0 KiB xz-libs x86_64 1:5.8.3-2.fc45 fedora 221.7 KiB zig-srpm-macros noarch 0:1-9.fc45 fedora 1.3 KiB zip x86_64 0:3.0-46.fc45 fedora 694.1 KiB zlib-ng-compat x86_64 0:2.3.3-6.fc45 fedora 165.6 KiB zstd x86_64 0:1.6.0-1.fc45 updates 531.4 KiB Installing groups: Buildsystem building group Transaction Summary: Installing: 189 packages Total size of inbound packages is 72 MiB. Need to download 72 MiB. After this operation, 234 MiB extra will be used (install 234 MiB, remove 0 B). [ 1/189] bzip2-0:1.0.8-24.fc45.x86_64 100% | 387.1 KiB/s | 52.3 KiB | 00m00s [ 2/189] cpio-0:2.15-10.fc45.x86_64 100% | 1.8 MiB/s | 292.5 KiB | 00m00s [ 3/189] coreutils-0:9.11-6.fc45.x86_6 100% | 3.3 MiB/s | 1.2 MiB | 00m00s [ 4/189] bash-0:5.3.15-2.fc45.x86_64 100% | 5.1 MiB/s | 1.9 MiB | 00m00s [ 5/189] diffutils-0:3.12-6.fc45.x86_6 100% | 4.2 MiB/s | 396.6 KiB | 00m00s [ 6/189] findutils-1:4.11.0-2.fc45.x86 100% | 10.3 MiB/s | 570.7 KiB | 00m00s [ 7/189] grep-0:3.12-4.fc45.x86_64 100% | 6.8 MiB/s | 301.0 KiB | 00m00s [ 8/189] gzip-0:1.14-4.fc45.x86_64 100% | 3.6 MiB/s | 179.6 KiB | 00m00s [ 9/189] patch-0:2.8-6.fc45.x86_64 100% | 2.7 MiB/s | 114.4 KiB | 00m00s [ 10/189] info-0:7.3-3.fc45.x86_64 100% | 4.2 MiB/s | 191.2 KiB | 00m00s [ 11/189] rpm-build-0:6.1.0-1.fc45.x86_ 100% | 3.2 MiB/s | 158.1 KiB | 00m00s [ 12/189] sed-0:4.10-2.fc45.x86_64 100% | 7.2 MiB/s | 322.8 KiB | 00m00s [ 13/189] shadow-utils-2:4.20.0-2.fc45. 100% | 17.9 MiB/s | 1.4 MiB | 00m00s [ 14/189] unzip-0:6.0-71.fc45.x86_64 100% | 4.5 MiB/s | 199.6 KiB | 00m00s [ 15/189] tar-2:1.35-10.fc45.x86_64 100% | 10.1 MiB/s | 870.2 KiB | 00m00s [ 16/189] which-0:2.25-2.fc45.x86_64 100% | 1.0 MiB/s | 42.2 KiB | 00m00s [ 17/189] xz-1:5.8.3-2.fc45.x86_64 100% | 12.7 MiB/s | 651.2 KiB | 00m00s [ 18/189] gawk-0:5.4.1-1.fc45.x86_64 100% | 14.4 MiB/s | 1.2 MiB | 00m00s [ 19/189] fedora-release-common-0:45-14 100% | 143.6 KiB/s | 17.7 KiB | 00m00s [ 20/189] util-linux-0:2.42.4-1.fc45.x8 100% | 21.1 MiB/s | 1.3 MiB | 00m00s [ 21/189] filesystem-0:3.18-59.fc45.x86 100% | 26.3 MiB/s | 1.8 MiB | 00m00s [ 22/189] ncurses-libs-0:6.6-3.fc45.x86 100% | 7.6 MiB/s | 343.7 KiB | 00m00s [ 23/189] glibc-minimal-langpack-0:2.44 100% | 444.9 KiB/s | 124.1 KiB | 00m00s [ 24/189] bzip2-libs-0:1.0.8-24.fc45.x8 100% | 1.1 MiB/s | 43.5 KiB | 00m00s [ 25/189] redhat-rpm-config-0:345-5.fc4 100% | 294.8 KiB/s | 78.1 KiB | 00m00s [ 26/189] gmp-1:6.3.0-6.fc45.x86_64 100% | 7.1 MiB/s | 321.8 KiB | 00m00s [ 27/189] coreutils-common-0:9.11-6.fc4 100% | 23.0 MiB/s | 2.2 MiB | 00m00s [ 28/189] libacl-0:2.4.0-2.fc45.x86_64 100% | 687.3 KiB/s | 27.5 KiB | 00m00s [ 29/189] libattr-0:2.6.0-2.fc45.x86_64 100% | 451.4 KiB/s | 18.1 KiB | 00m00s [ 30/189] libcap-0:2.78-2.fc45.x86_64 100% | 2.1 MiB/s | 88.6 KiB | 00m00s [ 31/189] libselinux-0:3.11-5.fc45.x86_ 100% | 2.4 MiB/s | 104.1 KiB | 00m00s [ 32/189] ed-0:1.22.6-1.fc45.x86_64 100% | 2.0 MiB/s | 85.6 KiB | 00m00s [ 33/189] file-0:5.48-3.fc45.x86_64 100% | 1.2 MiB/s | 50.7 KiB | 00m00s [ 34/189] openssl-libs-1:4.0.3-1.fc45.x 100% | 33.0 MiB/s | 2.3 MiB | 00m00s [ 35/189] popt-0:1.19-11.fc45.x86_64 100% | 1.6 MiB/s | 66.6 KiB | 00m00s [ 36/189] libarchive-0:3.8.9-2.fc45.x86 100% | 9.7 MiB/s | 446.0 KiB | 00m00s [ 37/189] readline-0:8.3-6.fc45.x86_64 100% | 5.3 MiB/s | 228.8 KiB | 00m00s [ 38/189] rpm-build-libs-0:6.1.0-1.fc45 100% | 3.1 MiB/s | 134.8 KiB | 00m00s [ 39/189] rpm-0:6.1.0-1.fc45.x86_64 100% | 11.1 MiB/s | 570.4 KiB | 00m00s [ 40/189] rpm-libs-0:6.1.0-1.fc45.x86_6 100% | 10.3 MiB/s | 476.6 KiB | 00m00s [ 41/189] audit-libs-0:4.2.1-2.fc45.x86 100% | 3.3 MiB/s | 143.3 KiB | 00m00s [ 42/189] libeconf-0:0.7.9-4.fc45.x86_6 100% | 876.1 KiB/s | 35.9 KiB | 00m00s [ 43/189] libsemanage-0:3.11-4.fc45.x86 100% | 3.0 MiB/s | 130.5 KiB | 00m00s [ 44/189] libxcrypt-0:4.5.2-4.fc45.x86_ 100% | 3.0 MiB/s | 130.9 KiB | 00m00s [ 45/189] pam-libs-0:1.7.2-4.fc45.x86_6 100% | 1.4 MiB/s | 58.4 KiB | 00m00s [ 46/189] setup-0:2.15.1-2.fc45.noarch 100% | 3.7 MiB/s | 157.6 KiB | 00m00s [ 47/189] fedora-repos-0:45-1.noarch 100% | 236.5 KiB/s | 9.5 KiB | 00m00s [ 48/189] xz-libs-1:5.8.3-2.fc45.x86_64 100% | 2.7 MiB/s | 116.1 KiB | 00m00s [ 49/189] redhat-systemd-presets-0:102- 100% | 213.6 KiB/s | 8.5 KiB | 00m00s [ 50/189] mpfr-0:4.2.2-4.fc45.x86_64 100% | 8.1 MiB/s | 357.4 KiB | 00m00s [ 51/189] R-srpm-macros-0:1.3.7-3.fc45. 100% | 271.9 KiB/s | 11.1 KiB | 00m00s [ 52/189] ansible-srpm-macros-0:1-22.fc 100% | 496.0 KiB/s | 19.8 KiB | 00m00s [ 53/189] build-reproducibility-srpm-ma 100% | 264.2 KiB/s | 10.8 KiB | 00m00s [ 54/189] dwz-0:0.17-3.fc45.x86_64 100% | 3.3 MiB/s | 139.2 KiB | 00m00s [ 55/189] efi-srpm-macros-0:6-9.fc45.no 100% | 523.1 KiB/s | 21.4 KiB | 00m00s [ 56/189] filesystem-srpm-macros-0:3.18 100% | 660.2 KiB/s | 26.4 KiB | 00m00s [ 57/189] fonts-srpm-macros-1:5.0.0-4.f 100% | 662.3 KiB/s | 27.2 KiB | 00m00s [ 58/189] forge-srpm-macros-0:0.4.0-5.f 100% | 493.2 KiB/s | 19.7 KiB | 00m00s [ 59/189] fpc-srpm-macros-0:1.3-17.fc45 100% | 189.3 KiB/s | 7.8 KiB | 00m00s [ 60/189] gap-srpm-macros-0:2-3.fc45.no 100% | 232.7 KiB/s | 9.3 KiB | 00m00s [ 61/189] ghc-srpm-macros-0:1.10-2.fc45 100% | 207.1 KiB/s | 8.5 KiB | 00m00s [ 62/189] gnat-srpm-macros-0:7-3.fc45.n 100% | 214.2 KiB/s | 8.6 KiB | 00m00s [ 63/189] gnome-srpm-macros-0:1.0-2.fc4 100% | 215.3 KiB/s | 8.8 KiB | 00m00s [ 64/189] go-srpm-macros-0:3.8.0-3.fc45 100% | 695.2 KiB/s | 27.8 KiB | 00m00s [ 65/189] java-srpm-macros-0:1-9.fc45.n 100% | 202.1 KiB/s | 8.3 KiB | 00m00s [ 66/189] glibc-common-0:2.44-2.fc45.x8 100% | 1.1 MiB/s | 416.5 KiB | 00m00s [ 67/189] kernel-srpm-macros-0:1.0-30.f 100% | 207.3 KiB/s | 8.3 KiB | 00m00s [ 68/189] lua-srpm-macros-0:1-18.fc45.n 100% | 211.8 KiB/s | 8.7 KiB | 00m00s [ 69/189] ocaml-srpm-macros-0:11-4.fc45 100% | 223.8 KiB/s | 9.0 KiB | 00m00s [ 70/189] openblas-srpm-macros-0:2-22.f 100% | 187.8 KiB/s | 7.5 KiB | 00m00s [ 71/189] package-notes-srpm-macros-0:0 100% | 250.0 KiB/s | 10.5 KiB | 00m00s [ 72/189] perl-srpm-macros-0:1-65.fc45. 100% | 208.8 KiB/s | 8.4 KiB | 00m00s [ 73/189] python-srpm-macros-0:3.15-2.f 100% | 596.3 KiB/s | 23.9 KiB | 00m00s [ 74/189] qt5-srpm-macros-0:5.15.18-3.f 100% | 196.7 KiB/s | 8.1 KiB | 00m00s [ 75/189] qt6-srpm-macros-0:6.11.2-1.fc 100% | 227.0 KiB/s | 9.1 KiB | 00m00s [ 76/189] rust-srpm-macros-0:28.5-2.fc4 100% | 284.3 KiB/s | 11.4 KiB | 00m00s [ 77/189] tree-sitter-srpm-macros-0:0.4 100% | 333.4 KiB/s | 14.0 KiB | 00m00s [ 78/189] zig-srpm-macros-0:1-9.fc45.no 100% | 220.3 KiB/s | 8.8 KiB | 00m00s [ 79/189] zip-0:3.0-46.fc45.x86_64 100% | 5.9 MiB/s | 264.6 KiB | 00m00s [ 80/189] libblkid-0:2.42.4-1.fc45.x86_ 100% | 3.1 MiB/s | 134.0 KiB | 00m00s [ 81/189] libcap-ng-0:0.9.6-1.fc45.x86_ 100% | 869.2 KiB/s | 34.8 KiB | 00m00s [ 82/189] libfdisk-0:2.42.4-1.fc45.x86_ 100% | 3.9 MiB/s | 169.6 KiB | 00m00s [ 83/189] liblastlog2-0:2.42.4-1.fc45.x 100% | 605.8 KiB/s | 24.8 KiB | 00m00s [ 84/189] libmount-0:2.42.4-1.fc45.x86_ 100% | 4.3 MiB/s | 179.5 KiB | 00m00s [ 85/189] libsmartcols-0:2.42.4-1.fc45. 100% | 2.1 MiB/s | 88.6 KiB | 00m00s [ 86/189] libuuid-0:2.42.4-1.fc45.x86_6 100% | 674.5 KiB/s | 27.7 KiB | 00m00s [ 87/189] util-linux-core-0:2.42.4-1.fc 100% | 12.4 MiB/s | 583.0 KiB | 00m00s [ 88/189] zlib-ng-compat-0:2.3.3-6.fc45 100% | 2.2 MiB/s | 90.4 KiB | 00m00s [ 89/189] ncurses-base-0:6.6-3.fc45.noa 100% | 2.0 MiB/s | 88.1 KiB | 00m00s [ 90/189] gnulib-l10n-0:20241231-4.fc45 100% | 3.6 MiB/s | 150.4 KiB | 00m00s [ 91/189] libsepol-0:3.11-2.fc45.x86_64 100% | 7.6 MiB/s | 365.2 KiB | 00m00s [ 92/189] ca-certificates-0:2026.2.92_v 100% | 19.0 MiB/s | 972.1 KiB | 00m00s [ 93/189] crypto-policies-0:20260713-2. 100% | 2.4 MiB/s | 97.5 KiB | 00m00s [ 94/189] file-libs-0:5.48-3.fc45.x86_6 100% | 15.2 MiB/s | 885.0 KiB | 00m00s [ 95/189] libxml2-0:2.15.4-1.fc45.x86_6 100% | 14.1 MiB/s | 676.8 KiB | 00m00s [ 96/189] lz4-libs-0:1.10.0-5.fc45.x86_ 100% | 2.0 MiB/s | 80.4 KiB | 00m00s [ 97/189] lua-libs-0:5.5.1-2.fc45.x86_6 100% | 3.4 MiB/s | 144.3 KiB | 00m00s [ 98/189] rpm-sign-libs-0:6.1.0-1.fc45. 100% | 657.0 KiB/s | 26.9 KiB | 00m00s [ 99/189] rpm-sequoia-0:1.10.3-1.fc45.x 100% | 18.3 MiB/s | 937.1 KiB | 00m00s [100/189] fedora-gpg-keys-0:45-1.noarch 100% | 3.3 MiB/s | 143.9 KiB | 00m00s [101/189] redhat-systemd-presets-common 100% | 322.6 KiB/s | 13.2 KiB | 00m00s [102/189] add-determinism-0:0.7.3-3.fc4 100% | 16.9 MiB/s | 845.7 KiB | 00m00s [103/189] linkdupes-0:0.7.3-3.fc45.x86_ 100% | 7.4 MiB/s | 339.2 KiB | 00m00s [104/189] gnupg2-0:2.4.9-18.fc45.x86_64 100% | 29.5 MiB/s | 1.7 MiB | 00m00s [105/189] libfsverity-0:1.7-4.fc45.x86_ 100% | 473.9 KiB/s | 19.0 KiB | 00m00s [106/189] gpgverify-0:2.2-5.fc45.noarch 100% | 269.3 KiB/s | 11.3 KiB | 00m00s [107/189] gnupg2-dirmngr-0:2.4.9-18.fc4 100% | 6.4 MiB/s | 281.6 KiB | 00m00s [108/189] gnupg2-gpg-agent-0:2.4.9-18.f 100% | 6.4 MiB/s | 281.3 KiB | 00m00s [109/189] gnupg2-gpgconf-0:2.4.9-18.fc4 100% | 2.8 MiB/s | 116.5 KiB | 00m00s [110/189] gnupg2-keyboxd-0:2.4.9-18.fc4 100% | 2.2 MiB/s | 96.6 KiB | 00m00s [111/189] gnupg2-verify-0:2.4.9-18.fc45 100% | 4.2 MiB/s | 176.1 KiB | 00m00s [112/189] libassuan-0:2.5.7-6.fc45.x86_ 100% | 845.9 KiB/s | 68.5 KiB | 00m00s [113/189] libgcrypt-0:1.12.2-2.fc45.x86 100% | 8.3 MiB/s | 629.0 KiB | 00m00s [114/189] glibc-0:2.44-2.fc45.x86_64 100% | 9.6 MiB/s | 2.5 MiB | 00m00s [115/189] libgpg-error-0:1.61-2.fc45.x8 100% | 5.7 MiB/s | 252.9 KiB | 00m00s [116/189] npth-0:1.8-5.fc45.x86_64 100% | 636.3 KiB/s | 25.5 KiB | 00m00s [117/189] libksba-0:1.8.0-3.fc45.x86_64 100% | 4.1 MiB/s | 172.2 KiB | 00m00s [118/189] gnutls-0:3.8.13-3.fc45.x86_64 100% | 26.3 MiB/s | 1.4 MiB | 00m00s [119/189] glibc-gconv-extra-0:2.44-2.fc 100% | 19.1 MiB/s | 1.7 MiB | 00m00s [120/189] libidn2-0:2.3.8-4.fc45.x86_64 100% | 4.2 MiB/s | 175.2 KiB | 00m00s [121/189] libtasn1-0:4.21.0-2.fc45.x86_ 100% | 1.8 MiB/s | 75.9 KiB | 00m00s [122/189] libunistring-0:1.1-12.fc45.x8 100% | 10.9 MiB/s | 545.8 KiB | 00m00s [123/189] nettle-0:4.0-5.fc45.x86_64 100% | 9.5 MiB/s | 429.7 KiB | 00m00s [124/189] systemd-libs-0:262.1-1.fc45.x 100% | 12.4 MiB/s | 963.7 KiB | 00m00s [125/189] ima-evm-utils-libs-0:1.7-1.fc 100% | 400.4 KiB/s | 38.8 KiB | 00m00s [126/189] libstdc++-0:16.2.1-3.fc45.x86 100% | 13.0 MiB/s | 1.0 MiB | 00m00s [127/189] libgcc-0:16.2.1-3.fc45.x86_64 100% | 975.9 KiB/s | 139.6 KiB | 00m00s [128/189] sqlite-libs-0:3.54.1-2.fc45.x 100% | 10.9 MiB/s | 824.0 KiB | 00m00s [129/189] elfutils-libs-0:0.197-1.fc45. 100% | 4.4 MiB/s | 285.6 KiB | 00m00s [130/189] elfutils-libelf-0:0.197-1.fc4 100% | 2.0 MiB/s | 265.9 KiB | 00m00s [131/189] elfutils-0:0.197-1.fc45.x86_6 100% | 8.9 MiB/s | 625.4 KiB | 00m00s [132/189] libzstd-0:1.6.0-1.fc45.x86_64 100% | 1.2 MiB/s | 288.8 KiB | 00m00s [133/189] elfutils-debuginfod-client-0: 100% | 717.6 KiB/s | 47.4 KiB | 00m00s [134/189] json-c-0:0.18-9.fc45.x86_64 100% | 1.1 MiB/s | 46.7 KiB | 00m00s [135/189] libgomp-0:16.2.1-3.fc45.x86_6 100% | 5.9 MiB/s | 400.8 KiB | 00m00s [136/189] debugedit-0:5.4-1.fc45.x86_64 100% | 1.2 MiB/s | 87.9 KiB | 00m00s [137/189] alternatives-0:1.33-6.fc45.x8 100% | 962.1 KiB/s | 39.4 KiB | 00m00s [138/189] zstd-0:1.6.0-1.fc45.x86_64 100% | 1.9 MiB/s | 201.4 KiB | 00m00s [139/189] jansson-0:2.14-5.fc45.x86_64 100% | 1.1 MiB/s | 46.9 KiB | 00m00s [140/189] binutils-0:2.47-1.fc45.x86_64 100% | 57.3 MiB/s | 6.2 MiB | 00m00s [141/189] pkgconf-pkg-config-0:2.5.1-2. 100% | 216.3 KiB/s | 9.5 KiB | 00m00s [142/189] pkgconf-0:2.5.1-2.fc45.x86_64 100% | 1.1 MiB/s | 49.0 KiB | 00m00s [143/189] pkgconf-m4-0:2.5.1-2.fc45.noa 100% | 345.2 KiB/s | 13.8 KiB | 00m00s [144/189] libpkgconf-0:2.5.1-2.fc45.x86 100% | 1.0 MiB/s | 42.6 KiB | 00m00s [145/189] curl-0:8.21.0-9.fc45.x86_64 100% | 3.8 MiB/s | 244.3 KiB | 00m00s [146/189] pcre2-syntax-0:10.49-1.fc45.n 100% | 2.6 MiB/s | 168.2 KiB | 00m00s [147/189] pcre2-0:10.49-1.fc45.x86_64 100% | 2.4 MiB/s | 280.0 KiB | 00m00s [148/189] libffi-0:3.5.2-3.fc45.x86_64 100% | 1.0 MiB/s | 41.9 KiB | 00m00s [149/189] p11-kit-0:0.26.6-1.fc45.x86_6 100% | 7.9 MiB/s | 568.9 KiB | 00m00s [150/189] fips-provider-0:1.5.3-2.fc45. 100% | 7.9 MiB/s | 1.6 MiB | 00m00s [151/189] tpm2-tss-0:4.2.2-1.fc45.x86_6 100% | 6.5 MiB/s | 453.2 KiB | 00m00s [152/189] p11-kit-trust-0:0.26.6-1.fc45 100% | 1.6 MiB/s | 147.0 KiB | 00m00s [153/189] libusb1-0:1.0.30-2.fc45.x86_6 100% | 2.0 MiB/s | 83.8 KiB | 00m00s [154/189] cyrus-sasl-lib-0:2.1.28-37.fc 100% | 16.6 MiB/s | 817.8 KiB | 00m00s [155/189] openldap-0:2.6.16-1.fc45.x86_ 100% | 4.2 MiB/s | 273.4 KiB | 00m00s [156/189] libevent-0:2.1.13-1.fc45.x86_ 100% | 984.0 KiB/s | 289.3 KiB | 00m00s [157/189] gdbm-libs-1:1.23-12.fc45.x86_ 100% | 251.1 KiB/s | 58.2 KiB | 00m00s [158/189] libtool-ltdl-0:2.5.4-11.fc45. 100% | 148.7 KiB/s | 36.7 KiB | 00m00s [159/189] cmake-srpm-macros-0:4.3.0-7.f 100% | 168.9 KiB/s | 10.3 KiB | 00m00s [160/189] erlang-srpm-macros-0:0.4.2-1. 100% | 161.7 KiB/s | 10.0 KiB | 00m00s [161/189] meson-srpm-macros-0:1.12.1-3. 100% | 167.7 KiB/s | 11.9 KiB | 00m00s [162/189] pyproject-srpm-macros-0:1.24. 100% | 252.5 KiB/s | 15.4 KiB | 00m00s [163/189] libpfm-0:4.14.1-2.fc45.x86_64 100% | 4.0 MiB/s | 277.9 KiB | 00m00s [164/189] fedora-release-0:45-14.noarch 100% | 165.7 KiB/s | 11.8 KiB | 00m00s [165/189] systemd-standalone-sysusers-0 100% | 6.4 MiB/s | 434.0 KiB | 00m00s [166/189] selinux-policy-0:45.26-1.fc45 100% | 759.5 KiB/s | 45.6 KiB | 00m00s [167/189] policycoreutils-0:3.11-2.fc45 100% | 6.2 MiB/s | 260.9 KiB | 00m00s [168/189] gdb-minimal-0:18.1-1.fc45.x86 100% | 26.0 MiB/s | 4.8 MiB | 00m00s [169/189] rpm-plugin-selinux-0:6.1.0-1. 100% | 445.2 KiB/s | 17.8 KiB | 00m00s [170/189] libselinux-utils-0:3.11-5.fc4 100% | 2.9 MiB/s | 123.6 KiB | 00m00s [171/189] xxhash-libs-0:0.8.4-2.fc45.x8 100% | 676.4 KiB/s | 41.3 KiB | 00m00s [172/189] fedora-release-identity-basic 100% | 202.1 KiB/s | 12.5 KiB | 00m00s [173/189] libcurl-0:8.21.0-9.fc45.x86_6 100% | 7.0 MiB/s | 482.6 KiB | 00m00s [174/189] libbrotli-0:1.2.1-1.fc45.x86_ 100% | 8.3 MiB/s | 347.2 KiB | 00m00s [175/189] libnghttp2-0:1.69.0-6.fc45.x8 100% | 1.8 MiB/s | 77.2 KiB | 00m00s [176/189] libpsl-0:0.23.1-1.fc45.x86_64 100% | 1.6 MiB/s | 67.6 KiB | 00m00s [177/189] selinux-policy-targeted-0:45. 100% | 17.5 MiB/s | 6.8 MiB | 00m00s [178/189] ngtcp2-0:1.22.1-3.fc45.x86_64 100% | 3.8 MiB/s | 157.7 KiB | 00m00s [179/189] libssh-0:0.12.2-1.fc45.x86_64 100% | 6.7 MiB/s | 295.9 KiB | 00m00s [180/189] ngtcp2-crypto-ossl-0:1.22.1-3 100% | 678.6 KiB/s | 27.8 KiB | 00m00s [181/189] publicsuffix-list-dafsa-0:202 100% | 1.5 MiB/s | 61.1 KiB | 00m00s [182/189] libssh-config-0:0.12.2-1.fc45 100% | 218.0 KiB/s | 8.9 KiB | 00m00s [183/189] keyutils-libs-0:1.6.3-8.fc45. 100% | 767.7 KiB/s | 31.5 KiB | 00m00s [184/189] libcom_err-0:1.47.4-2.fc45.x8 100% | 648.9 KiB/s | 26.6 KiB | 00m00s [185/189] krb5-libs-0:1.22.3-1.fc45.x86 100% | 10.8 MiB/s | 808.5 KiB | 00m00s [186/189] libverto-0:0.3.2-13.fc45.x86_ 100% | 524.3 KiB/s | 21.0 KiB | 00m00s [187/189] libcbor-0:0.14.0-3.fc45.x86_6 100% | 876.3 KiB/s | 36.8 KiB | 00m00s [188/189] libfido2-0:1.17.0-6.fc45.x86_ 100% | 1.7 MiB/s | 107.0 KiB | 00m00s [189/189] libnghttp3-0:1.19.0-1.fc45.x8 100% | 1.2 MiB/s | 75.3 KiB | 00m00s -------------------------------------------------------------------------------- [189/189] Total 100% | 16.0 MiB/s | 72.4 MiB | 00m05s Running transaction Importing OpenPGP key 0xF577861E: UserID : "Fedora (45) " Fingerprint: 4F50A6114CD5C6976A7F1179655A4B02F577861E From : file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-45-primary The key was successfully imported. [ 1/191] Verify package files 100% | 700.0 B/s | 189.0 B | 00m00s >>> Running %pretrans scriptlet: filesystem-0:3.18-59.fc45.x86_64 >>> Finished %pretrans scriptlet: filesystem-0:3.18-59.fc45.x86_64 >>> [RPM] failed to open /var/lib/mock/fedora-45-x86_64-1795997168.257285/root/etc/group for id/name lookup: No such file or directory [ 2/191] Prepare transaction 100% | 3.5 KiB/s | 189.0 B | 00m00s [ 3/191] Installing libgcc-0:16.2.1-3. 100% | 265.9 MiB/s | 272.3 KiB | 00m00s [ 4/191] Installing redhat-systemd-pre 100% | 0.0 B/s | 1.5 KiB | 00m00s [ 5/191] Installing redhat-systemd-pre 100% | 0.0 B/s | 18.1 KiB | 00m00s [ 6/191] Installing libssh-config-0:0. 100% | 0.0 B/s | 816.0 B | 00m00s [ 7/191] Installing publicsuffix-list- 100% | 0.0 B/s | 72.0 KiB | 00m00s [ 8/191] Installing fedora-release-ide 100% | 0.0 B/s | 888.0 B | 00m00s [ 9/191] Installing fedora-gpg-keys-0: 100% | 44.4 MiB/s | 181.7 KiB | 00m00s [ 10/191] Installing fedora-repos-0:45- 100% | 0.0 B/s | 5.9 KiB | 00m00s [ 11/191] Installing fedora-release-com 100% | 0.0 B/s | 7.4 KiB | 00m00s [ 12/191] Installing fedora-release-0:4 100% | 17.3 KiB/s | 124.0 B | 00m00s >>> Running sysusers scriptlet: setup-0:2.15.1-2.fc45.noarch >>> Finished sysusers scriptlet: setup-0:2.15.1-2.fc45.noarch >>> Scriptlet output: >>> Creating group 'adm' with GID 4. >>> Creating group 'audio' with GID 63. >>> Creating group 'cdrom' with GID 11. >>> Creating group 'clock' with GID 103. >>> Creating group 'dialout' with GID 18. >>> Creating group 'disk' with GID 6. >>> Creating group 'floppy' with GID 19. >>> Creating group 'ftp' with GID 50. >>> Creating group 'games' with GID 20. >>> Creating group 'input' with GID 104. >>> Creating group 'kmem' with GID 9. >>> Creating group 'kvm' with GID 36. >>> Creating group 'lock' with GID 54. >>> Creating group 'lp' with GID 7. >>> Creating group 'mail' with GID 12. >>> Creating group 'man' with GID 15. >>> Creating group 'mem' with GID 8. >>> Creating group 'nobody' with GID 65534. >>> Creating group 'render' with GID 105. >>> Creating group 'root' with GID 0. >>> Creating group 'sgx' with GID 106. >>> Creating group 'sys' with GID 3. >>> Creating group 'tape' with GID 33. >>> Creating group 'tty' with GID 5. >>> Creating group 'users' with GID 100. >>> Creating group 'utmp' with GID 22. >>> Creating group 'video' with GID 39. >>> Creating group 'wheel' with GID 10. >>> Creating user 'adm' (adm) with UID 3 and GID 4. >>> Creating group 'bin' with GID 1. >>> Creating user 'bin' (bin) with UID 1 and GID 1. >>> Creating group 'daemon' with GID 2. >>> Creating user 'daemon' (daemon) with UID 2 and GID 2. >>> Creating user 'ftp' (FTP User) with UID 14 and GID 50. >>> Creating user 'games' (games) with UID 12 and GID 100. >>> Creating user 'halt' (halt) with UID 7 and GID 0. >>> Creating user 'lp' (lp) with UID 4 and GID 7. >>> Creating user 'mail' (mail) with UID 8 and GID 12. >>> Creating user 'nobody' (Kernel Overflow User) with UID 65534 and GID 65534. >>> Creating user 'operator' (operator) with UID 11 and GID 0. >>> Creating user 'root' (Super User) with UID 0 and GID 0. >>> Creating user 'shutdown' (shutdown) with UID 6 and GID 0. >>> Creating user 'sync' (sync) with UID 5 and GID 0. >>> [ 13/191] Installing setup-0:2.15.1-2.f 100% | 42.0 MiB/s | 731.3 KiB | 00m00s >>> [RPM] /etc/hosts created as /etc/hosts.rpmnew [ 14/191] Installing filesystem-0:3.18- 100% | 2.7 MiB/s | 253.6 KiB | 00m00s [ 15/191] Installing meson-srpm-macros- 100% | 0.0 B/s | 1.9 KiB | 00m00s [ 16/191] Installing pcre2-syntax-0:10. 100% | 288.1 MiB/s | 295.0 KiB | 00m00s [ 17/191] Installing pkgconf-m4-0:2.5.1 100% | 0.0 B/s | 14.7 KiB | 00m00s [ 18/191] Installing gnulib-l10n-0:2024 100% | 215.5 MiB/s | 661.9 KiB | 00m00s [ 19/191] Installing coreutils-common-0 100% | 405.8 MiB/s | 11.0 MiB | 00m00s [ 20/191] Installing ncurses-base-0:6.6 100% | 86.7 MiB/s | 355.3 KiB | 00m00s [ 21/191] Installing bash-0:5.3.15-2.fc 100% | 242.1 MiB/s | 8.5 MiB | 00m00s [ 22/191] Installing glibc-common-0:2.4 100% | 49.1 MiB/s | 1.0 MiB | 00m00s [ 23/191] Installing glibc-gconv-extra- 100% | 311.4 MiB/s | 7.8 MiB | 00m00s [ 24/191] Installing glibc-0:2.44-2.fc4 100% | 174.5 MiB/s | 7.2 MiB | 00m00s [ 25/191] Installing ncurses-libs-0:6.6 100% | 238.0 MiB/s | 974.9 KiB | 00m00s [ 26/191] Installing glibc-minimal-lang 100% | 0.0 B/s | 124.0 B | 00m00s [ 27/191] Installing zlib-ng-compat-0:2 100% | 162.5 MiB/s | 166.4 KiB | 00m00s [ 28/191] Installing bzip2-libs-0:1.0.8 100% | 79.7 MiB/s | 81.6 KiB | 00m00s [ 29/191] Installing libgpg-error-0:1.6 100% | 49.3 MiB/s | 959.7 KiB | 00m00s [ 30/191] Installing libstdc++-0:16.2.1 100% | 386.3 MiB/s | 3.1 MiB | 00m00s [ 31/191] Installing readline-0:8.3-6.f 100% | 252.8 MiB/s | 517.7 KiB | 00m00s [ 32/191] Installing libzstd-0:1.6.0-1. 100% | 369.1 MiB/s | 756.0 KiB | 00m00s [ 33/191] Installing elfutils-libelf-0: 100% | 545.4 MiB/s | 1.6 MiB | 00m00s [ 34/191] Installing libassuan-0:2.5.7- 100% | 161.8 MiB/s | 165.7 KiB | 00m00s [ 35/191] Installing libgcrypt-0:1.12.2 100% | 415.7 MiB/s | 1.7 MiB | 00m00s [ 36/191] Installing gmp-1:6.3.0-6.fc45 100% | 399.1 MiB/s | 817.4 KiB | 00m00s [ 37/191] Installing libacl-0:2.4.0-2.f 100% | 0.0 B/s | 44.7 KiB | 00m00s [ 38/191] Installing libuuid-0:2.42.4-1 100% | 0.0 B/s | 38.2 KiB | 00m00s [ 39/191] Installing systemd-libs-0:262 100% | 395.8 MiB/s | 2.8 MiB | 00m00s [ 40/191] Installing popt-0:1.19-11.fc4 100% | 70.0 MiB/s | 143.3 KiB | 00m00s [ 41/191] Installing xz-libs-1:5.8.3-2. 100% | 217.6 MiB/s | 222.8 KiB | 00m00s [ 42/191] Installing npth-0:1.8-5.fc45. 100% | 0.0 B/s | 50.6 KiB | 00m00s [ 43/191] Installing sqlite-libs-0:3.54 100% | 411.7 MiB/s | 1.6 MiB | 00m00s [ 44/191] Installing elfutils-libs-0:0. 100% | 352.2 MiB/s | 721.4 KiB | 00m00s [ 45/191] Installing libblkid-0:2.42.4- 100% | 276.6 MiB/s | 283.3 KiB | 00m00s [ 46/191] Installing libsepol-0:3.11-2. 100% | 423.4 MiB/s | 867.1 KiB | 00m00s [ 47/191] Installing gnupg2-gpgconf-0:2 100% | 14.7 MiB/s | 255.9 KiB | 00m00s [ 48/191] Installing libxcrypt-0:4.5.2- 100% | 289.0 MiB/s | 295.9 KiB | 00m00s [ 49/191] Installing libtasn1-0:4.21.0- 100% | 174.3 MiB/s | 178.5 KiB | 00m00s [ 50/191] Installing libunistring-0:1.1 100% | 346.9 MiB/s | 1.7 MiB | 00m00s [ 51/191] Installing libidn2-0:2.3.8-4. 100% | 183.1 MiB/s | 562.6 KiB | 00m00s [ 52/191] Installing json-c-0:0.18-9.fc 100% | 0.0 B/s | 83.9 KiB | 00m00s [ 53/191] Installing pcre2-0:10.49-1.fc 100% | 355.5 MiB/s | 728.0 KiB | 00m00s [ 54/191] Installing libselinux-0:3.11- 100% | 201.6 MiB/s | 206.5 KiB | 00m00s [ 55/191] Installing grep-0:3.12-4.fc45 100% | 50.1 MiB/s | 1.0 MiB | 00m00s [ 56/191] Installing sed-0:4.10-2.fc45. 100% | 45.0 MiB/s | 874.9 KiB | 00m00s [ 57/191] Installing findutils-1:4.11.0 100% | 72.5 MiB/s | 2.0 MiB | 00m00s [ 58/191] Installing crypto-policies-0: 100% | 38.9 MiB/s | 159.5 KiB | 00m00s [ 59/191] Installing xz-1:5.8.3-2.fc45. 100% | 61.1 MiB/s | 1.4 MiB | 00m00s [ 60/191] Installing libmount-0:2.42.4- 100% | 200.1 MiB/s | 409.9 KiB | 00m00s [ 61/191] Installing gnupg2-verify-0:2. 100% | 20.5 MiB/s | 357.7 KiB | 00m00s [ 62/191] Installing mpfr-0:4.2.2-4.fc4 100% | 277.0 MiB/s | 850.9 KiB | 00m00s [ 63/191] Installing gawk-0:5.4.1-1.fc4 100% | 101.3 MiB/s | 2.2 MiB | 00m00s [ 64/191] Installing dwz-0:0.17-3.fc45. 100% | 16.8 MiB/s | 292.5 KiB | 00m00s [ 65/191] Installing libksba-0:1.8.0-3. 100% | 211.8 MiB/s | 433.7 KiB | 00m00s [ 66/191] Installing unzip-0:6.0-71.fc4 100% | 25.6 MiB/s | 445.3 KiB | 00m00s [ 67/191] Installing file-libs-0:5.48-3 100% | 685.8 MiB/s | 12.3 MiB | 00m00s [ 68/191] Installing file-0:5.48-3.fc45 100% | 6.3 MiB/s | 103.4 KiB | 00m00s [ 69/191] Installing diffutils-0:3.12-6 100% | 78.2 MiB/s | 1.6 MiB | 00m00s [ 70/191] Installing libattr-0:2.6.0-2. 100% | 0.0 B/s | 25.2 KiB | 00m00s [ 71/191] Installing libeconf-0:0.7.9-4 100% | 64.9 MiB/s | 66.4 KiB | 00m00s [ 72/191] Installing libcap-ng-0:0.9.6- 100% | 69.0 MiB/s | 70.6 KiB | 00m00s [ 73/191] Installing audit-libs-0:4.2.1 100% | 383.9 MiB/s | 393.1 KiB | 00m00s [ 74/191] Installing pam-libs-0:1.7.2-4 100% | 133.7 MiB/s | 136.9 KiB | 00m00s [ 75/191] Installing libcap-0:2.78-2.fc 100% | 13.0 MiB/s | 213.3 KiB | 00m00s [ 76/191] Installing libsemanage-0:3.11 100% | 314.8 MiB/s | 322.4 KiB | 00m00s [ 77/191] Installing libsmartcols-0:2.4 100% | 185.0 MiB/s | 189.5 KiB | 00m00s [ 78/191] Installing lua-libs-0:5.5.1-2 100% | 292.4 MiB/s | 299.5 KiB | 00m00s [ 79/191] Installing alternatives-0:1.3 100% | 3.9 MiB/s | 63.6 KiB | 00m00s [ 80/191] Installing libffi-0:3.5.2-3.f 100% | 83.1 MiB/s | 85.1 KiB | 00m00s [ 81/191] Installing p11-kit-0:0.26.6-1 100% | 112.7 MiB/s | 2.7 MiB | 00m00s [ 82/191] Installing p11-kit-trust-0:0. 100% | 19.5 MiB/s | 480.1 KiB | 00m00s [ 83/191] Installing ngtcp2-0:1.22.1-3. 100% | 164.0 MiB/s | 335.8 KiB | 00m00s [ 84/191] Installing util-linux-core-0: 100% | 68.7 MiB/s | 1.5 MiB | 00m00s [ 85/191] Installing liblastlog2-0:2.42 100% | 6.5 MiB/s | 39.7 KiB | 00m00s [ 86/191] Installing zip-0:3.0-46.fc45. 100% | 35.9 MiB/s | 698.0 KiB | 00m00s [ 87/191] Installing gnupg2-keyboxd-0:2 100% | 28.3 MiB/s | 202.5 KiB | 00m00s [ 88/191] Installing tar-2:1.35-10.fc45 100% | 114.6 MiB/s | 3.0 MiB | 00m00s [ 89/191] Installing linkdupes-0:0.7.3- 100% | 40.3 MiB/s | 783.5 KiB | 00m00s [ 90/191] Installing libselinux-utils-0 100% | 17.4 MiB/s | 320.3 KiB | 00m00s [ 91/191] Installing libpsl-0:0.23.1-1. 100% | 79.6 MiB/s | 81.5 KiB | 00m00s [ 92/191] Installing libfdisk-0:2.42.4- 100% | 384.0 MiB/s | 393.2 KiB | 00m00s [ 93/191] Installing fips-provider-0:1. 100% | 439.0 MiB/s | 4.8 MiB | 00m00s [ 94/191] Installing openssl-libs-1:4.0 100% | 372.2 MiB/s | 6.7 MiB | 00m00s [ 95/191] Installing coreutils-0:9.11-6 100% | 160.1 MiB/s | 5.9 MiB | 00m00s [ 96/191] Installing ca-certificates-0: 100% | 2.4 MiB/s | 2.5 MiB | 00m01s [ 97/191] Installing gzip-0:1.14-4.fc45 100% | 20.9 MiB/s | 407.2 KiB | 00m00s [ 98/191] Installing util-linux-0:2.42. 100% | 98.9 MiB/s | 3.8 MiB | 00m00s [ 99/191] Installing policycoreutils-0: 100% | 32.1 MiB/s | 921.4 KiB | 00m00s [100/191] Installing selinux-policy-0:4 100% | 1.8 MiB/s | 34.5 KiB | 00m00s [101/191] Installing selinux-policy-tar 100% | 222.2 MiB/s | 15.1 MiB | 00m00s [102/191] Installing rpm-sequoia-0:1.10 100% | 347.9 MiB/s | 2.4 MiB | 00m00s [103/191] Installing libfsverity-0:1.7- 100% | 0.0 B/s | 25.4 KiB | 00m00s [104/191] Installing libevent-0:2.1.13- 100% | 320.5 MiB/s | 984.5 KiB | 00m00s [105/191] Installing ngtcp2-crypto-ossl 100% | 0.0 B/s | 52.5 KiB | 00m00s [106/191] Installing libusb1-0:1.0.30-2 100% | 14.8 MiB/s | 181.8 KiB | 00m00s >>> Running sysusers scriptlet: tpm2-tss-0:4.2.2-1.fc45.x86_64 >>> Finished sysusers scriptlet: tpm2-tss-0:4.2.2-1.fc45.x86_64 >>> Scriptlet output: >>> Creating group 'tss' with GID 59. >>> Creating user 'tss' (Account used for TPM access) with UID 59 and GID 59. >>> [107/191] Installing tpm2-tss-0:4.2.2-1 100% | 276.5 MiB/s | 1.7 MiB | 00m00s [108/191] Installing gnupg2-gpg-agent-0 100% | 26.7 MiB/s | 682.8 KiB | 00m00s [109/191] Installing ima-evm-utils-libs 100% | 95.7 MiB/s | 98.0 KiB | 00m00s [110/191] Installing nettle-0:4.0-5.fc4 100% | 262.0 MiB/s | 805.0 KiB | 00m00s [111/191] Installing gnutls-0:3.8.13-3. 100% | 383.8 MiB/s | 3.8 MiB | 00m00s [112/191] Installing zstd-0:1.6.0-1.fc4 100% | 27.5 MiB/s | 535.0 KiB | 00m00s [113/191] Installing libxml2-0:2.15.4-1 100% | 82.7 MiB/s | 1.7 MiB | 00m00s [114/191] Installing bzip2-0:1.0.8-24.f 100% | 6.1 MiB/s | 99.5 KiB | 00m00s [115/191] Installing add-determinism-0: 100% | 102.8 MiB/s | 2.2 MiB | 00m00s [116/191] Installing build-reproducibil 100% | 0.0 B/s | 1.5 KiB | 00m00s [117/191] Installing cpio-0:2.15-10.fc4 100% | 58.1 MiB/s | 1.1 MiB | 00m00s [118/191] Installing ed-0:1.22.6-1.fc45 100% | 8.8 MiB/s | 153.2 KiB | 00m00s [119/191] Installing patch-0:2.8-6.fc45 100% | 13.1 MiB/s | 228.1 KiB | 00m00s [120/191] Installing lz4-libs-0:1.10.0- 100% | 162.5 MiB/s | 166.4 KiB | 00m00s [121/191] Installing libarchive-0:3.8.9 100% | 327.4 MiB/s | 1.0 MiB | 00m00s [122/191] Installing libgomp-0:16.2.1-3 100% | 282.7 MiB/s | 578.9 KiB | 00m00s [123/191] Installing jansson-0:2.14-5.f 100% | 88.2 MiB/s | 90.3 KiB | 00m00s [124/191] Installing libpkgconf-0:2.5.1 100% | 89.1 MiB/s | 91.3 KiB | 00m00s [125/191] Installing pkgconf-0:2.5.1-2. 100% | 5.8 MiB/s | 95.2 KiB | 00m00s [126/191] Installing pkgconf-pkg-config 100% | 110.8 KiB/s | 1.8 KiB | 00m00s [127/191] Installing libtool-ltdl-0:2.5 100% | 69.5 MiB/s | 71.1 KiB | 00m00s [128/191] Installing gdbm-libs-1:1.23-1 100% | 132.2 MiB/s | 135.4 KiB | 00m00s [129/191] Installing cyrus-sasl-lib-0:2 100% | 111.4 MiB/s | 2.3 MiB | 00m00s [130/191] Installing openldap-0:2.6.16- 100% | 223.9 MiB/s | 687.7 KiB | 00m00s [131/191] Installing gnupg2-dirmngr-0:2 100% | 25.7 MiB/s | 632.8 KiB | 00m00s [132/191] Installing gnupg2-0:2.4.9-18. 100% | 197.0 MiB/s | 6.5 MiB | 00m00s [133/191] Installing gpgverify-0:2.2-5. 100% | 0.0 B/s | 9.4 KiB | 00m00s [134/191] Installing libpfm-0:4.14.1-2. 100% | 593.1 MiB/s | 2.4 MiB | 00m00s [135/191] Installing systemd-standalone 100% | 50.5 MiB/s | 981.8 KiB | 00m00s [136/191] Installing rpm-libs-0:6.1.0-1 100% | 274.8 MiB/s | 1.1 MiB | 00m00s [137/191] Installing rpm-sign-libs-0:6. 100% | 0.0 B/s | 40.5 KiB | 00m00s [138/191] Installing rpm-build-libs-0:6 100% | 282.4 MiB/s | 289.1 KiB | 00m00s [139/191] Installing xxhash-libs-0:0.8. 100% | 93.1 MiB/s | 95.4 KiB | 00m00s [140/191] Installing libbrotli-0:1.2.1- 100% | 282.3 MiB/s | 867.3 KiB | 00m00s [141/191] Installing libnghttp2-0:1.69. 100% | 163.3 MiB/s | 167.3 KiB | 00m00s [142/191] Installing keyutils-libs-0:1. 100% | 0.0 B/s | 55.6 KiB | 00m00s [143/191] Installing libcom_err-0:1.47. 100% | 0.0 B/s | 64.1 KiB | 00m00s [144/191] Installing libverto-0:0.3.2-1 100% | 26.4 MiB/s | 27.1 KiB | 00m00s [145/191] Installing krb5-libs-0:1.22.3 100% | 342.4 MiB/s | 2.4 MiB | 00m00s [146/191] Installing libcbor-0:0.14.0-3 100% | 0.0 B/s | 84.9 KiB | 00m00s [147/191] Installing libfido2-0:1.17.0- 100% | 252.0 MiB/s | 258.1 KiB | 00m00s [148/191] Installing libssh-0:0.12.2-1. 100% | 355.4 MiB/s | 727.8 KiB | 00m00s [149/191] Installing libnghttp3-0:1.19. 100% | 161.0 MiB/s | 164.8 KiB | 00m00s [150/191] Installing libcurl-0:8.21.0-9 100% | 352.7 MiB/s | 1.1 MiB | 00m00s [151/191] Installing elfutils-debuginfo 100% | 4.7 MiB/s | 82.2 KiB | 00m00s [152/191] Installing elfutils-0:0.197-1 100% | 128.0 MiB/s | 3.1 MiB | 00m00s [153/191] Installing binutils-0:2.47-1. 100% | 330.2 MiB/s | 28.4 MiB | 00m00s [154/191] Installing gdb-minimal-0:18.1 100% | 267.4 MiB/s | 14.4 MiB | 00m00s [155/191] Installing debugedit-0:5.4-1. 100% | 12.6 MiB/s | 232.1 KiB | 00m00s [156/191] Installing curl-0:8.21.0-9.fc 100% | 18.4 MiB/s | 490.6 KiB | 00m00s [157/191] Installing rpm-0:6.1.0-1.fc45 100% | 69.5 MiB/s | 2.5 MiB | 00m00s [158/191] Installing efi-srpm-macros-0: 100% | 40.3 MiB/s | 41.3 KiB | 00m00s [159/191] Installing java-srpm-macros-0 100% | 0.0 B/s | 1.1 KiB | 00m00s [160/191] Installing lua-srpm-macros-0: 100% | 0.0 B/s | 1.9 KiB | 00m00s [161/191] Installing tree-sitter-srpm-m 100% | 1.9 MiB/s | 9.6 KiB | 00m00s [162/191] Installing zig-srpm-macros-0: 100% | 0.0 B/s | 1.9 KiB | 00m00s [163/191] Installing cmake-srpm-macros- 100% | 0.0 B/s | 804.0 B | 00m00s [164/191] Installing filesystem-srpm-ma 100% | 0.0 B/s | 38.9 KiB | 00m00s [165/191] Installing rust-srpm-macros-0 100% | 0.0 B/s | 6.4 KiB | 00m00s [166/191] Installing qt6-srpm-macros-0: 100% | 0.0 B/s | 748.0 B | 00m00s [167/191] Installing qt5-srpm-macros-0: 100% | 0.0 B/s | 776.0 B | 00m00s [168/191] Installing perl-srpm-macros-0 100% | 0.0 B/s | 1.1 KiB | 00m00s [169/191] Installing package-notes-srpm 100% | 0.0 B/s | 2.1 KiB | 00m00s [170/191] Installing openblas-srpm-macr 100% | 0.0 B/s | 392.0 B | 00m00s [171/191] Installing ocaml-srpm-macros- 100% | 0.0 B/s | 2.1 KiB | 00m00s [172/191] Installing kernel-srpm-macros 100% | 0.0 B/s | 2.3 KiB | 00m00s [173/191] Installing gnome-srpm-macros- 100% | 0.0 B/s | 4.1 KiB | 00m00s [174/191] Installing gnat-srpm-macros-0 100% | 0.0 B/s | 1.3 KiB | 00m00s [175/191] Installing ghc-srpm-macros-0: 100% | 0.0 B/s | 1.0 KiB | 00m00s [176/191] Installing gap-srpm-macros-0: 100% | 0.0 B/s | 2.7 KiB | 00m00s [177/191] Installing fpc-srpm-macros-0: 100% | 0.0 B/s | 420.0 B | 00m00s [178/191] Installing ansible-srpm-macro 100% | 0.0 B/s | 36.2 KiB | 00m00s [179/191] Installing redhat-rpm-config- 100% | 93.0 MiB/s | 190.4 KiB | 00m00s [180/191] Installing forge-srpm-macros- 100% | 39.3 MiB/s | 40.3 KiB | 00m00s [181/191] Installing rpm-build-0:6.1.0- 100% | 16.6 MiB/s | 322.1 KiB | 00m00s [182/191] Installing erlang-srpm-macros 100% | 0.0 B/s | 2.6 KiB | 00m00s [183/191] Installing pyproject-srpm-mac 100% | 0.0 B/s | 4.0 KiB | 00m00s [184/191] Installing fonts-srpm-macros- 100% | 0.0 B/s | 57.0 KiB | 00m00s [185/191] Installing go-srpm-macros-0:3 100% | 0.0 B/s | 63.0 KiB | 00m00s [186/191] Installing R-srpm-macros-0:1. 100% | 0.0 B/s | 4.4 KiB | 00m00s [187/191] Installing python-srpm-macros 100% | 0.0 B/s | 52.9 KiB | 00m00s [188/191] Installing rpm-plugin-selinux 100% | 0.0 B/s | 12.9 KiB | 00m00s [189/191] Installing which-0:2.25-2.fc4 100% | 4.7 MiB/s | 85.8 KiB | 00m00s [190/191] Installing shadow-utils-2:4.2 100% | 123.3 MiB/s | 3.9 MiB | 00m00s [191/191] Installing info-0:7.3-3.fc45. 100% | 54.3 KiB/s | 372.8 KiB | 00m07s Complete! Finish: installing minimal buildroot with dnf5 Start: creating root cache Finish: creating root cache Finish: chroot init INFO: Installed packages: INFO: R-srpm-macros-1.3.7-3.fc45.noarch add-determinism-0.7.3-3.fc45.x86_64 alternatives-1.33-6.fc45.x86_64 ansible-srpm-macros-1-22.fc45.noarch audit-libs-4.2.1-2.fc45.x86_64 bash-5.3.15-2.fc45.x86_64 binutils-2.47-1.fc45.x86_64 build-reproducibility-srpm-macros-0.7.3-3.fc45.noarch bzip2-1.0.8-24.fc45.x86_64 bzip2-libs-1.0.8-24.fc45.x86_64 ca-certificates-2026.2.92_v9.0.319-2.fc45.noarch cmake-srpm-macros-4.3.0-7.fc45.noarch coreutils-9.11-6.fc45.x86_64 coreutils-common-9.11-6.fc45.x86_64 cpio-2.15-10.fc45.x86_64 crypto-policies-20260713-2.gitc42da77.fc45.noarch curl-8.21.0-9.fc45.x86_64 cyrus-sasl-lib-2.1.28-37.fc45.x86_64 debugedit-5.4-1.fc45.x86_64 diffutils-3.12-6.fc45.x86_64 dwz-0.17-3.fc45.x86_64 ed-1.22.6-1.fc45.x86_64 efi-srpm-macros-6-9.fc45.noarch elfutils-0.197-1.fc45.x86_64 elfutils-debuginfod-client-0.197-1.fc45.x86_64 elfutils-libelf-0.197-1.fc45.x86_64 elfutils-libs-0.197-1.fc45.x86_64 erlang-srpm-macros-0.4.2-1.fc45.noarch fedora-gpg-keys-45-1.noarch fedora-release-45-14.noarch fedora-release-common-45-14.noarch fedora-release-identity-basic-45-14.noarch fedora-repos-45-1.noarch file-5.48-3.fc45.x86_64 file-libs-5.48-3.fc45.x86_64 filesystem-3.18-59.fc45.x86_64 filesystem-srpm-macros-3.18-59.fc45.noarch findutils-4.11.0-2.fc45.x86_64 fips-provider-1.5.3-2.fc45.x86_64 fonts-srpm-macros-5.0.0-4.fc45.noarch forge-srpm-macros-0.4.0-5.fc45.noarch fpc-srpm-macros-1.3-17.fc45.noarch gap-srpm-macros-2-3.fc45.noarch gawk-5.4.1-1.fc45.x86_64 gdb-minimal-18.1-1.fc45.x86_64 gdbm-libs-1.23-12.fc45.x86_64 ghc-srpm-macros-1.10-2.fc45.noarch glibc-2.44-2.fc45.x86_64 glibc-common-2.44-2.fc45.x86_64 glibc-gconv-extra-2.44-2.fc45.x86_64 glibc-minimal-langpack-2.44-2.fc45.x86_64 gmp-6.3.0-6.fc45.x86_64 gnat-srpm-macros-7-3.fc45.noarch gnome-srpm-macros-1.0-2.fc45.noarch gnulib-l10n-20241231-4.fc45.noarch gnupg2-2.4.9-18.fc45.x86_64 gnupg2-dirmngr-2.4.9-18.fc45.x86_64 gnupg2-gpg-agent-2.4.9-18.fc45.x86_64 gnupg2-gpgconf-2.4.9-18.fc45.x86_64 gnupg2-keyboxd-2.4.9-18.fc45.x86_64 gnupg2-verify-2.4.9-18.fc45.x86_64 gnutls-3.8.13-3.fc45.x86_64 go-srpm-macros-3.8.0-3.fc45.noarch gpg-pubkey-4f50a6114cd5c6976a7f1179655a4b02f577861e-6888bc98 gpgverify-2.2-5.fc45.noarch grep-3.12-4.fc45.x86_64 gzip-1.14-4.fc45.x86_64 ima-evm-utils-libs-1.7-1.fc45.x86_64 info-7.3-3.fc45.x86_64 jansson-2.14-5.fc45.x86_64 java-srpm-macros-1-9.fc45.noarch json-c-0.18-9.fc45.x86_64 kernel-srpm-macros-1.0-30.fc45.noarch keyutils-libs-1.6.3-8.fc45.x86_64 krb5-libs-1.22.3-1.fc45.x86_64 libacl-2.4.0-2.fc45.x86_64 libarchive-3.8.9-2.fc45.x86_64 libassuan-2.5.7-6.fc45.x86_64 libattr-2.6.0-2.fc45.x86_64 libblkid-2.42.4-1.fc45.x86_64 libbrotli-1.2.1-1.fc45.x86_64 libcap-2.78-2.fc45.x86_64 libcap-ng-0.9.6-1.fc45.x86_64 libcbor-0.14.0-3.fc45.x86_64 libcom_err-1.47.4-2.fc45.x86_64 libcurl-8.21.0-9.fc45.x86_64 libeconf-0.7.9-4.fc45.x86_64 libevent-2.1.13-1.fc45.x86_64 libfdisk-2.42.4-1.fc45.x86_64 libffi-3.5.2-3.fc45.x86_64 libfido2-1.17.0-6.fc45.x86_64 libfsverity-1.7-4.fc45.x86_64 libgcc-16.2.1-3.fc45.x86_64 libgcrypt-1.12.2-2.fc45.x86_64 libgomp-16.2.1-3.fc45.x86_64 libgpg-error-1.61-2.fc45.x86_64 libidn2-2.3.8-4.fc45.x86_64 libksba-1.8.0-3.fc45.x86_64 liblastlog2-2.42.4-1.fc45.x86_64 libmount-2.42.4-1.fc45.x86_64 libnghttp2-1.69.0-6.fc45.x86_64 libnghttp3-1.19.0-1.fc45.x86_64 libpfm-4.14.1-2.fc45.x86_64 libpkgconf-2.5.1-2.fc45.x86_64 libpsl-0.23.1-1.fc45.x86_64 libselinux-3.11-5.fc45.x86_64 libselinux-utils-3.11-5.fc45.x86_64 libsemanage-3.11-4.fc45.x86_64 libsepol-3.11-2.fc45.x86_64 libsmartcols-2.42.4-1.fc45.x86_64 libssh-0.12.2-1.fc45.x86_64 libssh-config-0.12.2-1.fc45.noarch libstdc++-16.2.1-3.fc45.x86_64 libtasn1-4.21.0-2.fc45.x86_64 libtool-ltdl-2.5.4-11.fc45.x86_64 libunistring-1.1-12.fc45.x86_64 libusb1-1.0.30-2.fc45.x86_64 libuuid-2.42.4-1.fc45.x86_64 libverto-0.3.2-13.fc45.x86_64 libxcrypt-4.5.2-4.fc45.x86_64 libxml2-2.15.4-1.fc45.x86_64 libzstd-1.6.0-1.fc45.x86_64 linkdupes-0.7.3-3.fc45.x86_64 lua-libs-5.5.1-2.fc45.x86_64 lua-srpm-macros-1-18.fc45.noarch lz4-libs-1.10.0-5.fc45.x86_64 meson-srpm-macros-1.12.1-3.fc45.noarch mpfr-4.2.2-4.fc45.x86_64 ncurses-base-6.6-3.fc45.noarch ncurses-libs-6.6-3.fc45.x86_64 nettle-4.0-5.fc45.x86_64 ngtcp2-1.22.1-3.fc45.x86_64 ngtcp2-crypto-ossl-1.22.1-3.fc45.x86_64 npth-1.8-5.fc45.x86_64 ocaml-srpm-macros-11-4.fc45.noarch openblas-srpm-macros-2-22.fc45.noarch openldap-2.6.16-1.fc45.x86_64 openssl-libs-4.0.3-1.fc45.x86_64 p11-kit-0.26.6-1.fc45.x86_64 p11-kit-trust-0.26.6-1.fc45.x86_64 package-notes-srpm-macros-0.20-2.fc45.noarch pam-libs-1.7.2-4.fc45.x86_64 patch-2.8-6.fc45.x86_64 pcre2-10.49-1.fc45.x86_64 pcre2-syntax-10.49-1.fc45.noarch perl-srpm-macros-1-65.fc45.noarch pkgconf-2.5.1-2.fc45.x86_64 pkgconf-m4-2.5.1-2.fc45.noarch pkgconf-pkg-config-2.5.1-2.fc45.x86_64 policycoreutils-3.11-2.fc45.x86_64 popt-1.19-11.fc45.x86_64 publicsuffix-list-dafsa-20260624-2.fc45.noarch pyproject-srpm-macros-1.24.0-1.fc45.noarch python-srpm-macros-3.15-2.fc45.noarch qt5-srpm-macros-5.15.18-3.fc45.noarch qt6-srpm-macros-6.11.2-1.fc45.noarch readline-8.3-6.fc45.x86_64 redhat-rpm-config-345-5.fc45.noarch redhat-systemd-presets-102-3.fc45.noarch redhat-systemd-presets-common-102-3.fc45.noarch rpm-6.1.0-1.fc45.x86_64 rpm-build-6.1.0-1.fc45.x86_64 rpm-build-libs-6.1.0-1.fc45.x86_64 rpm-libs-6.1.0-1.fc45.x86_64 rpm-plugin-selinux-6.1.0-1.fc45.x86_64 rpm-sequoia-1.10.3-1.fc45.x86_64 rpm-sign-libs-6.1.0-1.fc45.x86_64 rust-srpm-macros-28.5-2.fc45.noarch sed-4.10-2.fc45.x86_64 selinux-policy-45.26-1.fc45.noarch selinux-policy-targeted-45.26-1.fc45.noarch setup-2.15.1-2.fc45.noarch shadow-utils-4.20.0-2.fc45.x86_64 sqlite-libs-3.54.1-2.fc45.x86_64 systemd-libs-262.1-1.fc45.x86_64 systemd-standalone-sysusers-262.1-1.fc45.x86_64 tar-1.35-10.fc45.x86_64 tpm2-tss-4.2.2-1.fc45.x86_64 tree-sitter-srpm-macros-0.4.6-2.fc45.noarch unzip-6.0-71.fc45.x86_64 util-linux-2.42.4-1.fc45.x86_64 util-linux-core-2.42.4-1.fc45.x86_64 which-2.25-2.fc45.x86_64 xxhash-libs-0.8.4-2.fc45.x86_64 xz-5.8.3-2.fc45.x86_64 xz-libs-5.8.3-2.fc45.x86_64 zig-srpm-macros-1-9.fc45.noarch zip-3.0-46.fc45.x86_64 zlib-ng-compat-2.3.3-6.fc45.x86_64 zstd-1.6.0-1.fc45.x86_64 Start: buildsrpm Start: rpmbuild -bs Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1795910400 Wrote: /builddir/build/SRPMS/py-pdftools-1.32.0-1.fc45.src.rpm Finish: rpmbuild -bs INFO: chroot_scan: 1 files copied to /var/lib/copr-rpmbuild/results/chroot_scan INFO: /var/lib/mock/fedora-45-x86_64-1795997168.257285/root/var/log/dnf5.log INFO: chroot_scan: creating tarball /var/lib/copr-rpmbuild/results/chroot_scan.tar.gz /bin/tar: Removing leading `/' from member names Finish: buildsrpm INFO: Done(/var/lib/copr-rpmbuild/workspace/workdir-i0m1kdtx/py-pdftools/py-pdftools.spec) Config(child) 0 minutes 30 seconds INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results INFO: Cleaning up build root ('cleanup_on_success=True') Start: clean chroot INFO: unmounting tmpfs. Finish: clean chroot INFO: Start(/var/lib/copr-rpmbuild/results/py-pdftools-1.32.0-1.fc45.src.rpm) Config(fedora-45-x86_64) Start(bootstrap): chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-45-x86_64-bootstrap-1795997168.257285/root. INFO: reusing tmpfs at /var/lib/mock/fedora-45-x86_64-bootstrap-1795997168.257285/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start(bootstrap): cleaning package manager metadata Finish(bootstrap): cleaning package manager metadata Finish(bootstrap): chroot init Start: chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-45-x86_64-1795997168.257285/root. INFO: calling preinit hooks INFO: enabled root cache Start: unpacking root cache Finish: unpacking root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin INFO: Buildroot is handled by package management downloaded with a bootstrap image: rpm-6.1.0-1.fc45.x86_64 rpm-sequoia-1.10.3-1.fc45.x86_64 dnf5-5.4.8.0-2.fc45.x86_64 dnf5-plugins-5.4.8.0-2.fc45.x86_64 Finish: chroot init Start: build phase for py-pdftools-1.32.0-1.fc45.src.rpm Start: build setup for py-pdftools-1.32.0-1.fc45.src.rpm Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1795910400 Wrote: /builddir/build/SRPMS/py-pdftools-1.32.0-1.fc45.src.rpm Updating and loading repositories: updates 100% | 68.4 KiB/s | 19.4 KiB | 00m00s fedora 100% | 73.0 KiB/s | 20.4 KiB | 00m00s Copr repository 100% | 11.3 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package Arch Version Repository Size Installing: appstream x86_64 0:1.1.3-4.fc45 fedora 4.9 MiB desktop-file-utils x86_64 0:0.28-8.fc45 fedora 222.2 KiB poppler-utils x86_64 0:26.08.0-2.fc45 updates 819.8 KiB python3-devel x86_64 0:3.15.2-1.fc45 updates 2.5 MiB python3-pyside6 x86_64 0:6.11.2-3.fc45 updates 54.8 MiB python3-pytest noarch 0:9.1.1-1.fc45 fedora 24.3 MiB qpdf x86_64 0:12.4.2-1.fc45 updates 274.6 KiB tesseract x86_64 0:5.5.4-1.fc45 updates 83.5 KiB tesseract-langpack-eng noarch 0:4.1.0-13.fc45 fedora 3.9 MiB Installing dependencies: SDL3 x86_64 0:3.4.20-1.fc45 updates 3.2 MiB abattis-cantarell-vf-fonts noarch 0:0.301-18.fc45 fedora 192.7 KiB abseil-cpp x86_64 0:20260526.0-3.fc45 fedora 2.6 MiB adwaita-cursor-theme noarch 0:51.0-1.fc45 fedora 11.4 MiB adwaita-icon-theme noarch 0:51.0-1.fc45 fedora 888.7 KiB adwaita-icon-theme-legacy noarch 0:46.2-12.fc45 fedora 2.1 MiB alsa-lib x86_64 0:1.2.16.1-2.fc45 fedora 1.5 MiB aribb24 x86_64 0:1.0.3^20160216git5e9be27-6.fc45 fedora 83.0 KiB assimp x86_64 0:6.0.6-1.fc45 updates 7.5 MiB at-spi2-atk x86_64 0:2.62.2-1.fc45 updates 288.2 KiB at-spi2-core x86_64 0:2.62.2-1.fc45 updates 1.6 MiB atk x86_64 0:2.62.2-1.fc45 updates 252.6 KiB authselect x86_64 0:1.8.0-1.fc45 fedora 231.9 KiB authselect-libs x86_64 0:1.8.0-1.fc45 fedora 933.8 KiB avahi-glib x86_64 0:0.9~rc2-9.fc45 fedora 19.5 KiB avahi-libs x86_64 0:0.9~rc2-9.fc45 fedora 171.3 KiB bluez-libs x86_64 0:5.88-1.fc45 updates 202.3 KiB bubblewrap x86_64 0:0.13.1-1.fc45 updates 139.9 KiB cairo x86_64 0:1.18.6-1.fc45 fedora 1.8 MiB cairo-gobject x86_64 0:1.18.6-1.fc45 fedora 31.0 KiB cdparanoia-libs x86_64 0:10.2-51.fc45 fedora 113.3 KiB cjson x86_64 0:1.7.19-2.fc45 fedora 63.8 KiB cmake-filesystem x86_64 0:4.3.0-7.fc45 updates 0.0 B codec2 x86_64 0:1.2.0-10.fc45 fedora 1.4 MiB colord-libs x86_64 0:1.4.8-5.fc45 fedora 830.6 KiB cracklib x86_64 0:2.10.3-2.fc45 fedora 234.6 KiB cups-filesystem noarch 1:2.4.19-4.fc45 fedora 0.0 B cups-libs x86_64 1:2.4.19-4.fc45 fedora 638.7 KiB dbus x86_64 1:1.16.4-2.fc45 updates 0.0 B dbus-broker x86_64 0:37-9.fc45 fedora 395.0 KiB dbus-common noarch 1:1.16.4-2.fc45 updates 11.2 KiB dbus-libs x86_64 1:1.16.4-2.fc45 updates 357.6 KiB default-fonts-core-sans noarch 0:4.3-3.fc45 fedora 11.9 KiB double-conversion x86_64 0:3.4.0-4.fc45 fedora 101.8 KiB duktape x86_64 0:2.7.0-12.fc45 fedora 623.7 KiB emacs-filesystem x86_64 1:30.2-3.fc45 fedora 0.0 B expat x86_64 0:2.9.0-1.fc45 updates 349.6 KiB fdk-aac-free x86_64 0:2.0.3-3.fc45 fedora 628.3 KiB fftw-libs-single x86_64 0:3.3.10-18.fc45 fedora 3.6 MiB flac-libs x86_64 0:1.5.0-9.fc45 fedora 603.4 KiB fontconfig x86_64 0:2.18.3-2.fc45 fedora 1.0 MiB fonts-filesystem noarch 1:5.0.0-4.fc45 fedora 0.0 B freetype x86_64 0:2.14.3-3.fc45 updates 918.4 KiB fribidi x86_64 0:1.0.18-1.fc45 updates 407.3 KiB game-music-emu x86_64 0:0.6.5-2.fc45 fedora 364.1 KiB gdbm x86_64 1:1.23-12.fc45 fedora 455.9 KiB gdk-pixbuf2 x86_64 0:2.44.8-3.fc45 fedora 2.6 MiB giflib x86_64 0:6.1.3-3.fc45 fedora 122.1 KiB glib-networking x86_64 0:2.90.1-1.fc45 updates 816.4 KiB glib2 x86_64 0:2.90.1-1.fc45 updates 15.7 MiB glx-utils x86_64 0:9.0.0-12.fc45 fedora 418.1 KiB glycin-libs x86_64 0:2.2.6-1.fc45 updates 4.8 MiB glycin-loaders x86_64 0:2.2.6-1.fc45 updates 15.0 MiB google-noto-fonts-common noarch 0:20260601-3.fc45 fedora 17.7 KiB google-noto-sans-vf-fonts noarch 0:20260601-3.fc45 fedora 1.4 MiB gpgme x86_64 0:2.0.1-6.fc45 fedora 621.9 KiB gpgmepp x86_64 1:2.0.0-2.fc45 fedora 613.9 KiB graphene x86_64 0:1.10.8-6.fc45 fedora 158.3 KiB graphite2 x86_64 0:1.3.14-22.fc45 fedora 191.4 KiB gsettings-desktop-schemas x86_64 0:51.0-1.fc45 fedora 6.7 MiB gsm x86_64 0:1.0.24-3.fc45 fedora 65.7 KiB gssdp x86_64 0:1.6.6-3.fc45 fedora 147.1 KiB gstreamer1 x86_64 0:1.28.9-1.fc45 updates 5.4 MiB gstreamer1-plugins-bad-free-libs x86_64 0:1.28.9-1.fc45 updates 3.6 MiB gstreamer1-plugins-base x86_64 0:1.28.9-1.fc45 updates 7.5 MiB gtk-update-icon-cache x86_64 0:3.24.52-6.fc45 fedora 62.0 KiB gtk3 x86_64 0:3.24.52-6.fc45 fedora 22.8 MiB gupnp x86_64 0:1.6.10-4.fc45 fedora 312.0 KiB gupnp-igd x86_64 0:1.6.0-15.fc45 fedora 70.6 KiB harfbuzz x86_64 0:15.0.0-2.fc45 updates 3.5 MiB hicolor-icon-theme noarch 0:0.18-6.fc45 fedora 72.4 KiB highway x86_64 0:1.3.0-3.fc45 fedora 5.6 MiB hwdata noarch 0:0.413-1.fc45 updates 10.2 MiB ilbc x86_64 0:3.0.4-21.fc45 fedora 91.3 KiB iso-codes noarch 0:4.20.1-4.fc45 fedora 22.3 MiB jasper-libs x86_64 0:4.2.8-3.fc45 fedora 349.7 KiB jbigkit-libs x86_64 0:2.1-34.fc45 fedora 117.2 KiB json-glib x86_64 0:1.10.8-11.fc45 fedora 596.2 KiB jsoncpp x86_64 0:1.9.6-3.fc44 fedora 285.6 KiB lame-libs x86_64 0:4.0-1.fc45 fedora 918.8 KiB lcms2 x86_64 0:2.16-8.fc45 fedora 445.8 KiB leptonica x86_64 0:1.87.0-5.fc45 fedora 3.2 MiB libICE x86_64 0:1.1.2-5.fc45 fedora 198.4 KiB libSM x86_64 0:1.2.5-5.fc45 fedora 100.9 KiB libX11 x86_64 0:1.8.13-3.fc45 fedora 1.3 MiB libX11-common noarch 0:1.8.13-3.fc45 fedora 1.1 MiB libX11-xcb x86_64 0:1.8.13-3.fc45 fedora 10.8 KiB libXau x86_64 0:1.0.12-5.fc45 fedora 72.8 KiB libXcomposite x86_64 0:0.4.6-8.fc45 fedora 44.3 KiB libXcursor x86_64 0:1.2.3-5.fc45 fedora 53.3 KiB libXdamage x86_64 0:1.1.6-8.fc45 fedora 39.5 KiB libXext x86_64 0:1.3.6-6.fc45 fedora 89.9 KiB libXfixes x86_64 0:6.0.1-8.fc45 fedora 30.0 KiB libXft x86_64 0:2.3.8-11.fc45 fedora 168.3 KiB libXi x86_64 0:1.8.4-1.fc45 updates 80.6 KiB libXinerama x86_64 0:1.1.5-11.fc45 fedora 14.8 KiB libXrandr x86_64 0:1.5.4-8.fc45 fedora 51.7 KiB libXrender x86_64 0:0.9.12-5.fc45 fedora 49.9 KiB libXtst x86_64 0:1.2.5-5.fc45 fedora 33.4 KiB libXv x86_64 0:1.0.13-5.fc45 fedora 25.9 KiB libXxf86vm x86_64 0:1.1.6-5.fc45 fedora 25.1 KiB libaom x86_64 0:3.15.3-1.fc45 updates 5.4 MiB libaribcaption x86_64 0:1.1.1-5.fc45 fedora 256.1 KiB libasyncns x86_64 0:0.8-35.fc45 fedora 59.4 KiB libavcodec-free x86_64 0:9.0.2-4.fc45 updates 11.2 MiB libavformat-free x86_64 0:9.0.2-4.fc45 updates 2.9 MiB libavutil-free x86_64 0:9.0.2-4.fc45 updates 983.4 KiB libb2 x86_64 0:0.98.1-16.fc45 fedora 41.9 KiB libbluray x86_64 0:1.4.0-5.fc45 fedora 322.4 KiB libchromaprint x86_64 0:1.6.1-2.fc45 fedora 73.8 KiB libcloudproviders x86_64 0:0.4.1-1.fc45 fedora 124.0 KiB libdatrie x86_64 0:0.2.14-3.fc45 fedora 57.7 KiB libdav1d x86_64 0:1.5.5-1.fc45 updates 1.8 MiB libdecor x86_64 0:0.2.5-3.fc45 fedora 172.9 KiB libdrm x86_64 0:2.4.134-2.fc45 fedora 405.9 KiB libdvdnav x86_64 0:7.0.0-2.fc45 fedora 124.9 KiB libdvdread x86_64 0:7.1.1-1.fc45 fedora 204.2 KiB libebur128 x86_64 0:1.2.6-16.fc45 fedora 39.2 KiB libedit x86_64 0:3.1-60.20260512cvs.fc45 fedora 248.3 KiB libepoxy x86_64 0:1.5.10-13.fc45 fedora 1.1 MiB libevdev x86_64 0:1.13.7-1.fc45 fedora 85.9 KiB libfyaml x86_64 0:0.8-10.fc45 fedora 490.3 KiB libglvnd x86_64 1:1.7.0-10.fc45 fedora 526.1 KiB libglvnd-egl x86_64 1:1.7.0-10.fc45 fedora 68.6 KiB libglvnd-glx x86_64 1:1.7.0-10.fc45 fedora 597.1 KiB libglvnd-opengl x86_64 1:1.7.0-10.fc45 fedora 144.7 KiB libgudev x86_64 0:238-10.fc45 fedora 87.6 KiB libgusb x86_64 0:0.4.9-6.fc45 fedora 162.0 KiB libheif x86_64 0:1.23.7-1.fc45 updates 2.4 MiB libicu x86_64 0:78.3-9.fc45 updates 37.8 MiB libinput x86_64 0:1.32.0-1.fc45 fedora 712.5 KiB libjpeg-turbo x86_64 0:3.1.4.1-2.fc45 fedora 821.8 KiB libjxl x86_64 1:0.11.2-3.fc45 updates 4.1 MiB liblc3 x86_64 0:1.1.3-9.fc45 fedora 170.7 KiB libldac x86_64 0:2.0.2.6-1.fc45 fedora 77.9 KiB libldb x86_64 2:4.25.1-1.fc45 updates 465.7 KiB liblerc x86_64 0:4.3.0-1.fc45 updates 665.2 KiB libmng x86_64 0:2.0.3-26.fc45 fedora 553.8 KiB libmodplug x86_64 1:0.8.9.0-30.fc45 fedora 367.1 KiB libnice x86_64 0:0.1.23-3.fc45 fedora 510.0 KiB libnsl2 x86_64 0:2.0.1-6.fc45 fedora 57.7 KiB libogg x86_64 2:1.3.6-4.fc45 fedora 49.5 KiB libopenjph x86_64 0:0.31.0-1.fc45 fedora 510.5 KiB libopenmpt x86_64 0:0.8.10-1.fc45 updates 1.9 MiB libpciaccess x86_64 0:0.16-18.fc45 fedora 48.4 KiB libpng x86_64 2:1.6.59-1.fc45 updates 253.7 KiB libproxy x86_64 0:0.5.12-3.fc45 fedora 106.1 KiB libpwquality x86_64 0:1.4.5-18.fc45 fedora 412.7 KiB librabbitmq x86_64 0:0.18.1-1.fc45 updates 93.5 KiB librist x86_64 0:0.2.11-2.fc45 fedora 182.1 KiB librsvg2 x86_64 0:2.63.4-1.fc45 updates 5.0 MiB libsbc x86_64 0:2.2-1.fc45 updates 93.3 KiB libseccomp x86_64 0:2.6.1-3.fc45 fedora 222.2 KiB libsmbclient x86_64 2:4.25.1-1.fc45 updates 171.8 KiB libsndfile x86_64 0:1.2.2-12.fc45 fedora 553.9 KiB libsodium x86_64 0:1.0.22-2.fc45 fedora 481.5 KiB libsoup3 x86_64 0:3.8.1-1.fc45 updates 1.2 MiB libstemmer x86_64 0:3.1.1-2.fc45 fedora 673.5 KiB libswresample-free x86_64 0:9.0.2-4.fc45 updates 155.2 KiB libswscale-free x86_64 0:9.0.2-4.fc45 updates 1.1 MiB libtalloc x86_64 0:2.5.0-2.fc45 fedora 64.0 KiB libtdb x86_64 0:1.4.15-4.fc45 fedora 108.4 KiB libtevent x86_64 0:0.17.2-2.fc45 fedora 105.4 KiB libthai x86_64 0:0.1.30-3.fc45 fedora 800.9 KiB libtheora x86_64 1:1.1.1-42.fc45 fedora 485.0 KiB libtiff x86_64 0:4.7.2-3.fc45 updates 644.5 KiB libtinysparql x86_64 0:3.12.0-2.fc45 fedora 1.0 MiB libtirpc x86_64 0:1.3.8-0.fc45 fedora 208.2 KiB libudfread x86_64 0:1.2.0-4.fc45 fedora 62.0 KiB libunwind x86_64 0:1.8.3-4.fc45 fedora 198.0 KiB libva x86_64 0:2.24.1-2.fc45 fedora 346.0 KiB libvdpau x86_64 0:1.5-12.fc45 fedora 20.6 KiB libvisual x86_64 1:0.4.2-4.fc44 fedora 464.5 KiB libvmaf x86_64 0:3.2.1-1.fc45 fedora 1.2 MiB libvorbis x86_64 1:1.3.7-21.fc45 fedora 837.0 KiB libvpl x86_64 1:2.17.0-2.fc45 fedora 433.7 KiB libvpx x86_64 0:1.17.0-1.fc45 fedora 3.3 MiB libwacom x86_64 0:2.19.0-2.fc45 fedora 106.1 KiB libwacom-data noarch 0:2.19.0-2.fc45 fedora 1.4 MiB libwayland-client x86_64 0:1.26.0-3.fc45 fedora 66.0 KiB libwayland-cursor x86_64 0:1.26.0-3.fc45 fedora 37.2 KiB libwayland-egl x86_64 0:1.26.0-3.fc45 fedora 12.3 KiB libwbclient x86_64 2:4.25.1-1.fc45 updates 71.0 KiB libwebp x86_64 0:1.6.0-4.fc45 fedora 968.1 KiB libxcb x86_64 0:1.17.0-8.fc45 fedora 1.1 MiB libxkbcommon x86_64 0:1.13.1-4.fc45 fedora 432.2 KiB libxkbcommon-x11 x86_64 0:1.13.1-4.fc45 fedora 39.5 KiB libxkbfile x86_64 0:1.1.3-6.fc45 fedora 201.8 KiB libxmlb x86_64 0:0.3.30-1.fc45 updates 292.7 KiB libxshmfence x86_64 0:1.3.2-9.fc45 fedora 12.3 KiB libxslt x86_64 0:1.1.43-10.fc45 fedora 471.8 KiB llvm-filesystem x86_64 0:23.1.6-1.fc45 updates 0.0 B llvm-libs x86_64 0:23.1.6-1.fc45 updates 146.1 MiB lm_sensors-libs x86_64 0:3.6.0-25.fc45 fedora 89.7 KiB lmdb-libs x86_64 0:0.9.34-3.fc45 fedora 110.0 KiB lpcnetfreedv x86_64 0:0.5-11.fc45 fedora 14.8 MiB lzo x86_64 0:2.10-17.fc45 fedora 178.8 KiB mesa-dri-drivers x86_64 0:26.2.7-1.fc45 updates 53.3 MiB mesa-filesystem x86_64 0:26.2.7-1.fc45 updates 3.6 KiB mesa-libEGL x86_64 0:26.2.7-1.fc45 updates 398.5 KiB mesa-libGL x86_64 0:26.2.7-1.fc45 updates 378.3 KiB mesa-libgbm x86_64 0:26.2.7-1.fc45 updates 19.5 KiB minizip-ng-compat x86_64 0:4.1.0-5.fc45 fedora 146.1 KiB mpdecimal x86_64 0:4.0.1-4.fc45 fedora 221.2 KiB mpg123-libs x86_64 0:1.33.6-3.fc45 fedora 830.2 KiB mtdev x86_64 0:1.1.6-13.fc45 fedora 29.1 KiB nettle3.10 x86_64 0:3.10.1-7.fc45 fedora 721.1 KiB ngtcp2-crypto-gnutls x86_64 0:1.22.1-3.fc45 fedora 43.5 KiB noopenh264 x86_64 0:2.6.0-5.fc45 fedora 39.0 KiB nspr x86_64 0:4.41.0-1.fc45 updates 327.1 KiB nss x86_64 0:3.134.0-1.fc45 updates 2.0 MiB nss-softokn x86_64 0:3.134.0-1.fc45 updates 2.1 MiB nss-softokn-freebl x86_64 0:3.134.0-1.fc45 updates 1.1 MiB nss-sysinit x86_64 0:3.134.0-1.fc45 updates 22.0 KiB nss-util x86_64 0:3.134.0-1.fc45 updates 208.8 KiB openapv-libs x86_64 0:1.1.3.0-1.fc45 updates 149.7 KiB opencore-amr x86_64 0:0.1.6-11.fc45 fedora 352.6 KiB openjpeg x86_64 0:2.5.4-5.fc45 updates 464.3 KiB openpgm x86_64 0:5.3.128-7.fc45 fedora 316.4 KiB openxr-libs x86_64 0:1.1.65-1.fc45 updates 276.7 KiB opus x86_64 0:1.6-3.fc45 fedora 463.7 KiB orc x86_64 0:0.4.41-4.fc45 fedora 722.0 KiB pam x86_64 0:1.7.2-4.fc45 fedora 1.6 MiB pango x86_64 0:1.58.2-1.fc45 fedora 1.0 MiB pcre2-utf16 x86_64 0:10.49-1.fc45 updates 659.2 KiB pipewire-libs x86_64 0:1.6.12-1.fc45 updates 9.7 MiB pixman x86_64 0:0.46.2-4.fc45 fedora 718.3 KiB poly2tri x86_64 0:0.0^20130501hg26242d0aa7b8-8.fc45 fedora 59.8 KiB poppler x86_64 0:26.08.0-2.fc45 updates 4.1 MiB poppler-data noarch 0:0.4.11-12.fc45 fedora 12.3 MiB pugixml x86_64 0:1.16-2.fc45 fedora 286.7 KiB pulseaudio-libs x86_64 0:17.0-11.fc45 fedora 3.4 MiB pyproject-rpm-macros noarch 0:1.24.0-1.fc45 updates 169.0 KiB python-pip-wheel noarch 0:26.1.2-5.fc45 fedora 1.2 MiB python-rpm-macros noarch 0:3.15-2.fc45 fedora 28.0 KiB python3 x86_64 0:3.15.2-1.fc45 updates 28.7 KiB python3-iniconfig noarch 0:2.3.0-5.fc45 fedora 49.6 KiB python3-libs x86_64 0:3.15.2-1.fc45 updates 48.3 MiB python3-packaging noarch 0:26.2-4.fc45 fedora 1.0 MiB python3-pluggy noarch 0:1.6.0-8.fc45 fedora 216.0 KiB python3-pygments noarch 0:2.20.0-5.fc45 fedora 11.3 MiB python3-rpm-generators noarch 0:14-35.fc45 fedora 81.9 KiB python3-rpm-macros noarch 0:3.15-2.fc45 fedora 6.5 KiB python3-shiboken6 x86_64 0:6.11.2-3.fc45 updates 647.7 KiB qpdf-libs x86_64 0:12.4.2-1.fc45 updates 3.1 MiB qt6-filesystem x86_64 0:6.11.2-1.fc45 fedora 0.0 B qt6-qt3d x86_64 0:6.11.2-1.fc45 fedora 15.3 MiB qt6-qtbase x86_64 0:6.11.2-3.fc45 fedora 13.9 MiB qt6-qtbase-common noarch 0:6.11.2-3.fc45 fedora 76.0 B qt6-qtbase-gui x86_64 0:6.11.2-3.fc45 fedora 27.4 MiB qt6-qtcharts x86_64 0:6.11.2-1.fc45 fedora 3.5 MiB qt6-qtconnectivity x86_64 0:6.11.2-1.fc45 fedora 1.6 MiB qt6-qtdatavis3d x86_64 0:6.11.2-1.fc45 fedora 2.4 MiB qt6-qtdeclarative x86_64 0:6.11.2-3.fc45 updates 59.3 MiB qt6-qtgraphs x86_64 0:6.11.2-1.fc45 fedora 3.9 MiB qt6-qthttpserver x86_64 0:6.11.2-1.fc45 fedora 337.9 KiB qt6-qtimageformats x86_64 0:6.11.2-1.fc45 fedora 435.4 KiB qt6-qtlocation x86_64 0:6.11.2-1.fc45 fedora 2.9 MiB qt6-qtmultimedia x86_64 0:6.11.2-2.fc45 fedora 4.4 MiB qt6-qtnetworkauth x86_64 0:6.11.2-1.fc45 fedora 375.9 KiB qt6-qtpdf x86_64 0:6.11.2-4.fc45 fedora 24.4 MiB qt6-qtpositioning x86_64 0:6.11.2-1.fc45 fedora 1.6 MiB qt6-qtquick3d x86_64 0:6.11.2-1.fc45 fedora 15.6 MiB qt6-qtquicktimeline x86_64 0:6.11.2-1.fc45 fedora 308.2 KiB qt6-qtremoteobjects x86_64 0:6.11.2-1.fc45 fedora 1.6 MiB qt6-qtscxml x86_64 0:6.11.2-1.fc45 fedora 1.9 MiB qt6-qtsensors x86_64 0:6.11.2-1.fc45 fedora 963.7 KiB qt6-qtserialbus x86_64 0:6.11.2-1.fc45 fedora 979.6 KiB qt6-qtserialport x86_64 0:6.11.2-1.fc45 fedora 230.3 KiB qt6-qtshadertools x86_64 0:6.11.2-1.fc45 fedora 7.0 MiB qt6-qtspeech x86_64 0:6.11.2-1.fc45 fedora 375.9 KiB qt6-qtsvg x86_64 0:6.11.2-1.fc45 fedora 947.8 KiB qt6-qttools x86_64 0:6.11.2-2.fc45 updates 921.0 KiB qt6-qttools-common noarch 0:6.11.2-2.fc45 updates 7.5 KiB qt6-qttools-libs-designer x86_64 0:6.11.2-2.fc45 updates 6.0 MiB qt6-qttools-libs-help x86_64 0:6.11.2-2.fc45 updates 631.1 KiB qt6-qtwebchannel x86_64 0:6.11.2-1.fc45 fedora 459.5 KiB qt6-qtwebengine x86_64 0:6.11.2-4.fc45 fedora 276.9 MiB qt6-qtwebsockets x86_64 0:6.11.2-1.fc45 fedora 328.2 KiB qt6-qtwebview x86_64 0:6.11.2-1.fc45 fedora 288.7 KiB rav1e-libs x86_64 0:0.8.1-4.fc45 fedora 3.0 MiB re2 x86_64 2:20251105-19.fc45 fedora 607.2 KiB samba-client-libs x86_64 2:4.25.1-1.fc45 updates 11.4 MiB samba-common noarch 2:4.25.1-1.fc45 updates 207.0 KiB samba-core-libs x86_64 2:4.25.1-1.fc45 updates 1.7 MiB samba-ndr-libs x86_64 2:4.25.1-1.fc45 updates 4.7 MiB sdl2-compat x86_64 0:2.32.74-1.fc45 fedora 412.7 KiB shared-mime-info x86_64 0:2.5.1-3.fc45 fedora 6.6 MiB snappy x86_64 0:1.2.2-6.fc45 fedora 79.9 KiB soxr x86_64 0:0.1.3-22.fc45 fedora 191.3 KiB spandsp x86_64 0:0.0.6-23.fc45 fedora 860.4 KiB speex x86_64 0:1.2.0-22.fc45 fedora 128.4 KiB spirv-tools-libs x86_64 0:2026.2-3.fc45 fedora 6.3 MiB srt-libs x86_64 0:1.5.7-1.fc45 fedora 1.0 MiB svt-av1-libs x86_64 0:3.1.2-3.fc45 fedora 5.6 MiB systemd x86_64 0:262.1-1.fc45 updates 14.4 MiB systemd-rpm-macros noarch 0:262.1-1.fc45 updates 8.5 KiB systemd-shared x86_64 0:262.1-1.fc45 updates 6.2 MiB tesseract-common noarch 0:5.5.4-1.fc45 updates 14.7 KiB tesseract-libs x86_64 0:5.5.4-1.fc45 updates 3.4 MiB tesseract-tessdata-doc noarch 0:4.1.0-13.fc45 fedora 15.0 KiB tslib x86_64 0:1.24-3.fc45 fedora 406.8 KiB twolame-libs x86_64 0:0.4.0-10.fc45 fedora 165.4 KiB tzdata noarch 0:2026f-1.fc45 updates 1.3 MiB vo-amrwbenc x86_64 0:0.1.3-25.fc45 fedora 153.8 KiB vulkan-loader x86_64 0:1.4.350.0-2.fc45 fedora 594.0 KiB webrtc-audio-processing x86_64 0:2.1-11.fc45 fedora 1.1 MiB xcb-util x86_64 0:0.4.1-10.fc45 fedora 26.2 KiB xcb-util-cursor x86_64 0:0.1.6-3.fc45 fedora 27.1 KiB xcb-util-image x86_64 0:0.4.1-10.fc45 fedora 26.0 KiB xcb-util-keysyms x86_64 0:0.4.1-10.fc45 fedora 16.5 KiB xcb-util-renderutil x86_64 0:0.3.10-10.fc45 fedora 24.2 KiB xcb-util-wm x86_64 0:0.4.2-10.fc45 fedora 77.0 KiB xevd-libs x86_64 0:0.7.0-2.fc45 fedora 384.0 KiB xeve-libs x86_64 0:0.7.0-2.fc45 fedora 916.8 KiB xkeyboard-config noarch 0:2.48-4.fc45 fedora 6.4 MiB xml-common noarch 0:0.6.3-70.fc45 fedora 78.4 KiB xprop x86_64 0:1.2.8-6.fc45 fedora 54.5 KiB xvidcore x86_64 0:1.3.7-20.fc45 fedora 882.2 KiB zeromq x86_64 0:4.3.5-24.fc45 fedora 945.7 KiB zvbi x86_64 0:0.2.46-1.fc45 updates 1.2 MiB Transaction Summary: Installing: 330 packages Total size of inbound packages is 369 MiB. Need to download 369 MiB. After this operation, 1 GiB extra will be used (install 1 GiB, remove 0 B). [ 1/330] desktop-file-utils-0:0.28-8.f 100% | 1.2 MiB/s | 70.3 KiB | 00m00s [ 2/330] appstream-0:1.1.3-4.fc45.x86_ 100% | 11.0 MiB/s | 949.8 KiB | 00m00s [ 3/330] tesseract-langpack-eng-0:4.1. 100% | 11.6 MiB/s | 1.7 MiB | 00m00s [ 4/330] python3-pytest-0:9.1.1-1.fc45 100% | 16.0 MiB/s | 2.5 MiB | 00m00s [ 5/330] poppler-utils-0:26.08.0-2.fc4 100% | 1.1 MiB/s | 317.8 KiB | 00m00s [ 6/330] python3-devel-0:3.15.2-1.fc45 100% | 1.5 MiB/s | 492.2 KiB | 00m00s [ 7/330] qpdf-0:12.4.2-1.fc45.x86_64 100% | 1.6 MiB/s | 113.1 KiB | 00m00s [ 8/330] emacs-filesystem-1:30.2-3.fc4 100% | 539.8 KiB/s | 8.1 KiB | 00m00s [ 9/330] tesseract-0:5.5.4-1.fc45.x86_ 100% | 905.9 KiB/s | 49.8 KiB | 00m00s [ 10/330] python3-iniconfig-0:2.3.0-5.f 100% | 1.6 MiB/s | 25.8 KiB | 00m00s [ 11/330] python3-packaging-0:26.2-4.fc 100% | 13.7 MiB/s | 238.0 KiB | 00m00s [ 12/330] python3-pluggy-0:1.6.0-8.fc45 100% | 3.7 MiB/s | 61.3 KiB | 00m00s [ 13/330] tesseract-tessdata-doc-0:4.1. 100% | 889.2 KiB/s | 13.3 KiB | 00m00s [ 14/330] python3-pygments-0:2.20.0-5.f 100% | 85.8 MiB/s | 2.7 MiB | 00m00s [ 15/330] libfyaml-0:0.8-10.fc45.x86_64 100% | 11.5 MiB/s | 212.4 KiB | 00m00s [ 16/330] libstemmer-0:3.1.1-2.fc45.x86 100% | 9.4 MiB/s | 153.9 KiB | 00m00s [ 17/330] cairo-0:1.18.6-1.fc45.x86_64 100% | 29.6 MiB/s | 757.6 KiB | 00m00s [ 18/330] lcms2-0:2.16-8.fc45.x86_64 100% | 10.9 MiB/s | 190.3 KiB | 00m00s [ 19/330] python3-pyside6-0:6.11.2-3.fc 100% | 17.2 MiB/s | 10.3 MiB | 00m01s [ 20/330] poppler-0:26.08.0-2.fc45.x86_ 100% | 7.8 MiB/s | 1.4 MiB | 00m00s [ 21/330] qt6-qtbase-0:6.11.2-3.fc45.x8 100% | 122.3 MiB/s | 4.4 MiB | 00m00s [ 22/330] qt6-qt3d-0:6.11.2-1.fc45.x86_ 100% | 70.2 MiB/s | 3.9 MiB | 00m00s [ 23/330] qt6-qtcharts-0:6.11.2-1.fc45. 100% | 44.8 MiB/s | 872.5 KiB | 00m00s [ 24/330] qt6-qtconnectivity-0:6.11.2-1 100% | 31.3 MiB/s | 544.0 KiB | 00m00s [ 25/330] qt6-qtbase-gui-0:6.11.2-3.fc4 100% | 170.4 MiB/s | 8.7 MiB | 00m00s [ 26/330] qt6-qtdatavis3d-0:6.11.2-1.fc 100% | 38.3 MiB/s | 667.2 KiB | 00m00s [ 27/330] qt6-qtgraphs-0:6.11.2-1.fc45. 100% | 62.6 MiB/s | 1.1 MiB | 00m00s [ 28/330] qt6-qthttpserver-0:6.11.2-1.f 100% | 7.8 MiB/s | 128.3 KiB | 00m00s [ 29/330] qt6-qtlocation-0:6.11.2-1.fc4 100% | 43.9 MiB/s | 763.6 KiB | 00m00s [ 30/330] qt6-qtmultimedia-0:6.11.2-2.f 100% | 73.2 MiB/s | 1.5 MiB | 00m00s [ 31/330] qt6-qtnetworkauth-0:6.11.2-1. 100% | 8.3 MiB/s | 136.0 KiB | 00m00s [ 32/330] qt6-qtpositioning-0:6.11.2-1. 100% | 28.4 MiB/s | 466.0 KiB | 00m00s [ 33/330] python3-libs-0:3.15.2-1.fc45. 100% | 35.9 MiB/s | 11.2 MiB | 00m00s [ 34/330] qt6-qtpdf-0:6.11.2-4.fc45.x86 100% | 148.9 MiB/s | 8.3 MiB | 00m00s [ 35/330] qt6-qtquick3d-0:6.11.2-1.fc45 100% | 133.3 MiB/s | 5.7 MiB | 00m00s [ 36/330] qt6-qtremoteobjects-0:6.11.2- 100% | 26.4 MiB/s | 539.7 KiB | 00m00s [ 37/330] qt6-qtscxml-0:6.11.2-1.fc45.x 100% | 36.7 MiB/s | 600.5 KiB | 00m00s [ 38/330] qt6-qtsensors-0:6.11.2-1.fc45 100% | 14.3 MiB/s | 233.9 KiB | 00m00s [ 39/330] qt6-qtserialbus-0:6.11.2-1.fc 100% | 17.4 MiB/s | 321.2 KiB | 00m00s [ 40/330] qt6-qtserialport-0:6.11.2-1.f 100% | 4.9 MiB/s | 81.0 KiB | 00m00s [ 41/330] qt6-qtspeech-0:6.11.2-1.fc45. 100% | 7.4 MiB/s | 121.5 KiB | 00m00s [ 42/330] qt6-qtwebchannel-0:6.11.2-1.f 100% | 10.0 MiB/s | 163.2 KiB | 00m00s [ 43/330] qt6-qtsvg-0:6.11.2-1.fc45.x86 100% | 17.3 MiB/s | 319.3 KiB | 00m00s [ 44/330] qt6-qtwebsockets-0:6.11.2-1.f 100% | 6.9 MiB/s | 112.7 KiB | 00m00s [ 45/330] qt6-qtwebview-0:6.11.2-1.fc45 100% | 5.4 MiB/s | 88.3 KiB | 00m00s [ 46/330] tesseract-libs-0:5.5.4-1.fc45 100% | 23.2 MiB/s | 1.4 MiB | 00m00s [ 47/330] qpdf-libs-0:12.4.2-1.fc45.x86 100% | 13.8 MiB/s | 1.0 MiB | 00m00s [ 48/330] leptonica-0:1.87.0-5.fc45.x86 100% | 69.9 MiB/s | 1.3 MiB | 00m00s [ 49/330] fontconfig-0:2.18.3-2.fc45.x8 100% | 19.7 MiB/s | 382.4 KiB | 00m00s [ 50/330] gpgmepp-1:2.0.0-2.fc45.x86_64 100% | 11.4 MiB/s | 187.1 KiB | 00m00s [ 51/330] libjpeg-turbo-0:3.1.4.1-2.fc4 100% | 13.9 MiB/s | 242.6 KiB | 00m00s [ 52/330] poppler-data-0:0.4.11-12.fc45 100% | 98.3 MiB/s | 2.0 MiB | 00m00s [ 53/330] libXext-0:1.3.6-6.fc45.x86_64 100% | 2.4 MiB/s | 40.1 KiB | 00m00s [ 54/330] libX11-0:1.8.13-3.fc45.x86_64 100% | 31.5 MiB/s | 677.4 KiB | 00m00s [ 55/330] libXrender-0:0.9.12-5.fc45.x8 100% | 1.7 MiB/s | 27.8 KiB | 00m00s [ 56/330] libxcb-0:1.17.0-8.fc45.x86_64 100% | 13.7 MiB/s | 237.9 KiB | 00m00s [ 57/330] lzo-0:2.10-17.fc45.x86_64 100% | 4.3 MiB/s | 70.6 KiB | 00m00s [ 58/330] pixman-0:0.46.2-4.fc45.x86_64 100% | 16.1 MiB/s | 296.7 KiB | 00m00s [ 59/330] mpdecimal-0:4.0.1-4.fc45.x86_ 100% | 6.0 MiB/s | 98.5 KiB | 00m00s [ 60/330] python-pip-wheel-0:26.1.2-5.f 100% | 47.0 MiB/s | 1.2 MiB | 00m00s [ 61/330] qt6-qtwebengine-0:6.11.2-4.fc 100% | 312.4 MiB/s | 94.6 MiB | 00m00s [ 62/330] qt6-qtimageformats-0:6.11.2-1 100% | 1.3 MiB/s | 128.8 KiB | 00m00s [ 63/330] qt6-qtshadertools-0:6.11.2-1. 100% | 26.4 MiB/s | 2.3 MiB | 00m00s [ 64/330] double-conversion-0:3.4.0-4.f 100% | 3.3 MiB/s | 54.6 KiB | 00m00s [ 65/330] libb2-0:0.98.1-16.fc45.x86_64 100% | 1.4 MiB/s | 26.0 KiB | 00m00s [ 66/330] libproxy-0:0.5.12-3.fc45.x86_ 100% | 2.7 MiB/s | 45.0 KiB | 00m00s [ 67/330] qt6-filesystem-0:6.11.2-1.fc4 100% | 653.2 KiB/s | 10.5 KiB | 00m00s [ 68/330] qt6-qtbase-common-0:6.11.2-3. 100% | 756.4 KiB/s | 11.3 KiB | 00m00s [ 69/330] cups-libs-1:2.4.19-4.fc45.x86 100% | 14.7 MiB/s | 270.4 KiB | 00m00s [ 70/330] libICE-0:1.1.2-5.fc45.x86_64 100% | 4.9 MiB/s | 79.9 KiB | 00m00s [ 71/330] libSM-0:1.2.5-5.fc45.x86_64 100% | 2.9 MiB/s | 44.5 KiB | 00m00s [ 72/330] libX11-xcb-0:1.8.13-3.fc45.x8 100% | 677.4 KiB/s | 10.8 KiB | 00m00s [ 73/330] libdrm-0:2.4.134-2.fc45.x86_6 100% | 10.2 MiB/s | 166.7 KiB | 00m00s [ 74/330] libglvnd-egl-1:1.7.0-10.fc45. 100% | 2.4 MiB/s | 37.0 KiB | 00m00s [ 75/330] libglvnd-glx-1:1.7.0-10.fc45. 100% | 7.5 MiB/s | 129.7 KiB | 00m00s [ 76/330] libglvnd-opengl-1:1.7.0-10.fc 100% | 2.3 MiB/s | 37.4 KiB | 00m00s [ 77/330] libinput-0:1.32.0-1.fc45.x86_ 100% | 17.2 MiB/s | 282.3 KiB | 00m00s [ 78/330] libwayland-client-0:1.26.0-3. 100% | 2.2 MiB/s | 35.5 KiB | 00m00s [ 79/330] libwayland-cursor-0:1.26.0-3. 100% | 1.2 MiB/s | 19.3 KiB | 00m00s [ 80/330] libwayland-egl-0:1.26.0-3.fc4 100% | 831.3 KiB/s | 12.5 KiB | 00m00s [ 81/330] libxkbcommon-0:1.13.1-4.fc45. 100% | 10.6 MiB/s | 184.8 KiB | 00m00s [ 82/330] libxkbcommon-x11-0:1.13.1-4.f 100% | 1.4 MiB/s | 22.8 KiB | 00m00s [ 83/330] mtdev-0:1.1.6-13.fc45.x86_64 100% | 1.3 MiB/s | 21.0 KiB | 00m00s [ 84/330] tslib-0:1.24-3.fc45.x86_64 100% | 9.1 MiB/s | 158.3 KiB | 00m00s [ 85/330] xcb-util-cursor-0:0.1.6-3.fc4 100% | 1.2 MiB/s | 18.9 KiB | 00m00s [ 86/330] xcb-util-image-0:0.4.1-10.fc4 100% | 1.2 MiB/s | 18.8 KiB | 00m00s [ 87/330] xcb-util-keysyms-0:0.4.1-10.f 100% | 883.6 KiB/s | 14.1 KiB | 00m00s [ 88/330] xcb-util-renderutil-0:0.3.10- 100% | 1.1 MiB/s | 17.4 KiB | 00m00s [ 89/330] xcb-util-wm-0:0.4.2-10.fc45.x 100% | 2.0 MiB/s | 30.6 KiB | 00m00s [ 90/330] libXrandr-0:1.5.4-8.fc45.x86_ 100% | 1.7 MiB/s | 27.7 KiB | 00m00s [ 91/330] libva-0:2.24.1-2.fc45.x86_64 100% | 7.5 MiB/s | 122.8 KiB | 00m00s [ 92/330] pulseaudio-libs-0:17.0-11.fc4 100% | 40.5 MiB/s | 704.9 KiB | 00m00s [ 93/330] qt6-qtquicktimeline-0:6.11.2- 100% | 5.9 MiB/s | 96.3 KiB | 00m00s [ 94/330] alsa-lib-0:1.2.16.1-2.fc45.x8 100% | 34.6 MiB/s | 566.8 KiB | 00m00s [ 95/330] libXcomposite-0:0.4.6-8.fc45. 100% | 1.5 MiB/s | 24.0 KiB | 00m00s [ 96/330] libXdamage-0:1.1.6-8.fc45.x86 100% | 1.4 MiB/s | 23.1 KiB | 00m00s [ 97/330] libXfixes-0:6.0.1-8.fc45.x86_ 100% | 1.2 MiB/s | 19.1 KiB | 00m00s [ 98/330] libXtst-0:1.2.5-5.fc45.x86_64 100% | 1.3 MiB/s | 20.9 KiB | 00m00s [ 99/330] libwebp-0:1.6.0-4.fc45.x86_64 100% | 17.8 MiB/s | 328.9 KiB | 00m00s [100/330] libxkbfile-0:1.1.3-6.fc45.x86 100% | 5.7 MiB/s | 93.2 KiB | 00m00s [101/330] libxslt-0:1.1.43-10.fc45.x86_ 100% | 11.7 MiB/s | 191.6 KiB | 00m00s [102/330] minizip-ng-compat-0:4.1.0-5.f 100% | 3.8 MiB/s | 62.8 KiB | 00m00s [103/330] opus-0:1.6-3.fc45.x86_64 100% | 15.5 MiB/s | 254.6 KiB | 00m00s [104/330] re2-2:20251105-19.fc45.x86_64 100% | 14.4 MiB/s | 250.0 KiB | 00m00s [105/330] snappy-0:1.2.2-6.fc45.x86_64 100% | 2.6 MiB/s | 43.2 KiB | 00m00s [106/330] noopenh264-0:2.6.0-5.fc45.x86 100% | 656.0 KiB/s | 21.6 KiB | 00m00s [107/330] giflib-0:6.1.3-3.fc45.x86_64 100% | 3.4 MiB/s | 55.6 KiB | 00m00s [108/330] default-fonts-core-sans-0:4.3 100% | 1.9 MiB/s | 29.1 KiB | 00m00s [109/330] fonts-filesystem-1:5.0.0-4.fc 100% | 541.9 KiB/s | 8.7 KiB | 00m00s [110/330] xml-common-0:0.6.3-70.fc45.no 100% | 2.0 MiB/s | 31.0 KiB | 00m00s [111/330] tesseract-common-0:5.5.4-1.fc 100% | 466.9 KiB/s | 24.3 KiB | 00m00s [112/330] libX11-common-0:1.8.13-3.fc45 100% | 10.7 MiB/s | 175.3 KiB | 00m00s [113/330] gpgme-0:2.0.1-6.fc45.x86_64 100% | 14.2 MiB/s | 232.3 KiB | 00m00s [114/330] libXau-0:1.0.12-5.fc45.x86_64 100% | 2.0 MiB/s | 33.5 KiB | 00m00s [115/330] jasper-libs-0:4.2.8-3.fc45.x8 100% | 10.3 MiB/s | 169.1 KiB | 00m00s [116/330] libmng-0:2.0.3-26.fc45.x86_64 100% | 11.8 MiB/s | 193.6 KiB | 00m00s [117/330] duktape-0:2.7.0-12.fc45.x86_6 100% | 10.3 MiB/s | 169.0 KiB | 00m00s [118/330] avahi-libs-0:0.9~rc2-9.fc45.x 100% | 4.3 MiB/s | 71.1 KiB | 00m00s [119/330] spirv-tools-libs-0:2026.2-3.f 100% | 59.7 MiB/s | 1.8 MiB | 00m00s [120/330] cups-filesystem-1:2.4.19-4.fc 100% | 761.5 KiB/s | 12.2 KiB | 00m00s [121/330] libpciaccess-0:0.16-18.fc45.x 100% | 1.7 MiB/s | 27.2 KiB | 00m00s [122/330] libglvnd-1:1.7.0-10.fc45.x86_ 100% | 7.0 MiB/s | 114.0 KiB | 00m00s [123/330] libevdev-0:1.13.7-1.fc45.x86_ 100% | 2.4 MiB/s | 39.0 KiB | 00m00s [124/330] libwacom-0:2.19.0-2.fc45.x86_ 100% | 3.2 MiB/s | 52.1 KiB | 00m00s [125/330] sdl2-compat-0:2.32.74-1.fc45. 100% | 8.6 MiB/s | 141.1 KiB | 00m00s [126/330] xkeyboard-config-0:2.48-4.fc4 100% | 44.7 MiB/s | 1.0 MiB | 00m00s [127/330] xcb-util-0:0.4.1-10.fc45.x86_ 100% | 542.8 KiB/s | 17.9 KiB | 00m00s [128/330] libasyncns-0:0.8-35.fc45.x86_ 100% | 1.9 MiB/s | 30.4 KiB | 00m00s [129/330] libsndfile-0:1.2.2-12.fc45.x8 100% | 12.9 MiB/s | 223.8 KiB | 00m00s [130/330] abattis-cantarell-vf-fonts-0: 100% | 7.3 MiB/s | 120.3 KiB | 00m00s [131/330] abseil-cpp-0:20260526.0-3.fc4 100% | 47.1 MiB/s | 820.8 KiB | 00m00s [132/330] google-noto-sans-vf-fonts-0:2 100% | 31.5 MiB/s | 613.8 KiB | 00m00s [133/330] libgudev-0:238-10.fc45.x86_64 100% | 2.1 MiB/s | 34.9 KiB | 00m00s [134/330] libwacom-data-0:2.19.0-2.fc45 100% | 21.2 MiB/s | 346.8 KiB | 00m00s [135/330] flac-libs-0:1.5.0-9.fc45.x86_ 100% | 12.7 MiB/s | 220.8 KiB | 00m00s [136/330] gsm-0:1.0.24-3.fc45.x86_64 100% | 2.2 MiB/s | 36.1 KiB | 00m00s [137/330] lame-libs-0:4.0-1.fc45.x86_64 100% | 16.9 MiB/s | 276.4 KiB | 00m00s [138/330] libogg-2:1.3.6-4.fc45.x86_64 100% | 2.1 MiB/s | 33.7 KiB | 00m00s [139/330] libvorbis-1:1.3.7-21.fc45.x86 100% | 11.7 MiB/s | 190.9 KiB | 00m00s [140/330] mpg123-libs-0:1.33.6-3.fc45.x 100% | 22.2 MiB/s | 363.8 KiB | 00m00s [141/330] google-noto-fonts-common-0:20 100% | 1.0 MiB/s | 16.7 KiB | 00m00s [142/330] libdecor-0:0.2.5-3.fc45.x86_6 100% | 3.7 MiB/s | 59.9 KiB | 00m00s [143/330] gtk3-0:3.24.52-6.fc45.x86_64 100% | 195.8 MiB/s | 6.1 MiB | 00m00s [144/330] pango-0:1.58.2-1.fc45.x86_64 100% | 17.1 MiB/s | 368.6 KiB | 00m00s [145/330] adwaita-icon-theme-0:51.0-1.f 100% | 24.4 MiB/s | 400.0 KiB | 00m00s [146/330] cairo-gobject-0:1.18.6-1.fc45 100% | 1.0 MiB/s | 16.7 KiB | 00m00s [147/330] colord-libs-0:1.4.8-5.fc45.x8 100% | 14.3 MiB/s | 234.6 KiB | 00m00s [148/330] gdk-pixbuf2-0:2.44.8-3.fc45.x 100% | 29.3 MiB/s | 510.6 KiB | 00m00s [149/330] SDL3-0:3.4.20-1.fc45.x86_64 100% | 15.7 MiB/s | 1.2 MiB | 00m00s [150/330] gtk-update-icon-cache-0:3.24. 100% | 2.1 MiB/s | 34.3 KiB | 00m00s [151/330] hicolor-icon-theme-0:0.18-6.f 100% | 4.3 MiB/s | 65.8 KiB | 00m00s [152/330] libXcursor-0:1.2.3-5.fc45.x86 100% | 2.0 MiB/s | 32.2 KiB | 00m00s [153/330] libXinerama-0:1.1.5-11.fc45.x 100% | 885.3 KiB/s | 14.2 KiB | 00m00s [154/330] libcloudproviders-0:0.4.1-1.f 100% | 3.0 MiB/s | 46.7 KiB | 00m00s [155/330] libepoxy-0:1.5.10-13.fc45.x86 100% | 13.2 MiB/s | 229.9 KiB | 00m00s [156/330] libXft-0:2.3.8-11.fc45.x86_64 100% | 4.5 MiB/s | 73.7 KiB | 00m00s [157/330] libtinysparql-0:3.12.0-2.fc45 100% | 22.1 MiB/s | 361.4 KiB | 00m00s [158/330] libthai-0:0.1.30-3.fc45.x86_6 100% | 12.4 MiB/s | 216.1 KiB | 00m00s [159/330] adwaita-cursor-theme-0:51.0-1 100% | 23.2 MiB/s | 380.2 KiB | 00m00s [160/330] adwaita-icon-theme-legacy-0:4 100% | 118.0 MiB/s | 2.5 MiB | 00m00s [161/330] libgusb-0:0.4.9-6.fc45.x86_64 100% | 3.9 MiB/s | 64.7 KiB | 00m00s [162/330] shared-mime-info-0:2.5.1-3.fc 100% | 29.4 MiB/s | 481.7 KiB | 00m00s [163/330] avahi-glib-0:0.9~rc2-9.fc45.x 100% | 948.1 KiB/s | 15.2 KiB | 00m00s [164/330] json-glib-0:1.10.8-11.fc45.x8 100% | 10.7 MiB/s | 176.1 KiB | 00m00s [165/330] libdatrie-0:0.2.14-3.fc45.x86 100% | 2.1 MiB/s | 32.9 KiB | 00m00s [166/330] qt6-qtdeclarative-0:6.11.2-3. 100% | 100.0 MiB/s | 14.8 MiB | 00m00s [167/330] dbus-libs-1:1.16.4-2.fc45.x86 100% | 1.1 MiB/s | 155.9 KiB | 00m00s [168/330] expat-0:2.9.0-1.fc45.x86_64 100% | 2.6 MiB/s | 136.2 KiB | 00m00s [169/330] freetype-0:2.14.3-3.fc45.x86_ 100% | 7.7 MiB/s | 443.6 KiB | 00m00s [170/330] libicu-0:78.3-9.fc45.x86_64 100% | 48.4 MiB/s | 11.1 MiB | 00m00s [171/330] graphite2-0:1.3.14-22.fc45.x8 100% | 5.8 MiB/s | 94.8 KiB | 00m00s [172/330] glib2-0:2.90.1-1.fc45.x86_64 100% | 44.6 MiB/s | 3.2 MiB | 00m00s [173/330] harfbuzz-0:15.0.0-2.fc45.x86_ 100% | 17.9 MiB/s | 1.3 MiB | 00m00s [174/330] libavutil-free-0:9.0.2-4.fc45 100% | 7.1 MiB/s | 385.2 KiB | 00m00s [175/330] libavcodec-free-0:9.0.2-4.fc4 100% | 58.5 MiB/s | 5.3 MiB | 00m00s [176/330] libswresample-free-0:9.0.2-4. 100% | 1.3 MiB/s | 71.3 KiB | 00m00s [177/330] aribb24-0:1.0.3^20160216git5e 100% | 2.5 MiB/s | 41.0 KiB | 00m00s [178/330] codec2-0:1.2.0-10.fc45.x86_64 100% | 37.0 MiB/s | 643.4 KiB | 00m00s [179/330] fdk-aac-free-0:2.0.3-3.fc45.x 100% | 21.3 MiB/s | 349.1 KiB | 00m00s [180/330] ilbc-0:3.0.4-21.fc45.x86_64 100% | 3.7 MiB/s | 57.4 KiB | 00m00s [181/330] libaribcaption-0:1.1.1-5.fc45 100% | 7.1 MiB/s | 117.0 KiB | 00m00s [182/330] openapv-libs-0:1.1.3.0-1.fc45 100% | 1.4 MiB/s | 79.1 KiB | 00m00s [183/330] liblc3-0:1.1.3-9.fc45.x86_64 100% | 6.5 MiB/s | 105.9 KiB | 00m00s [184/330] libtheora-1:1.1.1-42.fc45.x86 100% | 10.3 MiB/s | 169.2 KiB | 00m00s [185/330] libvpl-1:2.17.0-2.fc45.x86_64 100% | 10.1 MiB/s | 165.4 KiB | 00m00s [186/330] libvpx-0:1.17.0-1.fc45.x86_64 100% | 52.6 MiB/s | 1.2 MiB | 00m00s [187/330] opencore-amr-0:0.1.6-11.fc45. 100% | 11.1 MiB/s | 182.7 KiB | 00m00s [188/330] rav1e-libs-0:0.8.1-4.fc45.x86 100% | 58.0 MiB/s | 1.0 MiB | 00m00s [189/330] speex-0:1.2.0-22.fc45.x86_64 100% | 4.4 MiB/s | 71.6 KiB | 00m00s [190/330] svt-av1-libs-0:3.1.2-3.fc45.x 100% | 106.4 MiB/s | 2.0 MiB | 00m00s [191/330] twolame-libs-0:0.4.0-10.fc45. 100% | 3.9 MiB/s | 68.2 KiB | 00m00s [192/330] vo-amrwbenc-0:0.1.3-25.fc45.x 100% | 5.2 MiB/s | 84.9 KiB | 00m00s [193/330] xevd-libs-0:0.7.0-2.fc45.x86_ 100% | 10.5 MiB/s | 172.7 KiB | 00m00s [194/330] xeve-libs-0:0.7.0-2.fc45.x86_ 100% | 17.6 MiB/s | 288.8 KiB | 00m00s [195/330] xvidcore-0:1.3.7-20.fc45.x86_ 100% | 15.4 MiB/s | 267.4 KiB | 00m00s [196/330] libvdpau-0:1.5-12.fc45.x86_64 100% | 1.0 MiB/s | 16.3 KiB | 00m00s [197/330] soxr-0:0.1.3-22.fc45.x86_64 100% | 5.4 MiB/s | 87.7 KiB | 00m00s [198/330] game-music-emu-0:0.6.5-2.fc45 100% | 10.5 MiB/s | 172.0 KiB | 00m00s [199/330] libbluray-0:1.4.0-5.fc45.x86_ 100% | 9.1 MiB/s | 149.4 KiB | 00m00s [200/330] lpcnetfreedv-0:0.5-11.fc45.x8 100% | 128.7 MiB/s | 7.3 MiB | 00m00s [201/330] libchromaprint-0:1.6.1-2.fc45 100% | 2.9 MiB/s | 44.4 KiB | 00m00s [202/330] libdvdnav-0:7.0.0-2.fc45.x86_ 100% | 3.8 MiB/s | 58.8 KiB | 00m00s [203/330] libdvdread-0:7.1.1-1.fc45.x86 100% | 6.0 MiB/s | 92.0 KiB | 00m00s [204/330] libavformat-free-0:9.0.2-4.fc 100% | 19.2 MiB/s | 1.3 MiB | 00m00s [205/330] libmodplug-1:0.8.9.0-30.fc45. 100% | 11.0 MiB/s | 181.0 KiB | 00m00s [206/330] librist-0:0.2.11-2.fc45.x86_6 100% | 5.7 MiB/s | 87.7 KiB | 00m00s [207/330] srt-libs-0:1.5.7-1.fc45.x86_6 100% | 24.6 MiB/s | 428.9 KiB | 00m00s [208/330] zeromq-0:4.3.5-24.fc45.x86_64 100% | 30.3 MiB/s | 495.6 KiB | 00m00s [209/330] libudfread-0:1.2.0-4.fc45.x86 100% | 2.1 MiB/s | 34.4 KiB | 00m00s [210/330] cjson-0:1.7.19-2.fc45.x86_64 100% | 2.0 MiB/s | 32.6 KiB | 00m00s [211/330] nettle3.10-0:3.10.1-7.fc45.x8 100% | 21.5 MiB/s | 352.8 KiB | 00m00s [212/330] libsodium-0:1.0.22-2.fc45.x86 100% | 12.8 MiB/s | 209.8 KiB | 00m00s [213/330] libunwind-0:1.8.3-4.fc45.x86_ 100% | 4.9 MiB/s | 79.5 KiB | 00m00s [214/330] libswscale-free-0:9.0.2-4.fc4 100% | 6.5 MiB/s | 352.8 KiB | 00m00s [215/330] openpgm-0:5.3.128-7.fc45.x86_ 100% | 11.3 MiB/s | 184.3 KiB | 00m00s [216/330] jbigkit-libs-0:2.1-34.fc45.x8 100% | 3.3 MiB/s | 54.1 KiB | 00m00s [217/330] libpng-2:1.6.59-1.fc45.x86_64 100% | 2.4 MiB/s | 129.2 KiB | 00m00s [218/330] libtiff-0:4.7.2-3.fc45.x86_64 100% | 4.4 MiB/s | 233.4 KiB | 00m00s [219/330] mesa-libgbm-0:26.2.7-1.fc45.x 100% | 396.7 KiB/s | 21.0 KiB | 00m00s [220/330] mesa-libEGL-0:26.2.7-1.fc45.x 100% | 2.7 MiB/s | 146.5 KiB | 00m00s [221/330] mesa-libGL-0:26.2.7-1.fc45.x8 100% | 2.7 MiB/s | 144.6 KiB | 00m00s [222/330] libxshmfence-0:1.3.2-9.fc45.x 100% | 872.5 KiB/s | 13.1 KiB | 00m00s [223/330] mesa-filesystem-0:26.2.7-1.fc 100% | 294.6 KiB/s | 15.0 KiB | 00m00s [224/330] lm_sensors-libs-0:3.6.0-25.fc 100% | 2.7 MiB/s | 41.4 KiB | 00m00s [225/330] libXxf86vm-0:1.1.6-5.fc45.x86 100% | 1.2 MiB/s | 18.0 KiB | 00m00s [226/330] mesa-dri-drivers-0:26.2.7-1.f 100% | 105.0 MiB/s | 13.9 MiB | 00m00s [227/330] nspr-0:4.41.0-1.fc45.x86_64 100% | 2.7 MiB/s | 145.0 KiB | 00m00s [228/330] nss-0:3.134.0-1.fc45.x86_64 100% | 13.2 MiB/s | 770.8 KiB | 00m00s [229/330] nss-softokn-0:3.134.0-1.fc45. 100% | 8.1 MiB/s | 453.7 KiB | 00m00s [230/330] nss-softokn-freebl-0:3.134.0- 100% | 7.2 MiB/s | 390.9 KiB | 00m00s [231/330] nss-sysinit-0:3.134.0-1.fc45. 100% | 405.3 KiB/s | 20.7 KiB | 00m00s [232/330] nss-util-0:3.134.0-1.fc45.x86 100% | 1.7 MiB/s | 91.6 KiB | 00m00s [233/330] fftw-libs-single-0:3.3.10-18. 100% | 67.7 MiB/s | 1.2 MiB | 00m00s [234/330] openjpeg-0:2.5.4-5.fc45.x86_6 100% | 3.7 MiB/s | 196.7 KiB | 00m00s [235/330] libebur128-0:1.2.6-16.fc45.x8 100% | 1.7 MiB/s | 25.4 KiB | 00m00s [236/330] libldac-0:2.0.2.6-1.fc45.x86_ 100% | 2.6 MiB/s | 43.2 KiB | 00m00s [237/330] spandsp-0:0.0.6-23.fc45.x86_6 100% | 20.4 MiB/s | 334.6 KiB | 00m00s [238/330] pipewire-libs-0:1.6.12-1.fc45 100% | 34.6 MiB/s | 2.7 MiB | 00m00s [239/330] webrtc-audio-processing-0:2.1 100% | 26.8 MiB/s | 439.7 KiB | 00m00s [240/330] poly2tri-0:0.0^20130501hg2624 100% | 2.0 MiB/s | 32.0 KiB | 00m00s [241/330] pugixml-0:1.16-2.fc45.x86_64 100% | 7.0 MiB/s | 114.9 KiB | 00m00s [242/330] jsoncpp-0:1.9.6-3.fc44.x86_64 100% | 6.7 MiB/s | 110.0 KiB | 00m00s [243/330] assimp-0:6.0.6-1.fc45.x86_64 100% | 37.2 MiB/s | 2.5 MiB | 00m00s [244/330] openxr-libs-0:1.1.65-1.fc45.x 100% | 2.1 MiB/s | 116.8 KiB | 00m00s [245/330] libnice-0:0.1.23-3.fc45.x86_6 100% | 12.6 MiB/s | 206.2 KiB | 00m00s [246/330] vulkan-loader-0:1.4.350.0-2.f 100% | 10.3 MiB/s | 168.2 KiB | 00m00s [247/330] gstreamer1-0:1.28.9-1.fc45.x8 100% | 21.8 MiB/s | 1.7 MiB | 00m00s [248/330] gstreamer1-plugins-bad-free-l 100% | 18.8 MiB/s | 1.2 MiB | 00m00s [249/330] gupnp-igd-0:1.6.0-15.fc45.x86 100% | 2.2 MiB/s | 33.7 KiB | 00m00s [250/330] gssdp-0:1.6.6-3.fc45.x86_64 100% | 3.7 MiB/s | 60.5 KiB | 00m00s [251/330] gupnp-0:1.6.10-4.fc45.x86_64 100% | 6.7 MiB/s | 109.4 KiB | 00m00s [252/330] cdparanoia-libs-0:10.2-51.fc4 100% | 3.4 MiB/s | 55.4 KiB | 00m00s [253/330] graphene-0:1.10.8-6.fc45.x86_ 100% | 3.7 MiB/s | 60.8 KiB | 00m00s [254/330] libXv-0:1.0.13-5.fc45.x86_64 100% | 1.2 MiB/s | 18.5 KiB | 00m00s [255/330] libvisual-1:0.4.2-4.fc44.x86_ 100% | 9.7 MiB/s | 158.5 KiB | 00m00s [256/330] gstreamer1-plugins-base-0:1.2 100% | 34.7 MiB/s | 2.4 MiB | 00m00s [257/330] iso-codes-0:4.20.1-4.fc45.noa 100% | 73.2 MiB/s | 4.0 MiB | 00m00s [258/330] orc-0:0.4.41-4.fc45.x86_64 100% | 12.9 MiB/s | 224.0 KiB | 00m00s [259/330] glx-utils-0:9.0.0-12.fc45.x86 100% | 4.3 MiB/s | 69.9 KiB | 00m00s [260/330] cmake-filesystem-0:4.3.0-7.fc 100% | 285.8 KiB/s | 14.9 KiB | 00m00s [261/330] bluez-libs-0:5.88-1.fc45.x86_ 100% | 1.6 MiB/s | 85.1 KiB | 00m00s [262/330] pcre2-utf16-0:10.49-1.fc45.x8 100% | 4.7 MiB/s | 257.6 KiB | 00m00s [263/330] python3-0:3.15.2-1.fc45.x86_6 100% | 546.2 KiB/s | 27.9 KiB | 00m00s [264/330] fribidi-0:1.0.18-1.fc45.x86_6 100% | 1.9 MiB/s | 105.0 KiB | 00m00s [265/330] libsoup3-0:3.8.1-1.fc45.x86_6 100% | 7.5 MiB/s | 423.3 KiB | 00m00s [266/330] libXi-0:1.8.4-1.fc45.x86_64 100% | 811.3 KiB/s | 42.2 KiB | 00m00s [267/330] hwdata-0:0.413-1.fc45.noarch 100% | 25.7 MiB/s | 1.7 MiB | 00m00s [268/330] dbus-1:1.16.4-2.fc45.x86_64 100% | 146.0 KiB/s | 7.9 KiB | 00m00s [269/330] at-spi2-atk-0:2.62.2-1.fc45.x 100% | 1.6 MiB/s | 90.0 KiB | 00m00s [270/330] at-spi2-core-0:2.62.2-1.fc45. 100% | 7.3 MiB/s | 401.8 KiB | 00m00s [271/330] xprop-0:1.2.8-6.fc45.x86_64 100% | 2.2 MiB/s | 35.3 KiB | 00m00s [272/330] atk-0:2.62.2-1.fc45.x86_64 100% | 1.5 MiB/s | 83.0 KiB | 00m00s [273/330] libseccomp-0:2.6.1-3.fc45.x86 100% | 4.6 MiB/s | 75.6 KiB | 00m00s [274/330] glycin-libs-0:2.2.6-1.fc45.x8 100% | 27.6 MiB/s | 1.8 MiB | 00m00s [275/330] glycin-loaders-0:2.2.6-1.fc45 100% | 43.0 MiB/s | 3.4 MiB | 00m00s [276/330] libxmlb-0:0.3.30-1.fc45.x86_6 100% | 2.0 MiB/s | 122.4 KiB | 00m00s [277/330] python3-shiboken6-0:6.11.2-3. 100% | 4.9 MiB/s | 304.2 KiB | 00m00s [278/330] qt6-qttools-0:6.11.2-2.fc45.x 100% | 4.3 MiB/s | 235.5 KiB | 00m00s [279/330] qt6-qttools-common-0:6.11.2-2 100% | 211.2 KiB/s | 11.4 KiB | 00m00s [280/330] qt6-qttools-libs-help-0:6.11. 100% | 4.1 MiB/s | 221.0 KiB | 00m00s [281/330] qt6-qttools-libs-designer-0:6 100% | 43.1 MiB/s | 3.0 MiB | 00m00s [282/330] tzdata-0:2026f-1.fc45.noarch 100% | 9.8 MiB/s | 713.8 KiB | 00m00s [283/330] libsbc-0:2.2-1.fc45.x86_64 100% | 798.6 KiB/s | 49.5 KiB | 00m00s [284/330] libedit-0:3.1-60.20260512cvs. 100% | 6.7 MiB/s | 110.0 KiB | 00m00s [285/330] liblerc-0:4.3.0-1.fc45.x86_64 100% | 4.3 MiB/s | 230.8 KiB | 00m00s [286/330] glib-networking-0:2.90.1-1.fc 100% | 4.0 MiB/s | 214.9 KiB | 00m00s [287/330] libopenmpt-0:0.8.10-1.fc45.x8 100% | 12.6 MiB/s | 810.3 KiB | 00m00s [288/330] librabbitmq-0:0.18.1-1.fc45.x 100% | 857.3 KiB/s | 44.6 KiB | 00m00s [289/330] llvm-filesystem-0:23.1.6-1.fc 100% | 27.8 KiB/s | 7.5 KiB | 00m00s [290/330] llvm-libs-0:23.1.6-1.fc45.x86 100% | 116.7 MiB/s | 36.2 MiB | 00m00s [291/330] libsmbclient-2:4.25.1-1.fc45. 100% | 1.6 MiB/s | 81.7 KiB | 00m00s [292/330] samba-client-libs-2:4.25.1-1. 100% | 45.4 MiB/s | 3.3 MiB | 00m00s [293/330] samba-common-2:4.25.1-1.fc45. 100% | 3.3 MiB/s | 184.3 KiB | 00m00s [294/330] samba-core-libs-2:4.25.1-1.fc 100% | 9.5 MiB/s | 513.1 KiB | 00m00s [295/330] libtalloc-0:2.5.0-2.fc45.x86_ 100% | 2.2 MiB/s | 36.1 KiB | 00m00s [296/330] libtevent-0:0.17.2-2.fc45.x86 100% | 3.5 MiB/s | 53.2 KiB | 00m00s [297/330] libtdb-0:1.4.15-4.fc45.x86_64 100% | 3.5 MiB/s | 56.8 KiB | 00m00s [298/330] ngtcp2-crypto-gnutls-0:1.22.1 100% | 1.5 MiB/s | 24.7 KiB | 00m00s [299/330] samba-ndr-libs-2:4.25.1-1.fc4 100% | 18.9 MiB/s | 1.3 MiB | 00m00s [300/330] libvmaf-0:3.2.1-1.fc45.x86_64 100% | 19.3 MiB/s | 316.9 KiB | 00m00s [301/330] libaom-0:3.15.3-1.fc45.x86_64 100% | 30.9 MiB/s | 1.9 MiB | 00m00s [302/330] libdav1d-0:1.5.5-1.fc45.x86_6 100% | 10.7 MiB/s | 665.7 KiB | 00m00s [303/330] highway-0:1.3.0-3.fc45.x86_64 100% | 40.5 MiB/s | 705.1 KiB | 00m00s [304/330] libjxl-1:0.11.2-3.fc45.x86_64 100% | 18.2 MiB/s | 1.2 MiB | 00m00s [305/330] librsvg2-0:2.63.4-1.fc45.x86_ 100% | 29.5 MiB/s | 1.9 MiB | 00m00s [306/330] zvbi-0:0.2.46-1.fc45.x86_64 100% | 7.3 MiB/s | 443.3 KiB | 00m00s [307/330] bubblewrap-0:0.13.1-1.fc45.x8 100% | 1.2 MiB/s | 67.8 KiB | 00m00s [308/330] libopenjph-0:0.31.0-1.fc45.x8 100% | 10.1 MiB/s | 176.4 KiB | 00m00s [309/330] gsettings-desktop-schemas-0:5 100% | 50.9 MiB/s | 938.6 KiB | 00m00s [310/330] lmdb-libs-0:0.9.34-3.fc45.x86 100% | 3.9 MiB/s | 63.3 KiB | 00m00s [311/330] libheif-0:1.23.7-1.fc45.x86_6 100% | 13.1 MiB/s | 871.3 KiB | 00m00s [312/330] libldb-2:4.25.1-1.fc45.x86_64 100% | 3.7 MiB/s | 198.8 KiB | 00m00s [313/330] dbus-broker-0:37-9.fc45.x86_6 100% | 10.9 MiB/s | 179.0 KiB | 00m00s [314/330] libwbclient-2:4.25.1-1.fc45.x 100% | 914.2 KiB/s | 48.5 KiB | 00m00s [315/330] systemd-0:262.1-1.fc45.x86_64 100% | 55.9 MiB/s | 4.7 MiB | 00m00s [316/330] systemd-shared-0:262.1-1.fc45 100% | 20.1 MiB/s | 2.3 MiB | 00m00s [317/330] dbus-common-1:1.16.4-2.fc45.n 100% | 131.5 KiB/s | 14.6 KiB | 00m00s [318/330] systemd-rpm-macros-0:262.1-1. 100% | 377.4 KiB/s | 21.1 KiB | 00m00s [319/330] python-rpm-macros-0:3.15-2.fc 100% | 659.0 KiB/s | 19.8 KiB | 00m00s [320/330] pyproject-rpm-macros-0:1.24.0 100% | 1.1 MiB/s | 58.0 KiB | 00m00s [321/330] python3-rpm-generators-0:14-3 100% | 513.3 KiB/s | 28.7 KiB | 00m00s [322/330] python3-rpm-macros-0:3.15-2.f 100% | 321.8 KiB/s | 12.2 KiB | 00m00s [323/330] authselect-0:1.8.0-1.fc45.x86 100% | 8.2 MiB/s | 227.1 KiB | 00m00s [324/330] pam-0:1.7.2-4.fc45.x86_64 100% | 9.4 MiB/s | 559.9 KiB | 00m00s [325/330] libnsl2-0:2.0.1-6.fc45.x86_64 100% | 532.1 KiB/s | 29.8 KiB | 00m00s [326/330] libpwquality-0:1.4.5-18.fc45. 100% | 3.2 MiB/s | 118.4 KiB | 00m00s [327/330] libtirpc-0:1.3.8-0.fc45.x86_6 100% | 4.0 MiB/s | 99.2 KiB | 00m00s [328/330] authselect-libs-0:1.8.0-1.fc4 100% | 2.1 MiB/s | 261.0 KiB | 00m00s [329/330] gdbm-1:1.23-12.fc45.x86_64 100% | 4.0 MiB/s | 153.3 KiB | 00m00s [330/330] cracklib-0:2.10.3-2.fc45.x86_ 100% | 1.2 MiB/s | 96.6 KiB | 00m00s -------------------------------------------------------------------------------- [330/330] Total 100% | 79.2 MiB/s | 369.3 MiB | 00m05s Running transaction [ 1/332] Verify package files 100% | 265.0 B/s | 330.0 B | 00m01s [ 2/332] Prepare transaction 100% | 3.0 KiB/s | 330.0 B | 00m00s [ 3/332] Installing glib2-0:2.90.1-1.f 100% | 285.2 MiB/s | 15.7 MiB | 00m00s [ 4/332] Installing libjpeg-turbo-0:3. 100% | 402.1 MiB/s | 823.6 KiB | 00m00s [ 5/332] Installing libpng-2:1.6.59-1. 100% | 248.9 MiB/s | 254.9 KiB | 00m00s [ 6/332] Installing dbus-libs-1:1.16.4 100% | 350.3 MiB/s | 358.7 KiB | 00m00s [ 7/332] Installing libwayland-client- 100% | 65.6 MiB/s | 67.1 KiB | 00m00s [ 8/332] Installing nspr-0:4.41.0-1.fc 100% | 321.3 MiB/s | 329.0 KiB | 00m00s [ 9/332] Installing expat-0:2.9.0-1.fc 100% | 20.2 MiB/s | 351.7 KiB | 00m00s [ 10/332] Installing libtalloc-0:2.5.0- 100% | 63.6 MiB/s | 65.1 KiB | 00m00s [ 11/332] Installing libicu-0:78.3-9.fc 100% | 425.2 MiB/s | 37.8 MiB | 00m00s [ 12/332] Installing libogg-2:1.3.6-4.f 100% | 0.0 B/s | 51.0 KiB | 00m00s [ 13/332] Installing libwebp-0:1.6.0-4. 100% | 316.5 MiB/s | 972.2 KiB | 00m00s [ 14/332] Installing libX11-xcb-0:1.8.1 100% | 0.0 B/s | 11.7 KiB | 00m00s [ 15/332] Installing lcms2-0:2.16-8.fc4 100% | 436.9 MiB/s | 447.4 KiB | 00m00s [ 16/332] Installing libtevent-0:0.17.2 100% | 104.1 MiB/s | 106.6 KiB | 00m00s [ 17/332] Installing nss-util-0:3.134.0 100% | 204.8 MiB/s | 209.8 KiB | 00m00s [ 18/332] Installing openjpeg-0:2.5.4-5 100% | 227.6 MiB/s | 466.2 KiB | 00m00s [ 19/332] Installing opus-0:1.6-3.fc45. 100% | 453.9 MiB/s | 464.8 KiB | 00m00s [ 20/332] Installing libvorbis-1:1.3.7- 100% | 409.9 MiB/s | 839.6 KiB | 00m00s [ 21/332] Installing libwayland-cursor- 100% | 0.0 B/s | 38.3 KiB | 00m00s [ 22/332] Installing avahi-libs-0:0.9~r 100% | 84.8 MiB/s | 173.8 KiB | 00m00s [ 23/332] Installing shared-mime-info-0 100% | 107.9 MiB/s | 3.2 MiB | 00m00s [ 24/332] Installing python-rpm-macros- 100% | 0.0 B/s | 28.9 KiB | 00m00s [ 25/332] Installing libdav1d-0:1.5.5-1 100% | 352.0 MiB/s | 1.8 MiB | 00m00s [ 26/332] Installing libtdb-0:1.4.15-4. 100% | 107.0 MiB/s | 109.5 KiB | 00m00s [ 27/332] Installing qt6-qttools-common 100% | 0.0 B/s | 7.9 KiB | 00m00s [ 28/332] Installing mpg123-libs-0:1.33 100% | 271.1 MiB/s | 832.8 KiB | 00m00s [ 29/332] Installing libglvnd-1:1.7.0-1 100% | 515.1 MiB/s | 527.4 KiB | 00m00s [ 30/332] Installing fonts-filesystem-1 100% | 0.0 B/s | 788.0 B | 00m00s [ 31/332] Installing noopenh264-0:2.6.0 100% | 39.7 MiB/s | 40.6 KiB | 00m00s [ 32/332] Installing alsa-lib-0:1.2.16. 100% | 68.6 MiB/s | 1.5 MiB | 00m00s [ 33/332] Installing libwayland-egl-0:1 100% | 0.0 B/s | 13.4 KiB | 00m00s [ 34/332] Installing libglvnd-opengl-1: 100% | 0.0 B/s | 145.5 KiB | 00m00s [ 35/332] Installing lame-libs-0:4.0-1. 100% | 449.4 MiB/s | 920.3 KiB | 00m00s [ 36/332] Installing python3-rpm-macros 100% | 0.0 B/s | 6.8 KiB | 00m00s [ 37/332] Installing libtheora-1:1.1.1- 100% | 238.0 MiB/s | 487.4 KiB | 00m00s [ 38/332] Installing libgudev-0:238-10. 100% | 87.1 MiB/s | 89.2 KiB | 00m00s [ 39/332] Installing json-glib-0:1.10.8 100% | 198.0 MiB/s | 608.3 KiB | 00m00s [ 40/332] Installing libtirpc-0:1.3.8-0 100% | 34.2 MiB/s | 210.3 KiB | 00m00s [ 41/332] Installing libwbclient-2:4.25 100% | 70.1 MiB/s | 71.7 KiB | 00m00s [ 42/332] Installing libseccomp-0:2.6.1 100% | 218.8 MiB/s | 224.0 KiB | 00m00s [ 43/332] Installing fribidi-0:1.0.18-1 100% | 22.2 MiB/s | 409.9 KiB | 00m00s [ 44/332] Installing bluez-libs-0:5.88- 100% | 198.6 MiB/s | 203.4 KiB | 00m00s [ 45/332] Installing mesa-filesystem-0: 100% | 0.0 B/s | 4.3 KiB | 00m00s [ 46/332] Installing nettle3.10-0:3.10. 100% | 353.6 MiB/s | 724.1 KiB | 00m00s [ 47/332] Installing libdvdread-0:7.1.1 100% | 201.1 MiB/s | 205.9 KiB | 00m00s [ 48/332] Installing svt-av1-libs-0:3.1 100% | 400.5 MiB/s | 5.6 MiB | 00m00s [ 49/332] Installing rav1e-libs-0:0.8.1 100% | 379.9 MiB/s | 3.0 MiB | 00m00s [ 50/332] Installing libvpl-1:2.17.0-2. 100% | 212.7 MiB/s | 435.6 KiB | 00m00s [ 51/332] Installing liblc3-0:1.1.3-9.f 100% | 167.6 MiB/s | 171.7 KiB | 00m00s [ 52/332] Installing fdk-aac-free-0:2.0 100% | 307.5 MiB/s | 629.8 KiB | 00m00s [ 53/332] Installing gsm-0:1.0.24-3.fc4 100% | 65.7 MiB/s | 67.3 KiB | 00m00s [ 54/332] Installing abseil-cpp-0:20260 100% | 263.3 MiB/s | 2.6 MiB | 00m00s [ 55/332] Installing libevdev-0:1.13.7- 100% | 0.0 B/s | 87.0 KiB | 00m00s [ 56/332] Installing spirv-tools-libs-0 100% | 348.9 MiB/s | 6.3 MiB | 00m00s [ 57/332] Installing xml-common-0:0.6.3 100% | 79.2 MiB/s | 81.1 KiB | 00m00s [ 58/332] Installing snappy-0:1.2.2-6.f 100% | 79.6 MiB/s | 81.6 KiB | 00m00s [ 59/332] Installing mtdev-0:1.1.6-13.f 100% | 0.0 B/s | 30.3 KiB | 00m00s [ 60/332] Installing libICE-0:1.1.2-5.f 100% | 195.1 MiB/s | 199.8 KiB | 00m00s [ 61/332] Installing libstemmer-0:3.1.1 100% | 329.5 MiB/s | 674.9 KiB | 00m00s [ 62/332] Installing libSM-0:1.2.5-5.fc 100% | 49.9 MiB/s | 102.3 KiB | 00m00s [ 63/332] Installing iso-codes-0:4.20.1 100% | 341.4 MiB/s | 22.5 MiB | 00m00s [ 64/332] Installing re2-2:20251105-19. 100% | 297.1 MiB/s | 608.6 KiB | 00m00s [ 65/332] Installing webrtc-audio-proce 100% | 354.2 MiB/s | 1.1 MiB | 00m00s [ 66/332] Installing libdvdnav-0:7.0.0- 100% | 123.6 MiB/s | 126.5 KiB | 00m00s [ 67/332] Installing srt-libs-0:1.5.7-1 100% | 349.9 MiB/s | 1.0 MiB | 00m00s [ 68/332] Installing libnsl2-0:2.0.1-6. 100% | 57.5 MiB/s | 58.9 KiB | 00m00s [ 69/332] Installing libgusb-0:0.4.9-6. 100% | 159.8 MiB/s | 163.7 KiB | 00m00s [ 70/332] Installing colord-libs-0:1.4. 100% | 271.4 MiB/s | 833.6 KiB | 00m00s [ 71/332] Installing pyproject-rpm-macr 100% | 167.4 MiB/s | 171.5 KiB | 00m00s [ 72/332] Installing abattis-cantarell- 100% | 189.9 MiB/s | 194.4 KiB | 00m00s [ 73/332] Installing libopenmpt-0:0.8.1 100% | 374.8 MiB/s | 1.9 MiB | 00m00s [ 74/332] Installing libxmlb-0:0.3.30-1 100% | 16.0 MiB/s | 294.9 KiB | 00m00s [ 75/332] Installing avahi-glib-0:0.9~r 100% | 0.0 B/s | 20.3 KiB | 00m00s [ 76/332] Installing nss-softokn-freebl 100% | 358.2 MiB/s | 1.1 MiB | 00m00s [ 77/332] Installing nss-softokn-0:3.13 100% | 417.2 MiB/s | 2.1 MiB | 00m00s [ 78/332] Installing nss-sysinit-0:3.13 100% | 1.4 MiB/s | 23.1 KiB | 00m00s [ 79/332] Installing nss-0:3.134.0-1.fc 100% | 200.2 MiB/s | 2.0 MiB | 00m00s [ 80/332] Installing libmng-0:2.0.3-26. 100% | 271.6 MiB/s | 556.3 KiB | 00m00s [ 81/332] Installing flac-libs-0:1.5.0- 100% | 296.0 MiB/s | 606.2 KiB | 00m00s [ 82/332] Installing libsndfile-0:1.2.2 100% | 271.2 MiB/s | 555.4 KiB | 00m00s [ 83/332] Installing aribb24-0:1.0.3^20 100% | 82.4 MiB/s | 84.4 KiB | 00m00s [ 84/332] Installing zvbi-0:0.2.46-1.fc 100% | 44.9 MiB/s | 1.2 MiB | 00m00s [ 85/332] Installing qpdf-libs-0:12.4.2 100% | 381.9 MiB/s | 3.1 MiB | 00m00s [ 86/332] Installing jasper-libs-0:4.2. 100% | 343.0 MiB/s | 351.3 KiB | 00m00s [ 87/332] Installing libcloudproviders- 100% | 123.0 MiB/s | 125.9 KiB | 00m00s [ 88/332] Installing graphene-0:1.10.8- 100% | 156.3 MiB/s | 160.1 KiB | 00m00s [ 89/332] Installing gsettings-desktop- 100% | 446.6 MiB/s | 6.7 MiB | 00m00s [ 90/332] Installing gdbm-1:1.23-12.fc4 100% | 23.7 MiB/s | 460.8 KiB | 00m00s [ 91/332] Installing cracklib-0:2.10.3- 100% | 12.7 MiB/s | 246.7 KiB | 00m00s [ 92/332] Installing libpwquality-0:1.4 100% | 20.8 MiB/s | 425.1 KiB | 00m00s [ 93/332] Installing authselect-libs-0: 100% | 54.6 MiB/s | 950.5 KiB | 00m00s >>> Running sysusers scriptlet: dbus-common-1:1.16.4-2.fc45.noarch >>> Finished sysusers scriptlet: dbus-common-1:1.16.4-2.fc45.noarch >>> Scriptlet output: >>> Creating group 'dbus' with GID 81. >>> Creating user 'dbus' (System Message Bus) with UID 81 and GID 81. >>> [ 94/332] Installing dbus-common-1:1.16 100% | 1.2 MiB/s | 13.6 KiB | 00m00s [ 95/332] Installing dbus-broker-0:37-9 100% | 16.2 MiB/s | 397.6 KiB | 00m00s [ 96/332] Installing dbus-1:1.16.4-2.fc 100% | 0.0 B/s | 124.0 B | 00m00s [ 97/332] Installing systemd-shared-0:2 100% | 159.8 MiB/s | 6.2 MiB | 00m00s >>> Running sysusers scriptlet: systemd-0:262.1-1.fc45.x86_64 >>> Finished sysusers scriptlet: systemd-0:262.1-1.fc45.x86_64 >>> Scriptlet output: >>> Creating group 'empower' with GID 999. >>> >>> Running sysusers scriptlet: systemd-0:262.1-1.fc45.x86_64 >>> Finished sysusers scriptlet: systemd-0:262.1-1.fc45.x86_64 >>> Scriptlet output: >>> Creating group 'systemd-journal' with GID 190. >>> >>> Running sysusers scriptlet: systemd-0:262.1-1.fc45.x86_64 >>> Finished sysusers scriptlet: systemd-0:262.1-1.fc45.x86_64 >>> Scriptlet output: >>> Creating group 'systemd-oom' with GID 998. >>> Creating user 'systemd-oom' (systemd Userspace OOM Killer) with UID 998 and GID 998. >>> [ 98/332] Installing systemd-0:262.1-1. 100% | 105.0 MiB/s | 14.6 MiB | 00m00s >>> Running sysusers scriptlet: samba-common-2:4.25.1-1.fc45.noarch >>> Finished sysusers scriptlet: samba-common-2:4.25.1-1.fc45.noarch >>> Scriptlet output: >>> Creating group 'printadmin' with GID 997. >>> [ 99/332] Installing samba-common-2:4.2 100% | 29.4 MiB/s | 210.5 KiB | 00m00s [100/332] Installing samba-core-libs-2: 100% | 336.7 MiB/s | 1.7 MiB | 00m00s [101/332] Installing samba-ndr-libs-2:4 100% | 390.9 MiB/s | 4.7 MiB | 00m00s [102/332] Installing lmdb-libs-0:0.9.34 100% | 108.7 MiB/s | 111.4 KiB | 00m00s [103/332] Installing libldb-2:4.25.1-1. 100% | 230.1 MiB/s | 471.2 KiB | 00m00s [104/332] Installing libopenjph-0:0.31. 100% | 249.8 MiB/s | 511.6 KiB | 00m00s [105/332] Installing bubblewrap-0:0.13. 100% | 8.2 MiB/s | 142.1 KiB | 00m00s [106/332] Installing highway-0:1.3.0-3. 100% | 561.7 MiB/s | 5.6 MiB | 00m00s [107/332] Installing libjxl-1:0.11.2-3. 100% | 458.4 MiB/s | 4.1 MiB | 00m00s [108/332] Installing libvmaf-0:3.2.1-1. 100% | 396.8 MiB/s | 1.2 MiB | 00m00s [109/332] Installing libaom-0:3.15.3-1. 100% | 446.3 MiB/s | 5.4 MiB | 00m00s [110/332] Installing libheif-0:1.23.7-1 100% | 397.3 MiB/s | 2.4 MiB | 00m00s [111/332] Installing ngtcp2-crypto-gnut 100% | 43.3 MiB/s | 44.4 KiB | 00m00s [112/332] Installing samba-client-libs- 100% | 379.8 MiB/s | 11.4 MiB | 00m00s [113/332] Installing libsmbclient-2:4.2 100% | 168.4 MiB/s | 172.5 KiB | 00m00s [114/332] Installing librabbitmq-0:0.18 100% | 92.4 MiB/s | 94.6 KiB | 00m00s [115/332] Installing liblerc-0:4.3.0-1. 100% | 325.6 MiB/s | 666.8 KiB | 00m00s [116/332] Installing libedit-0:3.1-60.2 100% | 244.1 MiB/s | 250.0 KiB | 00m00s [117/332] Installing llvm-filesystem-0: 100% | 0.0 B/s | 1.1 KiB | 00m00s [118/332] Installing llvm-libs-0:23.1.6 100% | 462.5 MiB/s | 146.1 MiB | 00m00s [119/332] Installing libsbc-0:2.2-1.fc4 100% | 23.0 MiB/s | 94.4 KiB | 00m00s [120/332] Installing tzdata-0:2026f-1.f 100% | 56.4 MiB/s | 1.5 MiB | 00m00s [121/332] Installing hwdata-0:0.413-1.f 100% | 508.0 MiB/s | 10.2 MiB | 00m00s [122/332] Installing libpciaccess-0:0.1 100% | 48.6 MiB/s | 49.8 KiB | 00m00s [123/332] Installing libdrm-0:2.4.134-2 100% | 200.1 MiB/s | 409.8 KiB | 00m00s [124/332] Installing pcre2-utf16-0:10.4 100% | 322.3 MiB/s | 660.0 KiB | 00m00s [125/332] Installing cmake-filesystem-0 100% | 9.1 MiB/s | 9.4 KiB | 00m00s [126/332] Installing orc-0:0.4.41-4.fc4 100% | 39.3 MiB/s | 724.5 KiB | 00m00s [127/332] Installing libvisual-1:0.4.2- 100% | 228.0 MiB/s | 467.0 KiB | 00m00s [128/332] Installing cdparanoia-libs-0: 100% | 112.0 MiB/s | 114.7 KiB | 00m00s [129/332] Installing vulkan-loader-0:1. 100% | 291.3 MiB/s | 596.6 KiB | 00m00s [130/332] Installing jsoncpp-0:1.9.6-3. 100% | 280.4 MiB/s | 287.1 KiB | 00m00s [131/332] Installing openxr-libs-0:1.1. 100% | 271.0 MiB/s | 277.5 KiB | 00m00s [132/332] Installing pugixml-0:1.16-2.f 100% | 281.4 MiB/s | 288.1 KiB | 00m00s [133/332] Installing poly2tri-0:0.0^201 100% | 59.8 MiB/s | 61.2 KiB | 00m00s [134/332] Installing assimp-0:6.0.6-1.f 100% | 228.7 MiB/s | 7.5 MiB | 00m00s [135/332] Installing libldac-0:2.0.2.6- 100% | 78.0 MiB/s | 79.9 KiB | 00m00s [136/332] Installing libebur128-0:1.2.6 100% | 0.0 B/s | 40.6 KiB | 00m00s [137/332] Installing fftw-libs-single-0 100% | 452.4 MiB/s | 3.6 MiB | 00m00s [138/332] Installing lm_sensors-libs-0: 100% | 88.7 MiB/s | 90.8 KiB | 00m00s [139/332] Installing libxshmfence-0:1.3 100% | 0.0 B/s | 13.4 KiB | 00m00s [140/332] Installing jbigkit-libs-0:2.1 100% | 116.4 MiB/s | 119.2 KiB | 00m00s [141/332] Installing libtiff-0:4.7.2-3. 100% | 315.8 MiB/s | 646.8 KiB | 00m00s [142/332] Installing spandsp-0:0.0.6-23 100% | 421.1 MiB/s | 862.5 KiB | 00m00s [143/332] Installing openpgm-0:5.3.128- 100% | 310.3 MiB/s | 317.7 KiB | 00m00s [144/332] Installing libunwind-0:1.8.3- 100% | 196.6 MiB/s | 201.3 KiB | 00m00s [145/332] Installing libsodium-0:1.0.22 100% | 235.6 MiB/s | 482.6 KiB | 00m00s [146/332] Installing zeromq-0:4.3.5-24. 100% | 46.8 MiB/s | 958.3 KiB | 00m00s [147/332] Installing cjson-0:1.7.19-2.f 100% | 21.2 MiB/s | 65.2 KiB | 00m00s [148/332] Installing librist-0:0.2.11-2 100% | 179.3 MiB/s | 183.6 KiB | 00m00s [149/332] Installing libudfread-0:1.2.0 100% | 0.0 B/s | 63.4 KiB | 00m00s [150/332] Installing libmodplug-1:0.8.9 100% | 360.3 MiB/s | 369.0 KiB | 00m00s [151/332] Installing game-music-emu-0:0 100% | 357.0 MiB/s | 365.6 KiB | 00m00s [152/332] Installing lpcnetfreedv-0:0.5 100% | 617.6 MiB/s | 14.8 MiB | 00m00s [153/332] Installing codec2-0:1.2.0-10. 100% | 341.3 MiB/s | 1.4 MiB | 00m00s [154/332] Installing soxr-0:0.1.3-22.fc 100% | 188.8 MiB/s | 193.3 KiB | 00m00s [155/332] Installing xvidcore-0:1.3.7-2 100% | 431.6 MiB/s | 883.9 KiB | 00m00s [156/332] Installing xeve-libs-0:0.7.0- 100% | 448.2 MiB/s | 917.9 KiB | 00m00s [157/332] Installing xevd-libs-0:0.7.0- 100% | 376.1 MiB/s | 385.1 KiB | 00m00s [158/332] Installing vo-amrwbenc-0:0.1. 100% | 151.7 MiB/s | 155.3 KiB | 00m00s [159/332] Installing twolame-libs-0:0.4 100% | 162.6 MiB/s | 166.5 KiB | 00m00s [160/332] Installing speex-0:1.2.0-22.f 100% | 127.3 MiB/s | 130.3 KiB | 00m00s [161/332] Installing opencore-amr-0:0.1 100% | 346.8 MiB/s | 355.1 KiB | 00m00s [162/332] Installing libvpx-0:1.17.0-1. 100% | 412.3 MiB/s | 3.3 MiB | 00m00s [163/332] Installing ilbc-0:3.0.4-21.fc 100% | 90.7 MiB/s | 92.8 KiB | 00m00s [164/332] Installing openapv-libs-0:1.1 100% | 147.6 MiB/s | 151.1 KiB | 00m00s [165/332] Installing graphite2-0:1.3.14 100% | 11.1 MiB/s | 193.5 KiB | 00m00s [166/332] Installing freetype-0:2.14.3- 100% | 299.5 MiB/s | 920.1 KiB | 00m00s [167/332] Installing harfbuzz-0:15.0.0- 100% | 392.3 MiB/s | 3.5 MiB | 00m00s [168/332] Installing libdatrie-0:0.2.14 100% | 0.0 B/s | 58.8 KiB | 00m00s [169/332] Installing libthai-0:0.1.30-3 100% | 130.6 MiB/s | 802.7 KiB | 00m00s [170/332] Installing adwaita-icon-theme 100% | 86.0 MiB/s | 2.4 MiB | 00m00s [171/332] Installing adwaita-cursor-the 100% | 672.3 MiB/s | 11.4 MiB | 00m00s [172/332] Installing adwaita-icon-theme 100% | 77.5 MiB/s | 1.0 MiB | 00m00s [173/332] Installing libepoxy-0:1.5.10- 100% | 362.0 MiB/s | 1.1 MiB | 00m00s [174/332] Installing hicolor-icon-theme 100% | 25.1 MiB/s | 179.7 KiB | 00m00s [175/332] Installing google-noto-fonts- 100% | 0.0 B/s | 18.5 KiB | 00m00s [176/332] Installing google-noto-sans-v 100% | 347.8 MiB/s | 1.4 MiB | 00m00s [177/332] Installing default-fonts-core 100% | 17.8 MiB/s | 18.2 KiB | 00m00s [178/332] Installing fontconfig-0:2.18. 100% | 1.0 MiB/s | 1.1 MiB | 00m01s [179/332] Installing libaribcaption-0:1 100% | 125.7 MiB/s | 257.5 KiB | 00m00s [180/332] Installing libbluray-0:1.4.0- 100% | 105.4 MiB/s | 323.9 KiB | 00m00s [181/332] Installing libwacom-data-0:2. 100% | 111.5 MiB/s | 1.6 MiB | 00m00s [182/332] Installing libasyncns-0:0.8-3 100% | 59.4 MiB/s | 60.8 KiB | 00m00s [183/332] Installing xkeyboard-config-0 100% | 323.6 MiB/s | 6.5 MiB | 00m00s [184/332] Installing libxkbcommon-0:1.1 100% | 211.9 MiB/s | 433.9 KiB | 00m00s [185/332] Installing cups-filesystem-1: 100% | 0.0 B/s | 1.8 KiB | 00m00s [186/332] Installing cups-libs-1:2.4.19 100% | 312.6 MiB/s | 640.1 KiB | 00m00s [187/332] Installing duktape-0:2.7.0-12 100% | 305.5 MiB/s | 625.7 KiB | 00m00s [188/332] Installing libproxy-0:0.5.12- 100% | 105.8 MiB/s | 108.4 KiB | 00m00s [189/332] Installing glib-networking-0: 100% | 162.5 MiB/s | 831.9 KiB | 00m00s [190/332] Installing libsoup3-0:3.8.1-1 100% | 245.7 MiB/s | 1.2 MiB | 00m00s [191/332] Installing gssdp-0:1.6.6-3.fc 100% | 145.6 MiB/s | 149.1 KiB | 00m00s [192/332] Installing gupnp-0:1.6.10-4.f 100% | 306.4 MiB/s | 313.8 KiB | 00m00s [193/332] Installing gupnp-igd-0:1.6.0- 100% | 70.7 MiB/s | 72.4 KiB | 00m00s [194/332] Installing libnice-0:0.1.23-3 100% | 27.8 MiB/s | 512.8 KiB | 00m00s [195/332] Installing libtinysparql-0:3. 100% | 333.1 MiB/s | 1.0 MiB | 00m00s [196/332] Installing libXau-0:1.0.12-5. 100% | 72.6 MiB/s | 74.3 KiB | 00m00s [197/332] Installing libxcb-0:1.17.0-8. 100% | 270.3 MiB/s | 1.1 MiB | 00m00s [198/332] Installing mesa-dri-drivers-0 100% | 455.3 MiB/s | 53.3 MiB | 00m00s [199/332] Installing mesa-libgbm-0:26.2 100% | 0.0 B/s | 20.3 KiB | 00m00s [200/332] Installing xcb-util-renderuti 100% | 25.1 MiB/s | 25.7 KiB | 00m00s [201/332] Installing pulseaudio-libs-0: 100% | 339.8 MiB/s | 3.4 MiB | 00m00s [202/332] Installing pipewire-libs-0:1. 100% | 337.5 MiB/s | 9.8 MiB | 00m00s [203/332] Installing libxkbcommon-x11-0 100% | 0.0 B/s | 40.3 KiB | 00m00s [204/332] Installing xcb-util-keysyms-0 100% | 0.0 B/s | 17.7 KiB | 00m00s [205/332] Installing xcb-util-wm-0:0.4. 100% | 77.1 MiB/s | 79.0 KiB | 00m00s [206/332] Installing xcb-util-0:0.4.1-1 100% | 0.0 B/s | 27.6 KiB | 00m00s [207/332] Installing xcb-util-image-0:0 100% | 0.0 B/s | 27.5 KiB | 00m00s [208/332] Installing xcb-util-cursor-0: 100% | 27.8 MiB/s | 28.5 KiB | 00m00s [209/332] Installing libX11-common-0:1. 100% | 169.3 MiB/s | 1.2 MiB | 00m00s [210/332] Installing libX11-0:1.8.13-3. 100% | 337.0 MiB/s | 1.3 MiB | 00m00s [211/332] Installing libXext-0:1.3.6-6. 100% | 0.0 B/s | 91.1 KiB | 00m00s [212/332] Installing libXrender-0:0.9.1 100% | 0.0 B/s | 51.2 KiB | 00m00s [213/332] Installing libXfixes-0:6.0.1- 100% | 0.0 B/s | 31.4 KiB | 00m00s [214/332] Installing libXi-0:1.8.4-1.fc 100% | 0.0 B/s | 81.7 KiB | 00m00s [215/332] Installing libXrandr-0:1.5.4- 100% | 0.0 B/s | 52.9 KiB | 00m00s [216/332] Installing libXtst-0:1.2.5-5. 100% | 0.0 B/s | 34.4 KiB | 00m00s [217/332] Installing libXdamage-0:1.1.6 100% | 0.0 B/s | 41.1 KiB | 00m00s [218/332] Installing libXcomposite-0:0. 100% | 0.0 B/s | 45.9 KiB | 00m00s [219/332] Installing libXcursor-0:1.2.3 100% | 53.7 MiB/s | 55.0 KiB | 00m00s [220/332] Installing libXft-0:2.3.8-11. 100% | 165.8 MiB/s | 169.8 KiB | 00m00s [221/332] Installing libXinerama-0:1.1. 100% | 0.0 B/s | 15.9 KiB | 00m00s [222/332] Installing libvdpau-0:1.5-12. 100% | 0.0 B/s | 22.3 KiB | 00m00s [223/332] Installing libXxf86vm-0:1.1.6 100% | 0.0 B/s | 26.4 KiB | 00m00s [224/332] Installing mesa-libGL-0:26.2. 100% | 370.4 MiB/s | 379.3 KiB | 00m00s [225/332] Installing libglvnd-glx-1:1.7 100% | 292.3 MiB/s | 598.5 KiB | 00m00s [226/332] Installing libva-0:2.24.1-2.f 100% | 170.9 MiB/s | 350.0 KiB | 00m00s [227/332] Installing libavutil-free-0:9 100% | 320.5 MiB/s | 984.7 KiB | 00m00s [228/332] Installing libswresample-free 100% | 152.8 MiB/s | 156.5 KiB | 00m00s [229/332] Installing libchromaprint-0:1 100% | 73.6 MiB/s | 75.4 KiB | 00m00s [230/332] Installing libswscale-free-0: 100% | 354.7 MiB/s | 1.1 MiB | 00m00s [231/332] Installing glx-utils-0:9.0.0- 100% | 24.1 MiB/s | 419.2 KiB | 00m00s [232/332] Installing libXv-0:1.0.13-5.f 100% | 0.0 B/s | 27.1 KiB | 00m00s [233/332] Installing libxkbfile-0:1.1.3 100% | 198.3 MiB/s | 203.1 KiB | 00m00s [234/332] Installing mesa-libEGL-0:26.2 100% | 390.1 MiB/s | 399.5 KiB | 00m00s [235/332] Installing libglvnd-egl-1:1.7 100% | 68.6 MiB/s | 70.2 KiB | 00m00s [236/332] Installing xprop-0:1.2.8-6.fc 100% | 3.4 MiB/s | 55.9 KiB | 00m00s [237/332] Installing gpgme-0:2.0.1-6.fc 100% | 33.9 MiB/s | 624.9 KiB | 00m00s [238/332] Installing gpgmepp-1:2.0.0-2. 100% | 300.8 MiB/s | 616.0 KiB | 00m00s [239/332] Installing giflib-0:6.1.3-3.f 100% | 120.9 MiB/s | 123.8 KiB | 00m00s [240/332] Installing leptonica-0:1.87.0 100% | 400.3 MiB/s | 3.2 MiB | 00m00s [241/332] Installing minizip-ng-compat- 100% | 143.5 MiB/s | 146.9 KiB | 00m00s [242/332] Installing libxslt-0:1.1.43-1 100% | 25.8 MiB/s | 474.9 KiB | 00m00s [243/332] Installing qt6-filesystem-0:6 100% | 3.4 MiB/s | 3.5 KiB | 00m00s [244/332] Installing libb2-0:0.98.1-16. 100% | 0.0 B/s | 43.0 KiB | 00m00s [245/332] Installing double-conversion- 100% | 101.2 MiB/s | 103.6 KiB | 00m00s [246/332] Installing qt6-qtbase-0:6.11. 100% | 263.4 MiB/s | 14.0 MiB | 00m00s [247/332] Installing qt6-qtbase-common- 100% | 0.0 B/s | 352.0 B | 00m00s [248/332] Installing qt6-qtserialport-0 100% | 227.0 MiB/s | 232.5 KiB | 00m00s [249/332] Installing qt6-qtwebsockets-0 100% | 322.6 MiB/s | 330.4 KiB | 00m00s [250/332] Installing qt6-qthttpserver-0 100% | 331.7 MiB/s | 339.7 KiB | 00m00s [251/332] Installing qt6-qtserialbus-0: 100% | 320.6 MiB/s | 984.8 KiB | 00m00s [252/332] Installing qt6-qtconnectivity 100% | 401.9 MiB/s | 1.6 MiB | 00m00s [253/332] Installing python-pip-wheel-0 100% | 623.2 MiB/s | 1.2 MiB | 00m00s [254/332] Installing mpdecimal-0:4.0.1- 100% | 36.2 MiB/s | 222.7 KiB | 00m00s [255/332] Installing python3-libs-0:3.1 100% | 366.1 MiB/s | 48.7 MiB | 00m00s [256/332] Installing python3-0:3.15.2-1 100% | 1.7 MiB/s | 30.4 KiB | 00m00s [257/332] Installing gstreamer1-0:1.28. 100% | 176.2 MiB/s | 5.5 MiB | 00m00s [258/332] Installing python3-packaging- 100% | 252.9 MiB/s | 1.0 MiB | 00m00s [259/332] Installing at-spi2-core-0:2.6 100% | 227.9 MiB/s | 1.6 MiB | 00m00s [260/332] Installing atk-0:2.62.2-1.fc4 100% | 248.0 MiB/s | 254.0 KiB | 00m00s [261/332] Installing at-spi2-atk-0:2.62 100% | 283.4 MiB/s | 290.2 KiB | 00m00s [262/332] Installing python3-rpm-genera 100% | 0.0 B/s | 83.1 KiB | 00m00s [263/332] Installing python3-iniconfig- 100% | 52.7 MiB/s | 54.0 KiB | 00m00s [264/332] Installing python3-pluggy-0:1 100% | 54.3 MiB/s | 222.4 KiB | 00m00s [265/332] Installing python3-pygments-0 100% | 217.6 MiB/s | 11.5 MiB | 00m00s [266/332] Installing libwacom-0:2.19.0- 100% | 6.2 MiB/s | 108.2 KiB | 00m00s [267/332] Installing libinput-0:1.32.0- 100% | 28.4 MiB/s | 726.2 KiB | 00m00s [268/332] Installing python3-shiboken6- 100% | 212.8 MiB/s | 653.9 KiB | 00m00s [269/332] Installing pixman-0:0.46.2-4. 100% | 351.3 MiB/s | 719.4 KiB | 00m00s [270/332] Installing lzo-0:2.10-17.fc45 100% | 176.2 MiB/s | 180.4 KiB | 00m00s [271/332] Installing cairo-0:1.18.6-1.f 100% | 366.4 MiB/s | 1.8 MiB | 00m00s [272/332] Installing pango-0:1.58.2-1.f 100% | 51.1 MiB/s | 1.0 MiB | 00m00s [273/332] Installing gstreamer1-plugins 100% | 279.1 MiB/s | 7.5 MiB | 00m00s [274/332] Installing cairo-gobject-0:1. 100% | 0.0 B/s | 31.8 KiB | 00m00s [275/332] Installing librsvg2-0:2.63.4- 100% | 387.0 MiB/s | 5.0 MiB | 00m00s [276/332] Installing glycin-loaders-0:2 100% | 483.2 MiB/s | 15.0 MiB | 00m00s [277/332] Installing glycin-libs-0:2.2. 100% | 370.7 MiB/s | 4.8 MiB | 00m00s [278/332] Installing gdk-pixbuf2-0:2.44 100% | 100.7 MiB/s | 2.6 MiB | 00m00s [279/332] Installing libavcodec-free-0: 100% | 361.7 MiB/s | 11.2 MiB | 00m00s [280/332] Installing libavformat-free-0 100% | 359.3 MiB/s | 2.9 MiB | 00m00s [281/332] Installing gtk-update-icon-ca 100% | 3.6 MiB/s | 63.2 KiB | 00m00s [282/332] Installing gtk3-0:3.24.52-6.f 100% | 312.4 MiB/s | 22.8 MiB | 00m00s [283/332] Installing libdecor-0:0.2.5-3 100% | 171.4 MiB/s | 175.5 KiB | 00m00s [284/332] Installing SDL3-0:3.4.20-1.fc 100% | 404.0 MiB/s | 3.2 MiB | 00m00s [285/332] Installing sdl2-compat-0:2.32 100% | 202.3 MiB/s | 414.4 KiB | 00m00s [286/332] Installing tslib-0:1.24-3.fc4 100% | 20.7 MiB/s | 423.3 KiB | 00m00s [287/332] Installing qt6-qtbase-gui-0:6 100% | 381.2 MiB/s | 27.4 MiB | 00m00s [288/332] Installing qt6-qtsvg-0:6.11.2 100% | 132.7 MiB/s | 950.9 KiB | 00m00s [289/332] Installing qt6-qtdeclarative- 100% | 400.5 MiB/s | 59.7 MiB | 00m00s [290/332] Installing qt6-qtpositioning- 100% | 315.6 MiB/s | 1.6 MiB | 00m00s [291/332] Installing qt6-qtpdf-0:6.11.2 100% | 393.9 MiB/s | 24.4 MiB | 00m00s [292/332] Installing qt6-qtwebchannel-0 100% | 226.3 MiB/s | 463.5 KiB | 00m00s [293/332] Installing qt6-qtwebengine-0: 100% | 420.8 MiB/s | 276.9 MiB | 00m01s [294/332] Installing qt6-qtshadertools- 100% | 213.2 MiB/s | 7.0 MiB | 00m00s [295/332] Installing qt6-qtwebview-0:6. 100% | 142.8 MiB/s | 292.4 KiB | 00m00s [296/332] Installing qt6-qtlocation-0:6 100% | 414.4 MiB/s | 2.9 MiB | 00m00s [297/332] Installing qt6-qtcharts-0:6.1 100% | 388.8 MiB/s | 3.5 MiB | 00m00s [298/332] Installing qt6-qtdatavis3d-0: 100% | 404.1 MiB/s | 2.4 MiB | 00m00s [299/332] Installing qt6-qtremoteobject 100% | 311.9 MiB/s | 1.6 MiB | 00m00s [300/332] Installing qt6-qtscxml-0:6.11 100% | 323.5 MiB/s | 1.9 MiB | 00m00s [301/332] Installing qt6-qtsensors-0:6. 100% | 315.3 MiB/s | 968.8 KiB | 00m00s [302/332] Installing qt6-qtquicktimelin 100% | 101.6 MiB/s | 312.2 KiB | 00m00s [303/332] Installing qt6-qtquick3d-0:6. 100% | 365.9 MiB/s | 15.7 MiB | 00m00s [304/332] Installing qt6-qtgraphs-0:6.1 100% | 390.1 MiB/s | 3.9 MiB | 00m00s [305/332] Installing qt6-qttools-libs-d 100% | 502.3 MiB/s | 6.0 MiB | 00m00s [306/332] Installing qt6-qtnetworkauth- 100% | 184.2 MiB/s | 377.2 KiB | 00m00s [307/332] Installing qt6-qtimageformats 100% | 146.0 MiB/s | 448.4 KiB | 00m00s [308/332] Installing qt6-qt3d-0:6.11.2- 100% | 413.0 MiB/s | 15.3 MiB | 00m00s [309/332] Installing qt6-qttools-0:6.11 100% | 47.4 MiB/s | 922.8 KiB | 00m00s [310/332] Installing qt6-qttools-libs-h 100% | 308.5 MiB/s | 631.8 KiB | 00m00s [311/332] Installing gstreamer1-plugins 100% | 331.4 MiB/s | 3.6 MiB | 00m00s [312/332] Installing qt6-qtmultimedia-0 100% | 367.6 MiB/s | 4.4 MiB | 00m00s [313/332] Installing qt6-qtspeech-0:6.1 100% | 185.2 MiB/s | 379.4 KiB | 00m00s [314/332] Installing poppler-data-0:0.4 100% | 399.7 MiB/s | 12.4 MiB | 00m00s [315/332] Installing poppler-0:26.08.0- 100% | 377.3 MiB/s | 4.2 MiB | 00m00s [316/332] Installing libfyaml-0:0.8-10. 100% | 240.3 MiB/s | 492.2 KiB | 00m00s [317/332] Installing tesseract-tessdata 100% | 0.0 B/s | 15.7 KiB | 00m00s [318/332] Installing tesseract-langpack 100% | 435.9 MiB/s | 3.9 MiB | 00m00s [319/332] Installing tesseract-common-0 100% | 20.4 MiB/s | 20.9 KiB | 00m00s [320/332] Installing tesseract-libs-0:5 100% | 420.2 MiB/s | 3.4 MiB | 00m00s [321/332] Installing emacs-filesystem-1 100% | 0.0 B/s | 812.0 B | 00m00s [322/332] Installing desktop-file-utils 100% | 12.3 MiB/s | 226.0 KiB | 00m00s [323/332] Installing tesseract-0:5.5.4- 100% | 4.9 MiB/s | 85.2 KiB | 00m00s [324/332] Installing appstream-0:1.1.3- 100% | 168.5 MiB/s | 4.9 MiB | 00m00s [325/332] Installing poppler-utils-0:26 100% | 40.4 MiB/s | 827.6 KiB | 00m00s [326/332] Installing python3-pyside6-0: 100% | 473.3 MiB/s | 54.9 MiB | 00m00s [327/332] Installing python3-pytest-0:9 100% | 364.8 MiB/s | 24.4 MiB | 00m00s [328/332] Installing python3-devel-0:3. 100% | 101.9 MiB/s | 2.5 MiB | 00m00s [329/332] Installing authselect-0:1.8.0 100% | 12.9 MiB/s | 238.4 KiB | 00m00s [330/332] Installing pam-0:1.7.2-4.fc45 100% | 67.2 MiB/s | 1.7 MiB | 00m00s [331/332] Installing qpdf-0:12.4.2-1.fc 100% | 15.9 MiB/s | 277.1 KiB | 00m00s [332/332] Installing systemd-rpm-macros 100% | 20.0 KiB/s | 8.9 KiB | 00m00s Complete! Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1795910400 Wrote: /builddir/build/SRPMS/py-pdftools-1.32.0-1.fc45.src.rpm Updating and loading repositories: updates 100% | 117.3 KiB/s | 19.4 KiB | 00m00s fedora 100% | 128.1 KiB/s | 20.4 KiB | 00m00s Copr repository 100% | 11.0 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package "appstream-1.1.3-4.fc45.x86_64" is already installed. Package "desktop-file-utils-0.28-8.fc45.x86_64" is already installed. Package "poppler-utils-26.08.0-2.fc45.x86_64" is already installed. Package "python3-devel-3.15.2-1.fc45.x86_64" is already installed. Package "python3-pyside6-6.11.2-3.fc45.x86_64" is already installed. Package "python3-pytest-9.1.1-1.fc45.noarch" is already installed. Package "qpdf-12.4.2-1.fc45.x86_64" is already installed. Package "tesseract-5.5.4-1.fc45.x86_64" is already installed. Package "tesseract-langpack-eng-4.1.0-13.fc45.noarch" is already installed. Nothing to do. Finish: build setup for py-pdftools-1.32.0-1.fc45.src.rpm Start: rpmbuild py-pdftools-1.32.0-1.fc45.src.rpm Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1795910400 Executing(mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.r0haF8 Creating(rpmbuild.env): /builddir/build/BUILD/py-pdftools-1.32.0-build/rpmbuild.env RPM_SOURCE_DIR="/builddir/build/SOURCES" RPM_BUILD_DIR="/builddir/build/BUILD/py-pdftools-1.32.0-build" RPM_OPT_FLAGS="-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" RPM_LD_FLAGS="-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes " RPM_ARCH="x86_64" RPM_OS="linux" RPM_BUILD_NCPUS="4" RPM_SPECPARTS_DIR="/builddir/build/BUILD/py-pdftools-1.32.0-build/SPECPARTS" export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS RPM_BUILD_NCPUS RPM_SPECPARTS_DIR RPM_LD_FLAGS RPM_DOC_DIR="/usr/share/doc" export RPM_DOC_DIR RPM_PACKAGE_NAME="py-pdftools" RPM_PACKAGE_VERSION="1.32.0" RPM_PACKAGE_RELEASE="1.fc45" export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE LANG=C.UTF-8 export LANG unset CDPATH DISPLAY ||: unset DEBUGINFOD_URLS ||: unset RPM_CONFIG_DIR ||: RPM_BUILD_ROOT="/builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT" export RPM_BUILD_ROOT PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/lib64/pkgconfig:/usr/share/pkgconfig" export PKG_CONFIG_PATH CONFIG_SITE=${CONFIG_SITE:-NONE} export CONFIG_SITE Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.cZrWKA + umask 022 + cd /builddir/build/BUILD/py-pdftools-1.32.0-build + cd /builddir/build/BUILD/py-pdftools-1.32.0-build + rm -rf py-pdftools-1.32.0 + /usr/bin/rpmuncompress -x /builddir/build/SOURCES/py-pdftools-1.32.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd py-pdftools-1.32.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -i '/"pyside6-essentials/d' pyproject.toml + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.lJEVba + umask 022 + cd /builddir/build/BUILD/py-pdftools-1.32.0-build + cd py-pdftools-1.32.0 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/py-pdftools-1.32.0-build/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/py-pdftools-1.32.0-build/.pyproject-builddir + RPM_TOXENV=py315 + FEDORA=45 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/py-pdftools-1.32.0-build/pyproject-wheeldir --output /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc45.x86_64-pyproject-buildrequires --dep-overrides-file /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc45.x86_64-pyproject-dep-overrides Handling uv_build>=0.10,<0.14 from build-system.requires Requirement not satisfied: uv_build<0.14,>=0.10 Exiting dependency generation pass: build backend + cat /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc45.x86_64-pyproject-buildrequires + rm -rfv '*.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/py-pdftools-1.32.0-1.fc45.buildreqs.nosrc.rpm INFO: Going to install missing dynamic buildrequires Updating and loading repositories: updates 100% | 71.7 KiB/s | 19.4 KiB | 00m00s fedora 100% | 78.0 KiB/s | 20.4 KiB | 00m00s Copr repository 100% | 13.7 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package "appstream-1.1.3-4.fc45.x86_64" is already installed. Package "desktop-file-utils-0.28-8.fc45.x86_64" is already installed. Package "poppler-utils-26.08.0-2.fc45.x86_64" is already installed. Package "pyproject-rpm-macros-1.24.0-1.fc45.noarch" is already installed. Package "python3-devel-3.15.2-1.fc45.x86_64" is already installed. Package "python3-pyside6-6.11.2-3.fc45.x86_64" is already installed. Package "python3-pytest-9.1.1-1.fc45.noarch" is already installed. Package "python3-packaging-26.2-4.fc45.noarch" is already installed. Package "qpdf-12.4.2-1.fc45.x86_64" is already installed. Package "tesseract-5.5.4-1.fc45.x86_64" is already installed. Package "tesseract-langpack-eng-4.1.0-13.fc45.noarch" is already installed. Package Arch Version Repository Size Installing: python3-pip noarch 0:26.1.2-5.fc45 fedora 12.1 MiB python3-uv-build x86_64 0:0.13.7-1.fc45 updates 3.8 MiB Transaction Summary: Installing: 2 packages Total size of inbound packages is 4 MiB. Need to download 4 MiB. After this operation, 16 MiB extra will be used (install 16 MiB, remove 0 B). [1/2] python3-pip-0:26.1.2-5.fc45.noarc 100% | 20.9 MiB/s | 2.7 MiB | 00m00s [2/2] python3-uv-build-0:0.13.7-1.fc45. 100% | 4.9 MiB/s | 1.4 MiB | 00m00s -------------------------------------------------------------------------------- [2/2] Total 100% | 12.9 MiB/s | 4.1 MiB | 00m00s Running transaction [1/4] Verify package files 100% | 153.0 B/s | 2.0 B | 00m00s [2/4] Prepare transaction 100% | 33.0 B/s | 2.0 B | 00m00s [3/4] Installing python3-uv-build-0:0.1 100% | 120.4 MiB/s | 3.9 MiB | 00m00s [4/4] Installing python3-pip-0:26.1.2-5 100% | 124.6 MiB/s | 12.3 MiB | 00m00s Complete! Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1795910400 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.GDXVzD + umask 022 + cd /builddir/build/BUILD/py-pdftools-1.32.0-build + cd py-pdftools-1.32.0 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/py-pdftools-1.32.0-build/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/py-pdftools-1.32.0-build/.pyproject-builddir + RPM_TOXENV=py315 + FEDORA=45 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/py-pdftools-1.32.0-build/pyproject-wheeldir --output /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc45.x86_64-pyproject-buildrequires --dep-overrides-file /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc45.x86_64-pyproject-dep-overrides Handling uv_build>=0.10,<0.14 from build-system.requires Requirement satisfied: uv_build<0.14,>=0.10 (installed: uv_build 0.13.7) Handling pikepdf>=10.8 from hook generated metadata: Requires-Dist (py-pdftools) Requirement not satisfied: pikepdf>=10.8 Handling pymupdf>=1.26 from hook generated metadata: Requires-Dist (py-pdftools) Requirement not satisfied: pymupdf>=1.26 Handling reportlab>=4.4 from hook generated metadata: Requires-Dist (py-pdftools) Requirement not satisfied: reportlab>=4.4 Handling pypdfium2>=4.30 ; extra == 'pdfium' from hook generated metadata: Requires-Dist (py-pdftools) Ignoring alien requirement: pypdfium2>=4.30 ; extra == 'pdfium' Handling pyhanko>=0.29 ; extra == 'signatures' from hook generated metadata: Requires-Dist (py-pdftools) Ignoring alien requirement: pyhanko>=0.29 ; extra == 'signatures' Handling pyenchant>=3.2 ; extra == 'spelling' from hook generated metadata: Requires-Dist (py-pdftools) Ignoring alien requirement: pyenchant>=3.2 ; extra == 'spelling' + cat /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc45.x86_64-pyproject-buildrequires + rm -rfv py_pdftools-1.32.0.dist-info/ removed 'py_pdftools-1.32.0.dist-info/RECORD' removed 'py_pdftools-1.32.0.dist-info/METADATA' removed 'py_pdftools-1.32.0.dist-info/entry_points.txt' removed 'py_pdftools-1.32.0.dist-info/WHEEL' removed directory 'py_pdftools-1.32.0.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/py-pdftools-1.32.0-1.fc45.buildreqs.nosrc.rpm INFO: Going to install missing dynamic buildrequires Updating and loading repositories: updates 100% | 82.7 KiB/s | 19.4 KiB | 00m00s fedora 100% | 87.4 KiB/s | 20.4 KiB | 00m00s Copr repository 100% | 10.0 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package "appstream-1.1.3-4.fc45.x86_64" is already installed. Package "desktop-file-utils-0.28-8.fc45.x86_64" is already installed. Package "poppler-utils-26.08.0-2.fc45.x86_64" is already installed. Package "pyproject-rpm-macros-1.24.0-1.fc45.noarch" is already installed. Package "python3-devel-3.15.2-1.fc45.x86_64" is already installed. Package "python3-pyside6-6.11.2-3.fc45.x86_64" is already installed. Package "python3-pytest-9.1.1-1.fc45.noarch" is already installed. Package "python3-packaging-26.2-4.fc45.noarch" is already installed. Package "python3-pip-26.1.2-5.fc45.noarch" is already installed. Package "qpdf-12.4.2-1.fc45.x86_64" is already installed. Package "tesseract-5.5.4-1.fc45.x86_64" is already installed. Package "tesseract-langpack-eng-4.1.0-13.fc45.noarch" is already installed. Package Arch Version Repository Size Installing: python3-PyMuPDF x86_64 0:1.28.2-2.fc45 updates 4.3 MiB python3-pikepdf x86_64 0:10.8.0-3.fc45 fedora 1.9 MiB python3-reportlab noarch 0:5.1.0-1.fc45 updates 11.5 MiB Installing dependencies: dejavu-sans-fonts noarch 0:2.37-30.fc45 fedora 5.5 MiB gumbo-parser x86_64 1:0.13.2-3.fc45 fedora 374.4 KiB jbig2dec-libs x86_64 0:0.20-9.fc45 fedora 168.9 KiB libimagequant x86_64 0:4.1.0-3.fc45 fedora 678.9 KiB libraqm x86_64 0:0.10.1-5.fc45 fedora 32.5 KiB mupdf-cpp-libs x86_64 0:1.28.2-3.fc45 updates 2.3 MiB mupdf-libs x86_64 0:1.28.2-3.fc45 updates 51.5 MiB python3-charset-normalizer noarch 0:3.4.9-2.fc45 fedora 421.1 KiB python3-lxml x86_64 0:6.1.1-7.fc45 fedora 5.8 MiB python3-mupdf x86_64 0:1.28.2-3.fc45 updates 21.3 MiB python3-olefile noarch 0:0.47-15.fc45 fedora 347.3 KiB python3-pillow x86_64 0:12.3.0-7.fc45 updates 4.5 MiB zxing-cpp x86_64 0:2.2.1-9.fc45 fedora 1.3 MiB Transaction Summary: Installing: 16 packages Total size of inbound packages is 42 MiB. Need to download 42 MiB. After this operation, 112 MiB extra will be used (install 112 MiB, remove 0 B). [ 1/16] python3-pikepdf-0:10.8.0-3.fc45 100% | 5.6 MiB/s | 581.9 KiB | 00m00s [ 2/16] python3-lxml-0:6.1.1-7.fc45.x86 100% | 35.0 MiB/s | 1.7 MiB | 00m00s [ 3/16] dejavu-sans-fonts-0:2.37-30.fc4 100% | 36.8 MiB/s | 1.3 MiB | 00m00s [ 4/16] python3-charset-normalizer-0:3. 100% | 7.2 MiB/s | 133.0 KiB | 00m00s [ 5/16] python3-PyMuPDF-0:1.28.2-2.fc45 100% | 4.5 MiB/s | 857.9 KiB | 00m00s [ 6/16] libimagequant-0:4.1.0-3.fc45.x8 100% | 19.1 MiB/s | 313.7 KiB | 00m00s [ 7/16] libraqm-0:0.10.1-5.fc45.x86_64 100% | 1.6 MiB/s | 22.8 KiB | 00m00s [ 8/16] python3-olefile-0:0.47-15.fc45. 100% | 4.9 MiB/s | 75.0 KiB | 00m00s [ 9/16] python3-reportlab-0:5.1.0-1.fc4 100% | 14.4 MiB/s | 3.5 MiB | 00m00s [10/16] mupdf-cpp-libs-0:1.28.2-3.fc45. 100% | 7.3 MiB/s | 465.3 KiB | 00m00s [11/16] gumbo-parser-1:0.13.2-3.fc45.x8 100% | 3.9 MiB/s | 136.1 KiB | 00m00s [12/16] jbig2dec-libs-0:0.20-9.fc45.x86 100% | 5.3 MiB/s | 75.6 KiB | 00m00s [13/16] zxing-cpp-0:2.2.1-9.fc45.x86_64 100% | 36.2 MiB/s | 630.4 KiB | 00m00s [14/16] mupdf-libs-0:1.28.2-3.fc45.x86_ 100% | 109.5 MiB/s | 28.3 MiB | 00m00s [15/16] python3-mupdf-0:1.28.2-3.fc45.x 100% | 15.3 MiB/s | 2.9 MiB | 00m00s [16/16] python3-pillow-0:12.3.0-7.fc45. 100% | 2.8 MiB/s | 1.1 MiB | 00m00s -------------------------------------------------------------------------------- [16/16] Total 100% | 62.8 MiB/s | 41.9 MiB | 00m01s Running transaction [ 1/18] Verify package files 100% | 113.0 B/s | 16.0 B | 00m00s [ 2/18] Prepare transaction 100% | 280.0 B/s | 16.0 B | 00m00s [ 3/18] Installing zxing-cpp-0:2.2.1-9. 100% | 262.9 MiB/s | 1.3 MiB | 00m00s [ 4/18] Installing jbig2dec-libs-0:0.20 100% | 166.4 MiB/s | 170.4 KiB | 00m00s [ 5/18] Installing gumbo-parser-1:0.13. 100% | 366.7 MiB/s | 375.5 KiB | 00m00s [ 6/18] Installing mupdf-libs-0:1.28.2- 100% | 330.0 MiB/s | 51.5 MiB | 00m00s [ 7/18] Installing mupdf-cpp-libs-0:1.2 100% | 469.9 MiB/s | 2.3 MiB | 00m00s [ 8/18] Installing python3-mupdf-0:1.28 100% | 608.3 MiB/s | 21.3 MiB | 00m00s [ 9/18] Installing python3-olefile-0:0. 100% | 342.5 MiB/s | 350.7 KiB | 00m00s [10/18] Installing libraqm-0:0.10.1-5.f 100% | 0.0 B/s | 33.6 KiB | 00m00s [11/18] Installing libimagequant-0:4.1. 100% | 221.5 MiB/s | 680.5 KiB | 00m00s [12/18] Installing python3-pillow-0:12. 100% | 327.5 MiB/s | 4.6 MiB | 00m00s [13/18] Installing python3-charset-norm 100% | 22.2 MiB/s | 431.2 KiB | 00m00s [14/18] Installing dejavu-sans-fonts-0: 100% | 423.7 MiB/s | 5.5 MiB | 00m00s [15/18] Installing python3-lxml-0:6.1.1 100% | 344.8 MiB/s | 5.9 MiB | 00m00s [16/18] Installing python3-pikepdf-0:10 100% | 234.9 MiB/s | 1.9 MiB | 00m00s [17/18] Installing python3-reportlab-0: 100% | 324.3 MiB/s | 11.7 MiB | 00m00s [18/18] Installing python3-PyMuPDF-0:1. 100% | 54.0 MiB/s | 4.3 MiB | 00m00s Complete! Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1795910400 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.2RRYsQ + umask 022 + cd /builddir/build/BUILD/py-pdftools-1.32.0-build + cd py-pdftools-1.32.0 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/py-pdftools-1.32.0-build/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/py-pdftools-1.32.0-build/.pyproject-builddir + RPM_TOXENV=py315 + FEDORA=45 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/py-pdftools-1.32.0-build/pyproject-wheeldir --output /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc45.x86_64-pyproject-buildrequires --dep-overrides-file /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc45.x86_64-pyproject-dep-overrides Handling uv_build>=0.10,<0.14 from build-system.requires Requirement satisfied: uv_build<0.14,>=0.10 (installed: uv_build 0.13.7) Handling pikepdf>=10.8 from hook generated metadata: Requires-Dist (py-pdftools) Requirement satisfied: pikepdf>=10.8 (installed: pikepdf 10.8.0) Handling pymupdf>=1.26 from hook generated metadata: Requires-Dist (py-pdftools) Requirement satisfied: pymupdf>=1.26 (installed: pymupdf 1.28.2) Handling reportlab>=4.4 from hook generated metadata: Requires-Dist (py-pdftools) Requirement satisfied: reportlab>=4.4 (installed: reportlab 5.1.0) Handling pypdfium2>=4.30 ; extra == 'pdfium' from hook generated metadata: Requires-Dist (py-pdftools) Ignoring alien requirement: pypdfium2>=4.30 ; extra == 'pdfium' Handling pyhanko>=0.29 ; extra == 'signatures' from hook generated metadata: Requires-Dist (py-pdftools) Ignoring alien requirement: pyhanko>=0.29 ; extra == 'signatures' Handling pyenchant>=3.2 ; extra == 'spelling' from hook generated metadata: Requires-Dist (py-pdftools) Ignoring alien requirement: pyenchant>=3.2 ; extra == 'spelling' + cat /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc45.x86_64-pyproject-buildrequires + rm -rfv py_pdftools-1.32.0.dist-info/ removed 'py_pdftools-1.32.0.dist-info/RECORD' removed 'py_pdftools-1.32.0.dist-info/METADATA' removed 'py_pdftools-1.32.0.dist-info/entry_points.txt' removed 'py_pdftools-1.32.0.dist-info/WHEEL' removed directory 'py_pdftools-1.32.0.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/py-pdftools-1.32.0-1.fc45.buildreqs.nosrc.rpm INFO: Going to install missing dynamic buildrequires Updating and loading repositories: updates 100% | 75.6 KiB/s | 19.4 KiB | 00m00s fedora 100% | 81.1 KiB/s | 20.4 KiB | 00m00s Copr repository 100% | 6.6 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package "appstream-1.1.3-4.fc45.x86_64" is already installed. Package "desktop-file-utils-0.28-8.fc45.x86_64" is already installed. Package "poppler-utils-26.08.0-2.fc45.x86_64" is already installed. Package "pyproject-rpm-macros-1.24.0-1.fc45.noarch" is already installed. Package "python3-devel-3.15.2-1.fc45.x86_64" is already installed. Package "python3-pyside6-6.11.2-3.fc45.x86_64" is already installed. Package "python3-pytest-9.1.1-1.fc45.noarch" is already installed. Package "python3-packaging-26.2-4.fc45.noarch" is already installed. Package "python3-pikepdf-10.8.0-3.fc45.x86_64" is already installed. Package "python3-pip-26.1.2-5.fc45.noarch" is already installed. Package "python3-PyMuPDF-1.28.2-2.fc45.x86_64" is already installed. Package "python3-reportlab-5.1.0-1.fc45.noarch" is already installed. Package "qpdf-12.4.2-1.fc45.x86_64" is already installed. Package "tesseract-5.5.4-1.fc45.x86_64" is already installed. Package "tesseract-langpack-eng-4.1.0-13.fc45.noarch" is already installed. Nothing to do. Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1795910400 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.DNeYYD + umask 022 + cd /builddir/build/BUILD/py-pdftools-1.32.0-build + cd py-pdftools-1.32.0 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/py-pdftools-1.32.0-build/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/py-pdftools-1.32.0-build/.pyproject-builddir + RPM_TOXENV=py315 + FEDORA=45 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/py-pdftools-1.32.0-build/pyproject-wheeldir --output /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc45.x86_64-pyproject-buildrequires --dep-overrides-file /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc45.x86_64-pyproject-dep-overrides Handling uv_build>=0.10,<0.14 from build-system.requires Requirement satisfied: uv_build<0.14,>=0.10 (installed: uv_build 0.13.7) Handling pikepdf>=10.8 from hook generated metadata: Requires-Dist (py-pdftools) Requirement satisfied: pikepdf>=10.8 (installed: pikepdf 10.8.0) Handling pymupdf>=1.26 from hook generated metadata: Requires-Dist (py-pdftools) Requirement satisfied: pymupdf>=1.26 (installed: pymupdf 1.28.2) Handling reportlab>=4.4 from hook generated metadata: Requires-Dist (py-pdftools) Requirement satisfied: reportlab>=4.4 (installed: reportlab 5.1.0) Handling pypdfium2>=4.30 ; extra == 'pdfium' from hook generated metadata: Requires-Dist (py-pdftools) Ignoring alien requirement: pypdfium2>=4.30 ; extra == 'pdfium' Handling pyhanko>=0.29 ; extra == 'signatures' from hook generated metadata: Requires-Dist (py-pdftools) Ignoring alien requirement: pyhanko>=0.29 ; extra == 'signatures' Handling pyenchant>=3.2 ; extra == 'spelling' from hook generated metadata: Requires-Dist (py-pdftools) Ignoring alien requirement: pyenchant>=3.2 ; extra == 'spelling' + cat /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc45.x86_64-pyproject-buildrequires + rm -rfv py_pdftools-1.32.0.dist-info/ removed 'py_pdftools-1.32.0.dist-info/RECORD' removed 'py_pdftools-1.32.0.dist-info/METADATA' removed 'py_pdftools-1.32.0.dist-info/entry_points.txt' removed 'py_pdftools-1.32.0.dist-info/WHEEL' removed directory 'py_pdftools-1.32.0.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.XmcZgE + umask 022 + cd /builddir/build/BUILD/py-pdftools-1.32.0-build + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd py-pdftools-1.32.0 + mkdir -p /builddir/build/BUILD/py-pdftools-1.32.0-build/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/py-pdftools-1.32.0-build/.pyproject-builddir + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py /builddir/build/BUILD/py-pdftools-1.32.0-build/pyproject-wheeldir Processing ./. Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: py-pdftools Building wheel for py-pdftools (pyproject.toml): started Running command Building wheel for py-pdftools (pyproject.toml) Building wheel for py-pdftools (pyproject.toml): finished with status 'done' Created wheel for py-pdftools: filename=py_pdftools-1.32.0-py3-none-any.whl size=1798139 sha256=6ee6daafa7955c177813def1db5602c9b99c758d57f280126deeae6cf2f8e4e4 Stored in directory: /builddir/.cache/pip/wheels/38/de/74/9c88ee740b721fcbedc4aa21e12c980b93edf8ba57e93575fe Successfully built py-pdftools + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.dEDAlU + umask 022 + cd /builddir/build/BUILD/py-pdftools-1.32.0-build + '[' /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT '!=' / ']' + rm -rf /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT ++ dirname /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT + mkdir -p /builddir/build/BUILD/py-pdftools-1.32.0-build + mkdir /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd py-pdftools-1.32.0 ++ ls /builddir/build/BUILD/py-pdftools-1.32.0-build/pyproject-wheeldir/py_pdftools-1.32.0-py3-none-any.whl ++ xargs basename --multiple ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' + specifier=py_pdftools==1.32.0 + '[' -z py_pdftools==1.32.0 ']' + PIP_CONFIG_FILE=/dev/null + TMPDIR=/builddir/build/BUILD/py-pdftools-1.32.0-build/.pyproject-builddir + /usr/bin/python3 -m pip install --root /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT --prefix /usr --no-deps --disable-pip-version-check --progress-bar off --verbose --ignore-installed --no-warn-script-location --no-index --no-cache-dir --find-links /builddir/build/BUILD/py-pdftools-1.32.0-build/pyproject-wheeldir py_pdftools==1.32.0 Using pip 26.1.2 from /usr/lib/python3.15/site-packages/pip (python 3.15) Looking in links: /builddir/build/BUILD/py-pdftools-1.32.0-build/pyproject-wheeldir Processing /builddir/build/BUILD/py-pdftools-1.32.0-build/pyproject-wheeldir/py_pdftools-1.32.0-py3-none-any.whl Installing collected packages: py_pdftools Creating /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/bin changing mode of /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/bin/py-pdftools to 755 changing mode of /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/bin/py-pdftools-gui to 755 Successfully installed py_pdftools-1.32.0 + '[' -d /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/bin ']' + '[' -z sP ']' + shebang_flags=-kasP + /usr/bin/python3 -B /usr/lib/rpm/redhat/pathfix.py -pni /usr/bin/python3 -kasP /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/bin/py-pdftools /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/bin/py-pdftools-gui /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/bin/py-pdftools: updating /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/bin/py-pdftools-gui: updating + rm -rfv /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/bin/__pycache__ + rm -f /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc45.x86_64-pyproject-ghost-distinfo + site_dirs=() + '[' -d /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages ']' + site_dirs+=("/usr/lib/python3.15/site-packages") + '[' /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib64/python3.15/site-packages '!=' /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages ']' + '[' -d /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib64/python3.15/site-packages ']' + for site_dir in ${site_dirs[@]} + for distinfo in /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT$site_dir/*.dist-info + echo '%ghost %dir /usr/lib/python3.15/site-packages/py_pdftools-1.32.0.dist-info' +++ basename /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools-1.32.0.dist-info ++ PYTHONPATH=/usr/lib/rpm/redhat ++ /usr/bin/python3 -sBc 'import sys; from pyproject_save_files import canonical_name_from_distinfo; print(canonical_name_from_distinfo(sys.argv[1]))' py_pdftools-1.32.0.dist-info + _normalized=py-pdftools + echo '%ghost %dir /usr/lib/python3.15/site-packages/py_pdftools-1.32.0.dist-info' + sed -i s/pip/rpm/ /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools-1.32.0.dist-info/INSTALLER + PYTHONPATH=/usr/lib/rpm/redhat + /usr/bin/python3 -B /usr/lib/rpm/redhat/pyproject_preprocess_record.py --buildroot /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT --record /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools-1.32.0.dist-info/RECORD --output /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc45.x86_64-pyproject-record + rm -fv /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools-1.32.0.dist-info/RECORD removed '/builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools-1.32.0.dist-info/RECORD' + rm -fv /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools-1.32.0.dist-info/REQUESTED removed '/builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools-1.32.0.dist-info/REQUESTED' + '[' -f /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc45.x86_64-pyproject-dep-overrides ']' ++ wc -l /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc45.x86_64-pyproject-ghost-distinfo ++ cut -f1 '-d ' + lines=1 + '[' 1 -ne 1 ']' + RPM_FILES_ESCAPE=4.19 + /usr/bin/python3 /usr/lib/rpm/redhat/pyproject_save_files.py --output-files /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc45.x86_64-pyproject-files --output-modules /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc45.x86_64-pyproject-modules --buildroot /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT --sitelib /usr/lib/python3.15/site-packages --sitearch /usr/lib64/python3.15/site-packages --python-version 3.15 --pyproject-record /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc45.x86_64-pyproject-record --prefix /usr -l py_pdftools + desktop-file-install --dir=/builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/share/applications packaging/py-pdftools.desktop + install -d /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/share/icons + cp -pr src/py_pdftools/icons/linux/hicolor /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/share/icons/ + install -Dpm 0644 packaging/io.github.nivaca.py-pdftools.metainfo.xml /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/share/metainfo/io.github.nivaca.py-pdftools.metainfo.xml + install -Dpm 0644 packaging/man/py-pdftools.1 /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/share/man/man1/py-pdftools.1 + install -Dpm 0644 packaging/man/es/py-pdftools.1 /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/share/man/es/man1/py-pdftools.1 + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + COMPRESS='gzip -9 -n' + COMPRESS_EXT=.gz + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-python-rpm-in-distinfo + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j4 Bytecompiling .py files below /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15 using python3.15 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/bin/add-det --brp -j4 /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/__pycache__/__main__.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/__pycache__/__init__.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/signatures/__pycache__/__init__.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/signatures/__pycache__/verify.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/redact/__pycache__/patterns.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/signatures/__pycache__/ids.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/signatures/__pycache__/sign.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/redact/__pycache__/worker.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/redact/__pycache__/settings.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/redact/__pycache__/metadata.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/redact/__pycache__/covered.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/redact/__pycache__/__init__.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/redact/__pycache__/codes.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/redact/__pycache__/hidden.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/tables.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/steps.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/redact/__pycache__/redact.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/watermark.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/wordfinder.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/visual.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/scans.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/view.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/version.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/split.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/outlines.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/numbers.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/reduce.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/profiles.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/recolor.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/rasterize.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/printcopy.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/fontmetrics.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/overlay.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/perspective.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/stamps.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/contents.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/combine.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/headfoot.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/labels.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/files.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/__init__.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/crop.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/export.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/changes.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/impose/__pycache__/units.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/arrange.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/impose/__pycache__/runner.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/impose/__pycache__/split.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/impose/__pycache__/insert.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/impose/__pycache__/stamp.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/impose/__pycache__/info.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/impose/__pycache__/simple.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/pages/__pycache__/cli.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/impose/__pycache__/pdfutil.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/impose/__pycache__/shuffle.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/impose/__pycache__/sequence.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/impose/__pycache__/pagetools.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/impose/__pycache__/common.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/impose/__pycache__/manual.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/impose/__pycache__/__init__.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/impose/__pycache__/bleed.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/impose/__pycache__/impose.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/impose/__pycache__/datamerge.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/wordcount.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/working.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/wordindex_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/updating.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/spellcheck.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/whatsnew.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/snapshots.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/watching.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/tabs.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/toolbars.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/visualcompare.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/thisfile.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/syncing.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/signing.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/textselect.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/storing.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/version_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/state.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/startscreen.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/steps_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/stamps.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/splitter.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/selectionbar.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/signature.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/richtext.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/scrolling.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/scans_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/results.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/redacting.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/scan_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/renderer.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/printing.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/reduce_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/printcopy_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/presentation.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/reading.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/readingbar.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/rasterize_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/protect_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/pictures.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/prefs.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/performance.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/palette.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/props.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/paint.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/paging.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/colors.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/combine_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/caret.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/objecttool.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/outline.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/objects.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/ocring.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/pagebar.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/overlay_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/own_icons.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/ocr_languages.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/navigation.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/ocr_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/menus.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/listing.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/magnifier.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/links.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/lookups_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/lookup.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/linkpreview.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/finder.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/linking.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/layers.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/instance.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/findbar.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/inspector.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/imposing.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/health_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/formula_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/window.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/canvas.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/imageres_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/forming.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/hint.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/history.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/errors.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/flatten_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/docprops_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/crop_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/export_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/attachments.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/files.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/corners_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/accessibility_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/appevents.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/access.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/boxes.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/asking.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/__main__.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/backend_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/awake.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/autostart.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/redact/__pycache__/props.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/redact/__pycache__/hidden_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/__init__.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/redact/__pycache__/prefs.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__pycache__/appearance.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/redact/__pycache__/covered_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/redact/__pycache__/common.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/redact/__pycache__/meta_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/redact/__pycache__/__init__.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/redact/__pycache__/background.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/redact/__pycache__/codes_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/redact/__pycache__/find.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/pages/__pycache__/widgets.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/pages/__pycache__/watermark_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/pages/__pycache__/headfoot_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/pages/__pycache__/sorter_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/pages/__pycache__/__init__.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/modes/__pycache__/__init__.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/pages/__pycache__/arrange_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/pages/__pycache__/stamp_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/pages/__pycache__/batch_dialog.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/impose/__pycache__/preview.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/impose/__pycache__/__init__.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/forms/__pycache__/formats.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/forms/__pycache__/fields.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/impose/__pycache__/forms.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/impose/__pycache__/basic.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/forms/__pycache__/__init__.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/userpackages.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/pdfdoc.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/updates.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/spelling.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/thumbcache.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/scanner.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/forms/__pycache__/data.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/runnable.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/synctex.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/reveal.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/replacing.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/pageprint.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/impose/__pycache__/workspace.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/rendering.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/pagepick.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/readingorder.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/pdf2iso.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/protection.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/pandoc.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/interface.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/pagesel.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/matrix.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/once.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/ocr.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/lookups.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/inspect.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/filename.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/pageobjects.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/imageres.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/ebooks.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/conform.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/hiddentext.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/config.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/health.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/checkfile.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/formats.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/docinfo.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/contrast.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/backends.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/__init__.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/bookmarkfile.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/ask.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/cli/__pycache__/form.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/cli/__pycache__/findwords.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/cli/__pycache__/ocr.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/core/__pycache__/accessibility.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/cli/__pycache__/completion.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/cli/__pycache__/export.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/cli/__pycache__/bookmarks.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/cli/__pycache__/combine.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/cli/__pycache__/__init__.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/annotate/__pycache__/formula.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/annotate/__pycache__/flatten.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/annotate/__pycache__/textindex.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/annotate/__pycache__/skim.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/annotate/__pycache__/search.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/annotate/__pycache__/settings.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/annotate/__pycache__/sidecar.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/annotate/__pycache__/recovery.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/annotate/__pycache__/ocr.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/annotate/__pycache__/mystamps.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/annotate/__pycache__/__init__.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/annotate/__pycache__/compare.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/annotate/__pycache__/exchange.cpython-315.opt-1.pyc: rewriting with normalized contents /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/annotate/__pycache__/annots.cpython-315.opt-1.pyc: rewriting with normalized contents Scanned 103 directories and 893 files, processed 258 inodes, 254 modified (0 replaced + 254 rewritten), 0 unsupported format, 0 errors + /usr/bin/linkdupes --brp /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr Scanned 102 directories and 893 files, considered 893 files, read 71 files, linked 10 files, 0 errors sum of sizes of linked files: 101238 bytes Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.KrtThq + umask 022 + cd /builddir/build/BUILD/py-pdftools-1.32.0-build + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd py-pdftools-1.32.0 + desktop-file-validate /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/share/applications/py-pdftools.desktop + appstreamcli validate --no-net /builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/share/metainfo/io.github.nivaca.py-pdftools.metainfo.xml ✔ Validation was successful. + '[' '!' -f /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc45.x86_64-pyproject-modules ']' + PATH=/builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin + PYTHONPATH=/builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib64/python3.15/site-packages:/builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages + _PYTHONSITE=/builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib64/python3.15/site-packages:/builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages + PYTHONDONTWRITEBYTECODE=1 + /usr/bin/python3 -sP /usr/lib/rpm/redhat/import_all_modules.py -f /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc45.x86_64-pyproject-modules -e 'py_pdftools.gui*' Check import: py_pdftools Check import: py_pdftools.annotate Check import: py_pdftools.annotate.annots Check import: py_pdftools.annotate.compare Check import: py_pdftools.annotate.exchange Check import: py_pdftools.annotate.flatten Check import: py_pdftools.annotate.formula Check import: py_pdftools.annotate.mystamps Check import: py_pdftools.annotate.ocr Check import: py_pdftools.annotate.recovery Check import: py_pdftools.annotate.search Check import: py_pdftools.annotate.settings Check import: py_pdftools.annotate.sidecar Check import: py_pdftools.annotate.skim Check import: py_pdftools.annotate.textindex Check import: py_pdftools.cli Check import: py_pdftools.cli.bookmarks Check import: py_pdftools.cli.combine Check import: py_pdftools.cli.completion Check import: py_pdftools.cli.export Check import: py_pdftools.cli.findwords Check import: py_pdftools.cli.form Check import: py_pdftools.cli.ocr Check import: py_pdftools.core Check import: py_pdftools.core.accessibility Check import: py_pdftools.core.ask Check import: py_pdftools.core.backends Check import: py_pdftools.core.bookmarkfile Check import: py_pdftools.core.checkfile Check import: py_pdftools.core.config Check import: py_pdftools.core.conform Check import: py_pdftools.core.contrast Check import: py_pdftools.core.docinfo Check import: py_pdftools.core.ebooks Check import: py_pdftools.core.filename Check import: py_pdftools.core.formats Check import: py_pdftools.core.health Check import: py_pdftools.core.hiddentext Check import: py_pdftools.core.imageres Check import: py_pdftools.core.inspect Check import: py_pdftools.core.interface Check import: py_pdftools.core.lookups Check import: py_pdftools.core.matrix Check import: py_pdftools.core.ocr Check import: py_pdftools.core.once Check import: py_pdftools.core.pageobjects Check import: py_pdftools.core.pagepick Check import: py_pdftools.core.pageprint Check import: py_pdftools.core.pagesel Check import: py_pdftools.core.pandoc Check import: py_pdftools.core.pdf2iso Check import: py_pdftools.core.pdfdoc Check import: py_pdftools.core.protection Check import: py_pdftools.core.readingorder Check import: py_pdftools.core.rendering Check import: py_pdftools.core.replacing Check import: py_pdftools.core.reveal Check import: py_pdftools.core.runnable Check import: py_pdftools.core.scanner Check import: py_pdftools.core.spelling Check import: py_pdftools.core.synctex Check import: py_pdftools.core.thumbcache Check import: py_pdftools.core.updates Check import: py_pdftools.core.userpackages Check import: py_pdftools.forms Check import: py_pdftools.forms.data Check import: py_pdftools.forms.fields Check import: py_pdftools.forms.formats Check import: py_pdftools.impose Check import: py_pdftools.impose.bleed Check import: py_pdftools.impose.common Check import: py_pdftools.impose.datamerge Check import: py_pdftools.impose.impose Check import: py_pdftools.impose.info Check import: py_pdftools.impose.insert Check import: py_pdftools.impose.manual Check import: py_pdftools.impose.pagetools Check import: py_pdftools.impose.pdfutil Check import: py_pdftools.impose.runner Check import: py_pdftools.impose.sequence Check import: py_pdftools.impose.shuffle Check import: py_pdftools.impose.simple Check import: py_pdftools.impose.split Check import: py_pdftools.impose.stamp Check import: py_pdftools.impose.units Check import: py_pdftools.pages Check import: py_pdftools.pages.arrange Check import: py_pdftools.pages.changes Check import: py_pdftools.pages.cli Check import: py_pdftools.pages.combine Check import: py_pdftools.pages.contents Check import: py_pdftools.pages.crop Check import: py_pdftools.pages.export Check import: py_pdftools.pages.files Check import: py_pdftools.pages.fontmetrics Check import: py_pdftools.pages.headfoot Check import: py_pdftools.pages.labels Check import: py_pdftools.pages.numbers Check import: py_pdftools.pages.outlines Check import: py_pdftools.pages.overlay Check import: py_pdftools.pages.perspective Check import: py_pdftools.pages.printcopy Check import: py_pdftools.pages.profiles Check import: py_pdftools.pages.rasterize Check import: py_pdftools.pages.recolor Check import: py_pdftools.pages.reduce Check import: py_pdftools.pages.scans Check import: py_pdftools.pages.split Check import: py_pdftools.pages.stamps Check import: py_pdftools.pages.steps Check import: py_pdftools.pages.tables Check import: py_pdftools.pages.version Check import: py_pdftools.pages.view Check import: py_pdftools.pages.visual Check import: py_pdftools.pages.watermark Check import: py_pdftools.pages.wordfinder Check import: py_pdftools.redact Check import: py_pdftools.redact.codes Check import: py_pdftools.redact.covered Check import: py_pdftools.redact.hidden Check import: py_pdftools.redact.metadata Check import: py_pdftools.redact.patterns Check import: py_pdftools.redact.redact Check import: py_pdftools.redact.settings Check import: py_pdftools.redact.worker Check import: py_pdftools.signatures Check import: py_pdftools.signatures.ids Check import: py_pdftools.signatures.sign Check import: py_pdftools.signatures.verify + export HOME=/builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0/check-home PY_PDFTOOLS_CONFIG=/builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0/check-home/config QT_QPA_PLATFORM=offscreen + HOME=/builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0/check-home + PY_PDFTOOLS_CONFIG=/builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0/check-home/config + QT_QPA_PLATFORM=offscreen + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + PATH=/builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin + PYTHONPATH=/builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib64/python3.15/site-packages:/builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages + PYTHONDONTWRITEBYTECODE=1 + PYTEST_ADDOPTS=' --ignore=/builddir/build/BUILD/py-pdftools-1.32.0-build/.pyproject-builddir' + PYTEST_XDIST_AUTO_NUM_WORKERS=4 + /usr/bin/python3 tools/test.py [1/158] impose/test_gui.py: 25 passed, 11.7s, FAILED [2/158] test_ocr.py: 11 passed, 12.4s, FAILED [3/158] redact/test_gui.py: 0 passed, 14.0s, FAILED [4/158] pages/test_reduce.py: 10 passed, 20.2s, FAILED [6/158] test_navigation.py: 3 passed, 34.2s, FAILED [7/158] test_renderer.py: 8 passed, 9.3s, FAILED [11/158] test_large_documents.py: 0 passed, 6.2s, FAILED [15/158] annotate/test_link_edit.py: 1 passed, 2.8s, FAILED [17/158] forms/test_data.py: 8 passed, 1.9s, FAILED [19/158] forms/test_fill.py: 2 passed, 2.3s, FAILED [21/158] pages/test_arrange.py: 10 passed, 2.8s, FAILED [23/158] annotate/test_sidecar_gui.py: 0 passed, 8.4s, FAILED [24/158] annotate/test_gui.py: 2 passed, 51.0s, FAILED [27/158] pages/test_combine.py: 6 passed, 1.9s, FAILED [28/158] pages/test_from_images.py: 5 passed, 1.7s, FAILED [29/158] pages/test_crop.py: 5 passed, 2.3s, FAILED [30/158] pages/test_export.py: 8 passed, 2.0s, FAILED [33/158] pages/test_labels_shown.py: 0 passed, 2.7s, FAILED [34/158] pages/test_outlines.py: 2 passed, 1.8s, FAILED [35/158] pages/test_overlay.py: 4 passed, 1.6s, FAILED [37/158] pages/test_recolor.py: 3 passed, 1.7s, FAILED [38/158] pages/test_rasterize.py: 6 passed, 2.3s, FAILED [39/158] pages/test_gui.py: 0 passed, 7.6s, FAILED [40/158] pages/test_sorter.py: 1 passed, 2.2s, FAILED [41/158] pages/test_split.py: 4 passed, 2.5s, FAILED [43/158] pages/test_tables.py: 3 passed, 1.8s, FAILED [44/158] pages/test_version.py: 7 passed, 1.8s, FAILED [45/158] pages/test_scans.py: 4 passed, 5.9s, FAILED [51/158] redact/test_covered.py: 9 passed, 2.2s, FAILED [53/158] test_accessibility.py: 4 passed, 1.6s, FAILED [54/158] test_attachments.py: 2 passed, 1.3s, FAILED [56/158] pages/test_working.py: 1 passed, 5.6s, FAILED [57/158] test_ask.py: 2 passed, 3.2s, FAILED [58/158] test_backends.py: 18 passed, 2.6s, FAILED [59/158] test_bookmarkfile.py: 9 passed, 2.2s, FAILED [60/158] test_boxes.py: 0 passed, 2.7s, FAILED [61/158] test_caret.py: 0 passed, 2.7s, FAILED [62/158] test_checkfile.py: 2 passed, 1.8s, FAILED [64/158] test_carry_over.py: 2 passed, 2.8s, FAILED [66/158] test_columns.py: 0 passed, 2.1s, FAILED [67/158] test_comment_sign.py: 1 passed, 1.6s, FAILED [68/158] test_close_document.py: 1 passed, 3.7s, FAILED [69/158] test_close_many.py: 0 passed, 3.5s, FAILED [70/158] test_contents_page.py: 3 passed, 1.7s, FAILED [71/158] test_contrast.py: 2 passed, 1.5s, FAILED [72/158] test_docinfo.py: 1 passed, 1.8s, FAILED [74/158] test_delete_pages.py: 0 passed, 2.7s, FAILED [75/158] test_ebooks.py: 2 passed, 1.8s, FAILED [77/158] test_filename.py: 8 passed, 1.7s, FAILED [81/158] test_formats.py: 8 passed, 1.8s, FAILED [83/158] test_findbar.py: 0 passed, 4.0s, FAILED [84/158] test_hide_pictures.py: 1 passed, 1.6s, FAILED [87/158] test_history.py: 1 passed, 1.6s, FAILED [91/158] test_layers_panel.py: 1 passed, 1.7s, FAILED [92/158] test_large_pages.py: 1 passed, 2.3s, FAILED [93/158] test_lookups.py: 1 passed, 1.0s, FAILED [94/158] test_linkpreview.py: 0 passed, 2.7s, FAILED [95/158] test_lookup.py: 2 passed, 1.9s, FAILED [96/158] test_mystamps.py: 2 passed, 1.1s, FAILED [97/158] test_objects.py: 4 passed, 1.1s, FAILED [99/158] test_modes.py: 0 passed, 3.3s, FAILED [102/158] test_one_width.py: 0 passed, 1.4s, FAILED [104/158] test_open_recent.py: 0 passed, 1.8s, FAILED [107/158] test_pandoc.py: 1 passed, 1.1s, FAILED [108/158] test_pagepick.py: 1 passed, 1.6s, FAILED [109/158] test_paste_picture.py: 0 passed, 1.6s, FAILED [110/158] test_performance.py: 6 passed, 2.0s, FAILED [112/158] test_pictures.py: 0 passed, 2.8s, FAILED [114/158] test_instance.py: 8 passed, 15.0s, FAILED [115/158] test_readingorder.py: 1 passed, 1.6s, FAILED [117/158] test_protection.py: 6 passed, 2.6s, FAILED [118/158] test_readingbar.py: 0 passed, 2.7s, FAILED [121/158] test_rtl.py: 0 passed, 1.6s, FAILED [122/158] test_revert.py: 0 passed, 2.1s, FAILED [123/158] test_runnable.py: 1 passed, 2.7s, FAILED [124/158] test_scanner.py: 2 passed, 2.4s, FAILED [127/158] test_selectionbar.py: 0 passed, 2.7s, FAILED [129/158] test_snapshots.py: 0 passed, 1.6s, FAILED [131/158] test_snippets.py: 0 passed, 2.6s, FAILED [132/158] test_signature_picture.py: 8 passed, 3.5s, FAILED [135/158] test_settings_more.py: 9 passed, 5.3s, FAILED [138/158] test_stabilizer.py: 0 passed, 2.1s, FAILED [140/158] test_startup.py: 8 passed, 2.5s, FAILED [141/158] test_steps.py: 6 passed, 1.8s, FAILED [144/158] test_textindex.py: 42 passed, 3.2s, FAILED [145/158] test_thumbcache.py: 3 passed, 1.6s, FAILED [146/158] test_textselect.py: 0 passed, 3.9s, FAILED [147/158] test_thisfile.py: 1 passed, 2.7s, FAILED [153/158] test_visualcompare.py: 3 passed, 1.9s, FAILED [154/158] test_wordcount.py: 1 passed, 1.6s, FAILED [157/158] test_wordfinder.py: 6 passed, 1.8s, FAILED [158/158] test_work_counts.py: 0 passed, 1.6s, FAILED ====================================================================== impose/test_gui.py ====================================================================== ...............FFF....F...FF...Fs [100%] =================================== FAILURES =================================== ___________________________ test_preview_apply_undo ____________________________ app = window = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/impose_test_gui.py/tmp/test_preview_apply_undo0') def test_preview_apply_undo(app, window, tmp_path): sample = tmp_path / "s.pdf" assert main(["sample", "--count", "6", "--paper", "a5", "-o", str(sample), "-q"]) == 0 window.auto.setChecked(False) > window.open_path(sample) tests/impose/test_gui.py:133: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/impose/test_gui.py:50: in open_path host.open_path(Path(path)) ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ----------------------------- Captured stdout call ----------------------------- Wrote /tmp/py-pdftools-tests-xg90qr1r/impose_test_gui.py/tmp/test_preview_apply_undo0/s.pdf (6 pages) _______________________ test_multiple_outputs_and_errors _______________________ app = window = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/impose_test_gui.py/tmp/test_multiple_outputs_and_erro0') def test_multiple_outputs_and_errors(app, window, tmp_path): sample = tmp_path / "s.pdf" assert main(["sample", "--count", "4", "-o", str(sample), "-q"]) == 0 window.auto.setChecked(False) > window.open_path(sample) tests/impose/test_gui.py:153: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/impose/test_gui.py:50: in open_path host.open_path(Path(path)) ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ----------------------------- Captured stdout call ----------------------------- Wrote /tmp/py-pdftools-tests-xg90qr1r/impose_test_gui.py/tmp/test_multiple_outputs_and_erro0/s.pdf (4 pages) ________________________ test_sequence_run_on_document _________________________ app = window = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/impose_test_gui.py/tmp/test_sequence_run_on_document0') def test_sequence_run_on_document(app, window, tmp_path): sample = tmp_path / "s.pdf" assert main(["sample", "--count", "8", "-o", str(sample), "-q"]) == 0 window.auto.setChecked(False) > window.open_path(sample) tests/impose/test_gui.py:172: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/impose/test_gui.py:50: in open_path host.open_path(Path(path)) ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ----------------------------- Captured stdout call ----------------------------- Wrote /tmp/py-pdftools-tests-xg90qr1r/impose_test_gui.py/tmp/test_sequence_run_on_document0/s.pdf (8 pages) ______________________________ test_basic_preview ______________________________ app = window = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/impose_test_gui.py/tmp/test_basic_preview0') def test_basic_preview(app, window, tmp_path): example = Path(__file__).resolve().parents[2] / "docs" / "example" / "numbers-100.pdf" window.auto.setChecked(False) > window.open_path(example) tests/impose/test_gui.py:242: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/impose/test_gui.py:50: in open_path host.open_path(Path(path)) ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________________ test_save_saves_what_the_result_pane_shows __________________ app = window = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/impose_test_gui.py/tmp/test_save_saves_what_the_resul0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f38b34f39a0> def test_save_saves_what_the_result_pane_shows(app, window, tmp_path, monkeypatch): sample = tmp_path / "s.pdf" assert main(["sample", "--count", "8", "--paper", "a5", "-o", str(sample), "-q"]) == 0 targets = iter([tmp_path / "out1.pdf", tmp_path / "out2.pdf", tmp_path / "out3.pdf"]) monkeypatch.setattr(window, "_save_target", lambda title, suggested: next(targets)) window.auto.setChecked(False) > window.open_path(sample) tests/impose/test_gui.py:310: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/impose/test_gui.py:50: in open_path host.open_path(Path(path)) ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ----------------------------- Captured stdout call ----------------------------- Wrote /tmp/py-pdftools-tests-xg90qr1r/impose_test_gui.py/tmp/test_save_saves_what_the_resul0/s.pdf (8 pages) _______________ test_a_save_is_not_lost_to_the_automatic_preview _______________ app = window = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/impose_test_gui.py/tmp/test_a_save_is_not_lost_to_the0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f38b2392ac0> def test_a_save_is_not_lost_to_the_automatic_preview(app, window, tmp_path, monkeypatch): """An option changed (the automatic preview due 0.7 s later) and Save at once: the preview due no longer takes the place of the run the save waits for (the save was lost: what made the test above fail under load).""" sample = tmp_path / "s.pdf" assert main(["sample", "--count", "4", "--paper", "a5", "-o", str(sample), "-q"]) == 0 monkeypatch.setattr(window, "_save_target", lambda title, suggested: tmp_path / "saved.pdf") window.auto.setChecked(True) > window.open_path(sample) tests/impose/test_gui.py:337: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/impose/test_gui.py:50: in open_path host.open_path(Path(path)) ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ----------------------------- Captured stdout call ----------------------------- Wrote /tmp/py-pdftools-tests-xg90qr1r/impose_test_gui.py/tmp/test_a_save_is_not_lost_to_the0/s.pdf (4 pages) __________________________ test_save_as_pdfa_or_pdfx ___________________________ app = window = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/impose_test_gui.py/tmp/test_save_as_pdfa_or_pdfx0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f38b1c6b150> def test_save_as_pdfa_or_pdfx(app, window, tmp_path, monkeypatch): """File ▸ Save as: what Save saves (running the command first if needed), then given to pdf2iso; greyed out without it.""" from py_pdftools.impose import conform sample = tmp_path / "s.pdf" assert main(["sample", "--count", "8", "--paper", "a5", "-o", str(sample), "-q"]) == 0 assert list(window.output_actions) == ["", "a-1b", "a-2b", "a-3b", "x-4"] monkeypatch.setattr(conform, "command", lambda path=None: None) window._show_output() assert window.output_actions[""].isEnabled() and not window.output_actions["x-4"].isEnabled() assert "Ghostscript" in window.output_actions["x-4"].toolTip() calls = [] def fake(source, target, standard, password=""): calls.append((Path(target), standard)) return "structural check: PASS" monkeypatch.setattr(conform, "command", lambda path=None: ["pdf2iso"]) monkeypatch.setattr(conform, "convert", fake) window._show_output() assert window.output_actions["x-4"].isEnabled() targets = iter([tmp_path / "out1.pdf", tmp_path / "out2.pdf"]) monkeypatch.setattr(window, "_save_target", lambda title, suggested: next(targets)) window.auto.setChecked(False) > window.open_path(sample) tests/impose/test_gui.py:438: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/impose/test_gui.py:50: in open_path host.open_path(Path(path)) ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ----------------------------- Captured stdout call ----------------------------- Wrote /tmp/py-pdftools-tests-xg90qr1r/impose_test_gui.py/tmp/test_save_as_pdfa_or_pdfx0/s.pdf (8 pages) =========================== short test summary info ============================ FAILED tests/impose/test_gui.py::test_preview_apply_undo - AttributeError: 'N... FAILED tests/impose/test_gui.py::test_multiple_outputs_and_errors - Attribute... FAILED tests/impose/test_gui.py::test_sequence_run_on_document - AttributeErr... FAILED tests/impose/test_gui.py::test_basic_preview - AttributeError: 'NoneTy... FAILED tests/impose/test_gui.py::test_save_saves_what_the_result_pane_shows FAILED tests/impose/test_gui.py::test_a_save_is_not_lost_to_the_automatic_preview FAILED tests/impose/test_gui.py::test_save_as_pdfa_or_pdfx - AttributeError: ... 7 failed, 25 passed, 1 skipped in 9.10s ====================================================================== test_ocr.py ====================================================================== ...sss..FF....F.. [100%] =================================== FAILURES =================================== ____________________ test_text_recognised_into_the_document ____________________ window = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_ocr.py/tmp/test_text_recognised_into_the_0') @needs_tesseract def test_text_recognised_into_the_document(window, tmp_path): """The text read goes into the document as a change of it: undone and redone like the others, and corrected where the review said so.""" path = scan(tmp_path / "scan.pdf", pages=2) > assert window.open_path(path) ^^^^^^^^^^^^^^^^^^^^^^ tests/test_ocr.py:172: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______________________________ test_the_mode_ocr _______________________________ window = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_ocr.py/tmp/test_the_mode_ocr0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fd919843850> @needs_tesseract def test_the_mode_ocr(window, tmp_path, monkeypatch): """The dialog of the menu of the thumbnails, and the mode OCR: its panel chooses the pages and the languages, reads them, and writes the text after the doubtful words were checked.""" from PySide6.QtCore import Qt from PySide6.QtWidgets import QDialog from py_pdftools.gui import ocr_dialog path = scan(tmp_path / "scan.pdf", pages=3) > assert window.open_path(path) ^^^^^^^^^^^^^^^^^^^^^^ tests/test_ocr.py:197: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________________________ test_an_area_read_again ____________________________ window = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_ocr.py/tmp/test_an_area_read_again0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fd91954add0> @needs_tesseract def test_an_area_read_again(window, tmp_path, monkeypatch): """The tool Picture of an area: Read it again (OCR), in a language asked for; the invisible text an earlier OCR wrote there goes, the new words come; not where the page has text of its own.""" path = scan(tmp_path / "scan.pdf") > assert window.open_path(path) ^^^^^^^^^^^^^^^^^^^^^^ tests/test_ocr.py:358: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_ocr.py::test_text_recognised_into_the_document - AttributeE... FAILED tests/test_ocr.py::test_the_mode_ocr - AttributeError: 'NoneType' obje... FAILED tests/test_ocr.py::test_an_area_read_again - AttributeError: 'NoneType... 3 failed, 11 passed, 3 skipped in 11.77s ====================================================================== redact/test_gui.py ====================================================================== EEEEEEEEEEEEEEEEEEEE [100%] ==================================== ERRORS ==================================== ___________________ ERROR at setup of test_draw_move_resize ____________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_draw_move_resize0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_draw_move_resize0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f84f35ac2b0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") def ask_bookmarks(name, leaks): # (likewise) raise AssertionError(f"bookmarks asked about: {leaks}") w.warn, w.ask_bookmarks = warn, ask_bookmarks w.ask_recover = lambda when: False w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/redact/test_gui.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________________ ERROR at setup of test_tiny_drag_draws_nothing ________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_tiny_drag_draws_nothing0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_tiny_drag_draws_nothing0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f84fa76cb00> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") def ask_bookmarks(name, leaks): # (likewise) raise AssertionError(f"bookmarks asked about: {leaks}") w.warn, w.ask_bookmarks = warn, ask_bookmarks w.ask_recover = lambda when: False w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/redact/test_gui.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________ ERROR at setup of test_over_text_marks_it_ctrl_draws _____________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_over_text_marks_it_ctrl_d0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_over_text_marks_it_ctrl_d0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f84f34d7770> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") def ask_bookmarks(name, leaks): # (likewise) raise AssertionError(f"bookmarks asked about: {leaks}") w.warn, w.ask_bookmarks = warn, ask_bookmarks w.ask_recover = lambda when: False w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/redact/test_gui.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________________ ERROR at setup of test_double_click_a_word __________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_double_click_a_word0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_double_click_a_word0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f84f34f68b0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") def ask_bookmarks(name, leaks): # (likewise) raise AssertionError(f"bookmarks asked about: {leaks}") w.warn, w.ask_bookmarks = warn, ask_bookmarks w.ask_recover = lambda when: False w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/redact/test_gui.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _______________ ERROR at setup of test_repeat_on_pages_then_save _______________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_repeat_on_pages_then_save0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_repeat_on_pages_then_save0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f84f34f7790> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") def ask_bookmarks(name, leaks): # (likewise) raise AssertionError(f"bookmarks asked about: {leaks}") w.warn, w.ask_bookmarks = warn, ask_bookmarks w.ask_recover = lambda when: False w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/redact/test_gui.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____ ERROR at setup of test_a_box_moved_on_another_page_stays_of_its_own ______ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_a_box_moved_on_another_pa0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_a_box_moved_on_another_pa0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f84f279af50> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") def ask_bookmarks(name, leaks): # (likewise) raise AssertionError(f"bookmarks asked about: {leaks}") w.warn, w.ask_bookmarks = warn, ask_bookmarks w.ask_recover = lambda when: False w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/redact/test_gui.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________________ ERROR at setup of test_default_colour_is_kept _________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_default_colour_is_kept0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_default_colour_is_kept0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f84f279ab50> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") def ask_bookmarks(name, leaks): # (likewise) raise AssertionError(f"bookmarks asked about: {leaks}") w.warn, w.ask_bookmarks = warn, ask_bookmarks w.ask_recover = lambda when: False w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/redact/test_gui.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________________ ERROR at setup of test_find_and_redact ____________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_find_and_redact0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_find_and_redact0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f84f05448c0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") def ask_bookmarks(name, leaks): # (likewise) raise AssertionError(f"bookmarks asked about: {leaks}") w.warn, w.ask_bookmarks = warn, ask_bookmarks w.ask_recover = lambda when: False w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/redact/test_gui.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _______________ ERROR at setup of test_find_several_and_patterns _______________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_find_several_and_patterns0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_find_several_and_patterns0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f84f05459a0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") def ask_bookmarks(name, leaks): # (likewise) raise AssertionError(f"bookmarks asked about: {leaks}") w.warn, w.ask_bookmarks = warn, ask_bookmarks w.ask_recover = lambda when: False w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/redact/test_gui.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________ ERROR at setup of test_properties_codes_and_default ______________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_properties_codes_and_defa0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_properties_codes_and_defa0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f84f0168bb0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") def ask_bookmarks(name, leaks): # (likewise) raise AssertionError(f"bookmarks asked about: {leaks}") w.warn, w.ask_bookmarks = warn, ask_bookmarks w.ask_recover = lambda when: False w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/redact/test_gui.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________________ ERROR at setup of test_modes_keep_to_their_own ________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_modes_keep_to_their_own0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_modes_keep_to_their_own0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f84f016a350> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") def ask_bookmarks(name, leaks): # (likewise) raise AssertionError(f"bookmarks asked about: {leaks}") w.warn, w.ask_bookmarks = warn, ask_bookmarks w.ask_recover = lambda when: False w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/redact/test_gui.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________ ERROR at setup of test_marks_are_saved_with_the_document ___________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_marks_are_saved_with_the_0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_marks_are_saved_with_the_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f84f0e786d0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") def ask_bookmarks(name, leaks): # (likewise) raise AssertionError(f"bookmarks asked about: {leaks}") w.warn, w.ask_bookmarks = warn, ask_bookmarks w.ask_recover = lambda when: False w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/redact/test_gui.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________ ERROR at setup of test_copy_asks_to_save_other_changes ____________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_copy_asks_to_save_other_c0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_copy_asks_to_save_other_c0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f84f34437d0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") def ask_bookmarks(name, leaks): # (likewise) raise AssertionError(f"bookmarks asked about: {leaks}") w.warn, w.ask_bookmarks = warn, ask_bookmarks w.ask_recover = lambda when: False w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/redact/test_gui.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________________ ERROR at setup of test_never_over_the_document ________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_never_over_the_document0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_never_over_the_document0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f84f042b4d0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") def ask_bookmarks(name, leaks): # (likewise) raise AssertionError(f"bookmarks asked about: {leaks}") w.warn, w.ask_bookmarks = warn, ask_bookmarks w.ask_recover = lambda when: False w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/redact/test_gui.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________ ERROR at setup of test_flattened_copies_leave_the_marks_out __________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_flattened_copies_leave_th0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_flattened_copies_leave_th0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f84f35e3b70> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") def ask_bookmarks(name, leaks): # (likewise) raise AssertionError(f"bookmarks asked about: {leaks}") w.warn, w.ask_bookmarks = warn, ask_bookmarks w.ask_recover = lambda when: False w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/redact/test_gui.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _______ ERROR at setup of test_bookmarks_that_give_away_are_asked_about ________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_bookmarks_that_give_away_0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_bookmarks_that_give_away_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f84f3429440> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") def ask_bookmarks(name, leaks): # (likewise) raise AssertionError(f"bookmarks asked about: {leaks}") w.warn, w.ask_bookmarks = warn, ask_bookmarks w.ask_recover = lambda when: False w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/redact/test_gui.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________________ ERROR at setup of test_sanitize_and_metadata _________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_sanitize_and_metadata0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_sanitize_and_metadata0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f84f11d3250> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") def ask_bookmarks(name, leaks): # (likewise) raise AssertionError(f"bookmarks asked about: {leaks}") w.warn, w.ask_bookmarks = warn, ask_bookmarks w.ask_recover = lambda when: False w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/redact/test_gui.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______________________ ERROR at setup of test_the_result _______________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_the_result0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_the_result0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f84f0d5a490> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") def ask_bookmarks(name, leaks): # (likewise) raise AssertionError(f"bookmarks asked about: {leaks}") w.warn, w.ask_bookmarks = warn, ask_bookmarks w.ask_recover = lambda when: False w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/redact/test_gui.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _______________________ ERROR at setup of test_box_menu ________________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_box_menu0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_box_menu0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f84f0f1e330> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") def ask_bookmarks(name, leaks): # (likewise) raise AssertionError(f"bookmarks asked about: {leaks}") w.warn, w.ask_bookmarks = warn, ask_bookmarks w.ask_recover = lambda when: False w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/redact/test_gui.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _______________ ERROR at setup of test_saving_in_another_process _______________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_saving_in_another_process0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_gui.py/tmp/test_saving_in_another_process0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f84e26bb6d0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") def ask_bookmarks(name, leaks): # (likewise) raise AssertionError(f"bookmarks asked about: {leaks}") w.warn, w.ask_bookmarks = warn, ask_bookmarks w.ask_recover = lambda when: False w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/redact/test_gui.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/redact/test_gui.py::test_draw_move_resize - AttributeError: 'None... ERROR tests/redact/test_gui.py::test_tiny_drag_draws_nothing - AttributeError... ERROR tests/redact/test_gui.py::test_over_text_marks_it_ctrl_draws - Attribut... ERROR tests/redact/test_gui.py::test_double_click_a_word - AttributeError: 'N... ERROR tests/redact/test_gui.py::test_repeat_on_pages_then_save - AttributeErr... ERROR tests/redact/test_gui.py::test_a_box_moved_on_another_page_stays_of_its_own ERROR tests/redact/test_gui.py::test_default_colour_is_kept - AttributeError:... ERROR tests/redact/test_gui.py::test_find_and_redact - AttributeError: 'NoneT... ERROR tests/redact/test_gui.py::test_find_several_and_patterns - AttributeErr... ERROR tests/redact/test_gui.py::test_properties_codes_and_default - Attribute... ERROR tests/redact/test_gui.py::test_modes_keep_to_their_own - AttributeError... ERROR tests/redact/test_gui.py::test_marks_are_saved_with_the_document - Attr... ERROR tests/redact/test_gui.py::test_copy_asks_to_save_other_changes - Attrib... ERROR tests/redact/test_gui.py::test_never_over_the_document - AttributeError... ERROR tests/redact/test_gui.py::test_flattened_copies_leave_the_marks_out - A... ERROR tests/redact/test_gui.py::test_bookmarks_that_give_away_are_asked_about ERROR tests/redact/test_gui.py::test_sanitize_and_metadata - AttributeError: ... ERROR tests/redact/test_gui.py::test_the_result - AttributeError: 'NoneType' ... ERROR tests/redact/test_gui.py::test_box_menu - AttributeError: 'NoneType' ob... ERROR tests/redact/test_gui.py::test_saving_in_another_process - AttributeErr... 20 errors in 12.68s ====================================================================== pages/test_reduce.py ====================================================================== ........F.. [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ heavy = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_reduce.py/tmp/test_in_the_window0/heavy.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_reduce.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbaae3a63f0> def test_in_the_window(heavy, tmp_path, monkeypatch): from PySide6.QtWidgets import QApplication from py_pdftools.gui.reduce_dialog import ReduceDialog from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(heavy) ^^^^^^^^^^^^^^^^^^ tests/pages/test_reduce.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/pages/test_reduce.py::test_in_the_window - AttributeError: 'None... 1 failed, 10 passed in 19.62s ====================================================================== test_navigation.py ====================================================================== EEEFEEE.EEEFEEEEEEEEEEEEEEEEEEEFEFFEEEEEE.EEFE. [100%] ==================================== ERRORS ==================================== __________________ ERROR at setup of test_the_bookmarks_panel __________________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_the_bookmarks_panel0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_the_bookmarks_panel0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5035b84640> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________________ ERROR at setup of test_the_panel_in_every_mode ________________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_the_panel_in_every_mode0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_the_panel_in_every_mode0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5035b84180> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________________ ERROR at setup of test_editing_bookmarks ___________________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_editing_bookmarks0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_editing_bookmarks0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f503523bd10> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________________ ERROR at setup of test_following_links ____________________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_following_links0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_following_links0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f503520ee00> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________________ ERROR at setup of test_the_history_of_jumps __________________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_the_history_of_jumps0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_the_history_of_jumps0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f503457c150> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________ ERROR at setup of test_find_leaves_places_in_the_history ___________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_find_leaves_places_in_the0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_find_leaves_places_in_the0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f503457ee50> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _______________ ERROR at setup of test_opening_where_it_was_left _______________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_opening_where_it_was_left0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_opening_where_it_was_left0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f50352ab890> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________ ERROR at setup of test_opening_as_the_document_asks ______________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_opening_as_the_document_a0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_opening_as_the_document_a0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5043f33af0> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _ ERROR at setup of test_the_bookmarks_start_hidden_and_stay_as_the_user_leaves_them _ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_the_bookmarks_start_hidde0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_the_bookmarks_start_hidde0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5043d60f30> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________________ ERROR at setup of test_two_pages_side_by_side _________________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_two_pages_side_by_side0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_two_pages_side_by_side0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5043411a90> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________ ERROR at setup of test_a_document_asking_for_two_pages ____________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_a_document_asking_for_two0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_a_document_asking_for_two0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f504330dfd0> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______________________ ERROR at setup of test_more_zooms _______________________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_more_zooms0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_more_zooms0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f50344fb750> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________________ ERROR at setup of test_rotating_the_view ___________________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_rotating_the_view0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_rotating_the_view0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5034a820a0> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________________ ERROR at setup of test_reading_colours ____________________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_reading_colours0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_reading_colours0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5034cf3890> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _______________ ERROR at setup of test_full_screen_presentation ________________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_full_screen_presentation0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_full_screen_presentation0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f502ffdf1b0> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _ ERROR at setup of test_f11_from_the_page_in_view_and_shift_f11_from_the_first _ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_f11_from_the_page_in_view0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_f11_from_the_page_in_view0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5034e78f80> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________ ERROR at setup of test_a_presentation_with_timed_pages ____________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_a_presentation_with_timed0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_a_presentation_with_timed0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f502fef4c50> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________________ ERROR at setup of test_tabs_and_a_split_view _________________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_tabs_and_a_split_view0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_tabs_and_a_split_view0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f502e6bbb50> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________ ERROR at setup of test_reloading_a_file_changed_on_disk ____________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_reloading_a_file_changed_0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_reloading_a_file_changed_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5034137e00> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________ ERROR at setup of test_the_details_of_a_page_on_hover _____________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_the_details_of_a_page_on_0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_the_details_of_a_page_on_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5034137230> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _ ERROR at setup of test_scrolling_with_space_the_middle_button_and_the_wheel __ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_scrolling_with_space_the_0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_scrolling_with_space_the_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f50341920b0> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________ ERROR at setup of test_hiding_the_gaps_between_pages _____________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_hiding_the_gaps_between_p0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_hiding_the_gaps_between_p0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5034919080> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________________ ERROR at setup of test_the_page_navigation_bar ________________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_the_page_navigation_bar0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_the_page_navigation_bar0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f503491b930> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________ ERROR at setup of test_ocr_from_the_thumbnails_in_every_mode _________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_ocr_from_the_thumbnails_i0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_ocr_from_the_thumbnails_i0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f502e3fea50> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________ ERROR at setup of test_extracted_pages_open_in_a_new_tab ___________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_extracted_pages_open_in_a0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_extracted_pages_open_in_a0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5034bf9940> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____ ERROR at setup of test_the_thumbnails_are_in_the_middle_of_their_panel ____ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_the_thumbnails_are_in_the0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_the_thumbnails_are_in_the0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5034c37c40> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __ ERROR at setup of test_f5_is_preview_in_impose_and_the_bookmarks_elsewhere __ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_f5_is_preview_in_impose_a0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_f5_is_preview_in_impose_a0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5034c36ba0> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________ ERROR at setup of test_left_and_right_turn_the_pages _____________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_left_and_right_turn_the_p0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_left_and_right_turn_the_p0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f502e25dc50> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______________ ERROR at setup of test_bookmark_keys_as_in_okular _______________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_bookmark_keys_as_in_okula0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_bookmark_keys_as_in_okula0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f502fe70590> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________________ ERROR at setup of test_down_a_screen _____________________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_down_a_screen0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_down_a_screen0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f502e077e00> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______________ ERROR at setup of test_the_overlap_in_the_settings ______________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_the_overlap_in_the_settin0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_the_overlap_in_the_settin0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f502e077ee0> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________________________ ERROR at setup of test_halfway ________________________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_halfway0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_halfway0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f502e802040> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________________ ERROR at setup of test_find_in_this_chapter __________________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_find_in_this_chapter0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_find_in_this_chapter0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f502e8024a0> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________________ ERROR at setup of test_the_marked_place ____________________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_the_marked_place0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_the_marked_place0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f502e8d3d90> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______ ERROR at setup of test_previous_view_comes_back_to_the_same_height ______ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_previous_view_comes_back_0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_previous_view_comes_back_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f502f946cf0> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________________ ERROR at setup of test_near_in_the_dialog ___________________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_near_in_the_dialog0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_near_in_the_dialog0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f502f971550> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________ ERROR at setup of test_each_document_keeps_its_layout _____________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_each_document_keeps_its_l0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_each_document_keeps_its_l0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f50344278c0> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________ ERROR at setup of test_the_thumbnails_frame_the_part_in_view _________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_the_thumbnails_frame_the_0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_the_thumbnails_frame_the_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f50347a2270> @pytest.fixture def window(book, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:38: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =================================== FAILURES =================================== _______________________ test_bookmarks_from_the_headings _______________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_bookmarks_from_the_headin0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f503520ecf0> def test_bookmarks_from_the_headings(tmp_path, monkeypatch): from PySide6.QtWidgets import QMessageBox QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "headed.pdf" doc = pymupdf.open() for c in (1, 2): page = doc.new_page() page.insert_text((72, 80), f"Chapter {c}", fontsize=24) page.insert_text((72, 130), f"Part {c}.1", fontsize=16) for i in range(12): page.insert_text((72, 170 + i * 18), "Body text of the chapter, in a smaller type.", fontsize=11) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:135: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______________________ test_the_last_session_opened_again ______________________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_the_last_session_opened_a0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_the_last_session_opened_a0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5034235160> def test_the_last_session_opened_again(book, tmp_path, monkeypatch): from py_pdftools import gui from py_pdftools.core import config from py_pdftools.gui.window import _WINDOWS QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) gui.save_session([book]) monkeypatch.setattr(QApplication.instance(), "exec", lambda: 0) before = list(_WINDOWS) assert gui.main([]) == 0 new = [w for w in _WINDOWS if w not in before] assert new and new[0].path is None # (the setting is off) config.set("reopen", True) > assert gui.main([]) == 0 ^^^^^^^^^^^^ tests/test_navigation.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__init__.py:135: in main win.open_path(Path(path), place) ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________________ test_floating_parts_go_with_their_tab _____________________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_floating_parts_go_with_th0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_floating_parts_go_with_th0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f502f893cb0> def test_floating_parts_go_with_their_tab(book, tmp_path, monkeypatch): """A panel (or a toolbar) dragged out of a window that is a tab is hidden with it: when another tab comes to the front, and when the window of tabs is closed (they stayed on the screen, each with its icon in the taskbar); it comes back with its tab.""" from py_pdftools.gui.tabs import open_in_tab QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) other = tmp_path / "other.pdf" doc = pymupdf.open() doc.new_page() doc.save(other) # Ventanas que solo han sido pestañas: una mostrada antes como ventana propia (la del fixture) y luego # metida en una pestaña hacía que la pantalla offscreen de las pruebas se rompiera al terminar Python, # después de pasar todas (GitHub, Copr). > window = open_in_tab(book) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:931: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/tabs.py:320: in open_in_tab win.open_path(Path(file), place) ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________________________ test_trimmed_margins _____________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_trimmed_margins0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f502fe72eb0> def test_trimmed_margins(tmp_path, monkeypatch): """Ver > Disposición de página > Recortar los márgenes, como en Okular: cada página muestra solo su parte con tinta, la misma para todas las de su tamaño; el texto sigue donde estaba, y la opción se recuerda.""" QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "margins.pdf" doc = pymupdf.open() for i in range(4): page = doc.new_page() # (595 x 842) page.insert_textbox(pymupdf.Rect(150, 200, 450, 600), f"Page {i + 1} " * 60, fontsize=11) doc.new_page() # (a blank page: it doesn't widen the part shown) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(1000, 800) w.show() try: > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:996: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _______________ test_a_change_of_the_document_stays_at_the_page ________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_a_change_of_the_document_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f502fe658d0> def test_a_change_of_the_document_stays_at_the_page(tmp_path, monkeypatch): """After a change of the document itself, the page shown is the same: the list of thumbnails, made again, no longer takes the window to another page (from the 40th to the 19th, before).""" QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "long.pdf" doc = pymupdf.open() for i in range(80): doc.new_page(width=460, height=700).insert_text((50, 50), f"P{i + 1}") doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(1400, 1000) w.show() try: > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:1034: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________________________ test_links_by_their_letters __________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_navigation.py/tmp/test_links_by_their_letters0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5034426eb0> def test_links_by_their_letters(tmp_path, monkeypatch): """Follow a link by its letters (Ctrl+Shift+K), as Zathura: letters over each link in view; typing them follows it, Escape takes them away.""" from PySide6.QtCore import QEvent, Qt from PySide6.QtGui import QKeyEvent from py_pdftools.gui.links import hint_labels assert hint_labels(3) == ["a", "s", "d"] and len(set(hint_labels(30))) == 30 assert all(len(x) == 2 for x in hint_labels(30)) and hint_labels(0) == [] QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "links.pdf" doc = pymupdf.open() for i in range(4): doc.new_page() first = doc[0] for i, target in enumerate((2, 3)): first.insert_link({"kind": pymupdf.LINK_GOTO, "from": pymupdf.Rect(72, 100 + 40 * i, 200, 120 + 40 * i), "page": target}) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(900, 1000) w.show() try: > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_navigation.py:1255: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_navigation.py::test_bookmarks_from_the_headings - Attribute... FAILED tests/test_navigation.py::test_the_last_session_opened_again - Attribu... FAILED tests/test_navigation.py::test_floating_parts_go_with_their_tab - Attr... FAILED tests/test_navigation.py::test_trimmed_margins - AttributeError: 'None... FAILED tests/test_navigation.py::test_a_change_of_the_document_stays_at_the_page FAILED tests/test_navigation.py::test_links_by_their_letters - AttributeError... ERROR tests/test_navigation.py::test_the_bookmarks_panel - AttributeError: 'N... ERROR tests/test_navigation.py::test_the_panel_in_every_mode - AttributeError... ERROR tests/test_navigation.py::test_editing_bookmarks - AttributeError: 'Non... ERROR tests/test_navigation.py::test_following_links - AttributeError: 'NoneT... ERROR tests/test_navigation.py::test_the_history_of_jumps - AttributeError: '... ERROR tests/test_navigation.py::test_find_leaves_places_in_the_history - Attr... ERROR tests/test_navigation.py::test_opening_where_it_was_left - AttributeErr... ERROR tests/test_navigation.py::test_opening_as_the_document_asks - Attribute... ERROR tests/test_navigation.py::test_the_bookmarks_start_hidden_and_stay_as_the_user_leaves_them ERROR tests/test_navigation.py::test_two_pages_side_by_side - AttributeError:... ERROR tests/test_navigation.py::test_a_document_asking_for_two_pages - Attrib... ERROR tests/test_navigation.py::test_more_zooms - AttributeError: 'NoneType' ... ERROR tests/test_navigation.py::test_rotating_the_view - AttributeError: 'Non... ERROR tests/test_navigation.py::test_reading_colours - AttributeError: 'NoneT... ERROR tests/test_navigation.py::test_full_screen_presentation - AttributeErro... ERROR tests/test_navigation.py::test_f11_from_the_page_in_view_and_shift_f11_from_the_first ERROR tests/test_navigation.py::test_a_presentation_with_timed_pages - Attrib... ERROR tests/test_navigation.py::test_tabs_and_a_split_view - AttributeError: ... ERROR tests/test_navigation.py::test_reloading_a_file_changed_on_disk - Attri... ERROR tests/test_navigation.py::test_the_details_of_a_page_on_hover - Attribu... ERROR tests/test_navigation.py::test_scrolling_with_space_the_middle_button_and_the_wheel ERROR tests/test_navigation.py::test_hiding_the_gaps_between_pages - Attribut... ERROR tests/test_navigation.py::test_the_page_navigation_bar - AttributeError... ERROR tests/test_navigation.py::test_ocr_from_the_thumbnails_in_every_mode - ... ERROR tests/test_navigation.py::test_extracted_pages_open_in_a_new_tab - Attr... ERROR tests/test_navigation.py::test_the_thumbnails_are_in_the_middle_of_their_panel ERROR tests/test_navigation.py::test_f5_is_preview_in_impose_and_the_bookmarks_elsewhere ERROR tests/test_navigation.py::test_left_and_right_turn_the_pages - Attribut... ERROR tests/test_navigation.py::test_bookmark_keys_as_in_okular - AttributeEr... ERROR tests/test_navigation.py::test_down_a_screen - AttributeError: 'NoneTyp... ERROR tests/test_navigation.py::test_the_overlap_in_the_settings - AttributeE... ERROR tests/test_navigation.py::test_halfway - AttributeError: 'NoneType' obj... ERROR tests/test_navigation.py::test_find_in_this_chapter - AttributeError: '... ERROR tests/test_navigation.py::test_the_marked_place - AttributeError: 'None... ERROR tests/test_navigation.py::test_previous_view_comes_back_to_the_same_height ERROR tests/test_navigation.py::test_near_in_the_dialog - AttributeError: 'No... ERROR tests/test_navigation.py::test_each_document_keeps_its_layout - Attribu... ERROR tests/test_navigation.py::test_the_thumbnails_frame_the_part_in_view - ... 6 failed, 3 passed, 38 errors in 28.47s ====================================================================== test_renderer.py ====================================================================== ........FFFF [100%] =================================== FAILURES =================================== _____________________ test_the_canvas_shows_a_skipped_page _____________________ app = slow_pdf = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_renderer.py/tmp/slow0/slow.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_renderer.py/tmp/test_the_canvas_shows_a_skippe0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f0800796990> def test_the_canvas_shows_a_skipped_page(app, slow_pdf, tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False > assert w.open_path(slow_pdf) ^^^^^^^^^^^^^^^^^^^^^ tests/test_renderer.py:202: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________________ test_thumbnails_only_near_those_in_view ____________________ app = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_renderer.py/tmp/test_thumbnails_only_near_thos0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f0800885550> def test_thumbnails_only_near_those_in_view(app, tmp_path, monkeypatch): """With many pages, only the thumbnails near those in view are made; scrolling the list makes the others, and those far away are forgotten beyond MAX_THUMBS.""" from py_pdftools.gui import window as window_module from py_pdftools.gui.window import MainWindow monkeypatch.setenv("HOME", str(tmp_path)) monkeypatch.setattr(window_module, "MAX_THUMBS", 12) # (fewer than are wanted at each place of the list) path = tmp_path / "long.pdf" doc = pymupdf.open() for i in range(300): doc.new_page().insert_text((72, 72), f"Page {i + 1}", fontsize=14) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(1000, 700) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_renderer.py:229: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________________________ test_deep_zoom_in_tiles ____________________________ app = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_renderer.py/tmp/test_deep_zoom_in_tiles0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f080024e7b0> def test_deep_zoom_in_tiles(app, tmp_path, monkeypatch): """At a zoom where a page would be longer than TILE_ABOVE pixels, it is drawn whole at most BACKDROP_SIDE pixels long, and the part in view in tiles at the full scale; back at a low zoom, no tiles are left.""" from PySide6.QtCore import QRectF from py_pdftools.gui import canvas as canvas_module from py_pdftools.gui.window import MainWindow monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "one.pdf" doc = pymupdf.open() doc.new_page().insert_text((72, 72), "Deep", fontsize=14) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(1000, 700) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_renderer.py:264: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________________ test_tiles_waiting_here_are_asked_again ____________________ app = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_renderer.py/tmp/test_tiles_waiting_here_are_as0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f080097bad0> def test_tiles_waiting_here_are_asked_again(app, tmp_path, monkeypatch): """Tiles waiting to be drawn in the window, when the pages in view are worked out again (a scroll, a zoom), are asked for again: they must not stay as asked forever, leaving the page blurred.""" from py_pdftools.gui.window import MainWindow monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "one.pdf" doc = pymupdf.open() doc.new_page().insert_text((72, 72), "Deep", fontsize=14) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(1000, 700) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_renderer.py:313: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_renderer.py::test_the_canvas_shows_a_skipped_page - Attribu... FAILED tests/test_renderer.py::test_thumbnails_only_near_those_in_view - Attr... FAILED tests/test_renderer.py::test_deep_zoom_in_tiles - AttributeError: 'Non... FAILED tests/test_renderer.py::test_tiles_waiting_here_are_asked_again - Attr... 4 failed, 8 passed in 8.68s ====================================================================== test_large_documents.py ====================================================================== EEEEEEE [100%] ==================================== ERRORS ==================================== ____________________ ERROR at setup of test_rows_worked_out ____________________ long_pdf = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_large_documents.py/tmp/long0/long.pdf') @pytest.fixture def window(long_pdf): QApplication.instance() or QApplication([]) w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) > assert w.open_path(long_pdf) ^^^^^^^^^^^^^^^^^^^^^ tests/test_large_documents.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________ ERROR at setup of test_fitting_goes_through_the_rows_once ___________ long_pdf = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_large_documents.py/tmp/long0/long.pdf') @pytest.fixture def window(long_pdf): QApplication.instance() or QApplication([]) w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) > assert w.open_path(long_pdf) ^^^^^^^^^^^^^^^^^^^^^ tests/test_large_documents.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________ ERROR at setup of test_scrolling_finds_the_page_by_bisection _________ long_pdf = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_large_documents.py/tmp/long0/long.pdf') @pytest.fixture def window(long_pdf): QApplication.instance() or QApplication([]) w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) > assert w.open_path(long_pdf) ^^^^^^^^^^^^^^^^^^^^^ tests/test_large_documents.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________ ERROR at setup of test_pages_get_their_pictures_when_drawn __________ long_pdf = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_large_documents.py/tmp/long0/long.pdf') @pytest.fixture def window(long_pdf): QApplication.instance() or QApplication([]) w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) > assert w.open_path(long_pdf) ^^^^^^^^^^^^^^^^^^^^^ tests/test_large_documents.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________ ERROR at setup of test_the_zoom_animated_about_a_point ____________ long_pdf = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_large_documents.py/tmp/long0/long.pdf') @pytest.fixture def window(long_pdf): QApplication.instance() or QApplication([]) w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) > assert w.open_path(long_pdf) ^^^^^^^^^^^^^^^^^^^^^ tests/test_large_documents.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________________ ERROR at setup of test_the_wheel_glides ____________________ long_pdf = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_large_documents.py/tmp/long0/long.pdf') @pytest.fixture def window(long_pdf): QApplication.instance() or QApplication([]) w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) > assert w.open_path(long_pdf) ^^^^^^^^^^^^^^^^^^^^^ tests/test_large_documents.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___ ERROR at setup of test_pictures_of_the_view_in_the_format_of_the_screen ____ long_pdf = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_large_documents.py/tmp/long0/long.pdf') @pytest.fixture def window(long_pdf): QApplication.instance() or QApplication([]) w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) > assert w.open_path(long_pdf) ^^^^^^^^^^^^^^^^^^^^^ tests/test_large_documents.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_large_documents.py::test_rows_worked_out - AttributeError: '... ERROR tests/test_large_documents.py::test_fitting_goes_through_the_rows_once ERROR tests/test_large_documents.py::test_scrolling_finds_the_page_by_bisection ERROR tests/test_large_documents.py::test_pages_get_their_pictures_when_drawn ERROR tests/test_large_documents.py::test_the_zoom_animated_about_a_point - A... ERROR tests/test_large_documents.py::test_the_wheel_glides - AttributeError: ... ERROR tests/test_large_documents.py::test_pictures_of_the_view_in_the_format_of_the_screen 7 errors in 5.43s ====================================================================== annotate/test_link_edit.py ====================================================================== FFF. [100%] =================================== FAILURES =================================== _________________________ test_draw_change_remove_undo _________________________ window = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_link_edit.py/tmp/test_draw_change_remove_undo0') def test_draw_change_remove_undo(window, tmp_path): > open_in(window, make(tmp_path / "a.pdf")) tests/annotate/test_link_edit.py:66: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/annotate/test_link_edit.py:57: in open_in assert w.open_path(path) ^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________________________ test_on_a_turned_page _____________________________ window = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_link_edit.py/tmp/test_on_a_turned_page0') def test_on_a_turned_page(window, tmp_path): > open_in(window, make(tmp_path / "t.pdf", turn=90)) tests/annotate/test_link_edit.py:94: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/annotate/test_link_edit.py:57: in open_in assert w.open_path(path) ^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________________ test_addresses_of_the_text_and_remove_all ___________________ window = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_link_edit.py/tmp/test_addresses_of_the_text_and0') def test_addresses_of_the_text_and_remove_all(window, tmp_path): > open_in(window, make(tmp_path / "a.pdf")) tests/annotate/test_link_edit.py:105: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/annotate/test_link_edit.py:57: in open_in assert w.open_path(path) ^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/annotate/test_link_edit.py::test_draw_change_remove_undo - Attri... FAILED tests/annotate/test_link_edit.py::test_on_a_turned_page - AttributeErr... FAILED tests/annotate/test_link_edit.py::test_addresses_of_the_text_and_remove_all 3 failed, 1 passed in 2.14s ====================================================================== forms/test_data.py ====================================================================== .......F. [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ form = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/forms_test_data.py/tmp/test_in_the_window0/form.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/forms_test_data.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f93cdfc56d0> def test_in_the_window(form, tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(form) ^^^^^^^^^^^^^^^^^ tests/forms/test_data.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/forms/test_data.py::test_in_the_window - AttributeError: 'NoneTy... 1 failed, 8 passed in 1.34s ====================================================================== forms/test_fill.py ====================================================================== ..FF [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ form = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/forms_test_fill.py/tmp/test_in_the_window0/form.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/forms_test_fill.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f87c5bbbd10> def test_in_the_window(form, tmp_path, monkeypatch): app = QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 900) w.show() try: > assert w.open_path(form) ^^^^^^^^^^^^^^^^^ tests/forms/test_fill.py:63: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________________________ test_formats_checks_and_sums _________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/forms_test_fill.py/tmp/test_formats_checks_and_sums0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f87c5b578a0> def test_formats_checks_and_sums(tmp_path, monkeypatch): """A number typed is kept plainly and shown with its format; a date refused or written in its format; the total summed whenever a price or the tax changes; a value out of range refused.""" app = QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) form = make(tmp_path / "f.pdf") w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(form) ^^^^^^^^^^^^^^^^^ tests/forms/test_fill.py:111: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/forms/test_fill.py::test_in_the_window - AttributeError: 'NoneTy... FAILED tests/forms/test_fill.py::test_formats_checks_and_sums - AttributeErro... 2 failed, 2 passed in 1.77s ====================================================================== pages/test_arrange.py ====================================================================== .......F... [100%] =================================== FAILURES =================================== _________________________________ test_window __________________________________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_arrange.py/tmp/test_window0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_arrange.py/tmp/test_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7efefec6f6b0> @pytest.mark.skipif(importlib.util.find_spec("PySide6") is None, reason="needs PySide6") def test_window(book, tmp_path, monkeypatch): """The pages arranged in the mode Pages of the window: moved, their labels following them (as the user says), deleted, undone, dropped on the list, saved, and some saved as a new file.""" os.environ.setdefault("QT_QPA_PLATFORM", "offscreen") from PySide6.QtCore import QMimeData, QPointF, Qt from PySide6.QtGui import QDropEvent from PySide6.QtWidgets import QApplication from py_pdftools.gui import paging from py_pdftools.gui.window import MainWindow app = QApplication.instance() or QApplication(sys.argv[:1]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False asked = [] monkeypatch.setattr(paging, "ask_labels", lambda parent: (asked.append(1), (arrange.FOLLOW, False))[1]) w.set_labels_rule("ask") > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/pages/test_arrange.py:196: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/pages/test_arrange.py::test_window - AttributeError: 'NoneType' ... 1 failed, 10 passed in 2.31s ====================================================================== annotate/test_sidecar_gui.py ====================================================================== FFFFFFFFFFF [100%] =================================== FAILURES =================================== _____________________ test_apart_without_touching_the_pdf ______________________ make = .make at 0x7f653e696350> book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_sidecar_gui.py/tmp/test_apart_without_touching_th0/book.pdf') def test_apart_without_touching_the_pdf(make, book): > w = make(book) ^^^^^^^^^^ tests/annotate/test_sidecar_gui.py:68: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/annotate/test_sidecar_gui.py:43: in make assert w.open_path(path) ^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________________________ test_taken_out_of_the_pdf ___________________________ make = .make at 0x7f653d970ca0> book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_sidecar_gui.py/tmp/test_taken_out_of_the_pdf0/book.pdf') def test_taken_out_of_the_pdf(make, book): > w = make(book) ^^^^^^^^^^ tests/annotate/test_sidecar_gui.py:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/annotate/test_sidecar_gui.py:43: in make assert w.open_path(path) ^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________________________ test_default_from_the_settings ________________________ make = .make at 0x7f653d9712d0> sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_sidecar_gui.py/tmp/test_default_from_the_settings0/sample.pdf') def test_default_from_the_settings(make, sample): config.set("annot_storage", "file") before = sample.read_bytes() > w = make(sample) ^^^^^^^^^^^^ tests/annotate/test_sidecar_gui.py:115: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/annotate/test_sidecar_gui.py:43: in make assert w.open_path(path) ^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________________________ test_document_changed_too ___________________________ make = .make at 0x7f653c09d0c0> book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_sidecar_gui.py/tmp/test_document_changed_too0/book.pdf') def test_document_changed_too(make, book): > w = make(book) ^^^^^^^^^^ tests/annotate/test_sidecar_gui.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/annotate/test_sidecar_gui.py:43: in make assert w.open_path(path) ^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______________________ test_save_as_and_a_copy_with_them _______________________ make = .make at 0x7f653e64e400> book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_sidecar_gui.py/tmp/test_save_as_and_a_copy_with_t0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_sidecar_gui.py/tmp/test_save_as_and_a_copy_with_t0') def test_save_as_and_a_copy_with_them(make, book, tmp_path): > w = make(book) ^^^^^^^^^^ tests/annotate/test_sidecar_gui.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/annotate/test_sidecar_gui.py:43: in make assert w.open_path(path) ^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _______________________ test_changed_by_another_program ________________________ make = .make at 0x7f653e6956f0> book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_sidecar_gui.py/tmp/test_changed_by_another_progra0/book.pdf') app = def test_changed_by_another_program(make, book, app): > w = make(book) ^^^^^^^^^^ tests/annotate/test_sidecar_gui.py:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/annotate/test_sidecar_gui.py:43: in make assert w.open_path(path) ^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________________________ test_unreadable_file_kept ___________________________ make = .make at 0x7f6536df5dd0> book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_sidecar_gui.py/tmp/test_unreadable_file_kept0/book.pdf') def test_unreadable_file_kept(make, book): xml = sidecar.beside(book) xml.write_text(" w = make(book) ^^^^^^^^^^ tests/annotate/test_sidecar_gui.py:170: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/annotate/test_sidecar_gui.py:43: in make assert w.open_path(path) ^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________________________ test_import_skim_notes ____________________________ make = .make at 0x7f6536f12560> book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_sidecar_gui.py/tmp/test_import_skim_notes0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_sidecar_gui.py/tmp/test_import_skim_notes0') def test_import_skim_notes(make, book, tmp_path): import plistlib source = tmp_path / "book.skim" source.write_bytes(plistlib.dumps([{"type": "Square", "pageIndex": 0, "bounds": "{{100, 700}, {50, 40}}", "contents": "from Skim", "color": [1, 0, 0, 1]}])) > w = make(book) ^^^^^^^^^^ tests/annotate/test_sidecar_gui.py:185: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/annotate/test_sidecar_gui.py:43: in make assert w.open_path(path) ^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _______________________ test_taken_out_and_back_exactly ________________________ make = .make at 0x7f6536de75e0> book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_sidecar_gui.py/tmp/test_taken_out_and_back_exactl0/book.pdf') def test_taken_out_and_back_exactly(make, book): with pymupdf.open(book) as d: for page in d: for xref, _, _ in page.annot_xrefs(): d.xref_set_key(xref, "OtherProgram", "(kept)") d.save(book, incremental=True, encryption=pymupdf.PDF_ENCRYPT_KEEP) > w = make(book) ^^^^^^^^^^ tests/annotate/test_sidecar_gui.py:198: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/annotate/test_sidecar_gui.py:43: in make assert w.open_path(path) ^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______________________________ test_hidden_or_not ______________________________ make = .make at 0x7f65372bd640> book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_sidecar_gui.py/tmp/test_hidden_or_not0/book.pdf') def test_hidden_or_not(make, book): > w = make(book) ^^^^^^^^^^ tests/annotate/test_sidecar_gui.py:217: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/annotate/test_sidecar_gui.py:43: in make assert w.open_path(path) ^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______________________________ test_settings_tab _______________________________ make = .make at 0x7f6536a82090> book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_sidecar_gui.py/tmp/test_settings_tab0/book.pdf') def test_settings_tab(make, book): # Las tres casillas, en la pestaña Anotaciones de Configuración: se aplican al aceptar. from py_pdftools.gui.prefs import SettingsDialog > w = make(book) ^^^^^^^^^^ tests/annotate/test_sidecar_gui.py:235: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/annotate/test_sidecar_gui.py:43: in make assert w.open_path(path) ^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/annotate/test_sidecar_gui.py::test_apart_without_touching_the_pdf FAILED tests/annotate/test_sidecar_gui.py::test_taken_out_of_the_pdf - Attrib... FAILED tests/annotate/test_sidecar_gui.py::test_default_from_the_settings - A... FAILED tests/annotate/test_sidecar_gui.py::test_document_changed_too - Attrib... FAILED tests/annotate/test_sidecar_gui.py::test_save_as_and_a_copy_with_them FAILED tests/annotate/test_sidecar_gui.py::test_changed_by_another_program - ... FAILED tests/annotate/test_sidecar_gui.py::test_unreadable_file_kept - Attrib... FAILED tests/annotate/test_sidecar_gui.py::test_import_skim_notes - Attribute... FAILED tests/annotate/test_sidecar_gui.py::test_taken_out_and_back_exactly - ... FAILED tests/annotate/test_sidecar_gui.py::test_hidden_or_not - AttributeErro... FAILED tests/annotate/test_sidecar_gui.py::test_settings_tab - AttributeError... 11 failed in 7.45s ====================================================================== annotate/test_gui.py ====================================================================== EEEEEEEEEEEEFEEEEEEEEEEEEEEEEEEEEEEEEEEEEEFEEEEEE.EEEEEEEEEE.EEEEE [100%] ==================================== ERRORS ==================================== ____________________ ERROR at setup of test_highlight_text _____________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_highlight_text0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_highlight_text0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3ce17c5e00> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________________ ERROR at setup of test_draw_move_resize ____________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_draw_move_resize0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_draw_move_resize0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3ce17c5350> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________________ ERROR at setup of test_lines_and_drawings ___________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_lines_and_drawings0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_lines_and_drawings0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3ce0d5b530> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________________ ERROR at setup of test_note_and_text_box ___________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_note_and_text_box0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_note_and_text_box0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3ce0d629c0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________ ERROR at setup of test_a_box_dragged_shows_a_frame_of_dashes _________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_a_box_dragged_shows_a_fra0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_a_box_dragged_shows_a_fra0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3ce0d63460> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______________ ERROR at setup of test_a_note_shows_where_it_goes _______________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_a_note_shows_where_it_goe0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_a_note_shows_where_it_goe0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3ce04ef050> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________ ERROR at setup of test_a_note_dragged_has_its_popup_there ___________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_a_note_dragged_has_its_po0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_a_note_dragged_has_its_po0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3ce04ed750> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________ ERROR at setup of test_a_tool_buttons_tip_has_its_name ____________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_a_tool_buttons_tip_has_it0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_a_tool_buttons_tip_has_it0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3ce04fde50> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________________ ERROR at setup of test_comment_in_the_panel __________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_comment_in_the_panel0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_comment_in_the_panel0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3ce04fc5f0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________________ ERROR at setup of test_new_colour_is_kept ___________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_new_colour_is_kept0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_new_colour_is_kept0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3ce8c51a90> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________________ ERROR at setup of test_save_and_open_again __________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_save_and_open_again0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_save_and_open_again0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3ce8c2a890> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________________________ ERROR at setup of test_save_as ________________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_save_as0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_save_as0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cd9b2d640> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _______________________ ERROR at setup of test_language ________________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_language0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_language0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cd966eb10> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _______________________ ERROR at setup of test_new_tools _______________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_new_tools0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_new_tools0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3ce009e410> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________________ ERROR at setup of test_polygon_by_clicks ___________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_polygon_by_clicks0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_polygon_by_clicks0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cda56fb70> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________________________ ERROR at setup of test_eraser _________________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_eraser0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_eraser0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cd8989590> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________ ERROR at setup of test_select_by_frame_copy_paste_align ____________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_select_by_frame_copy_past0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_select_by_frame_copy_past0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cda66c050> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________________________ ERROR at setup of test_lock __________________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_lock0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_lock0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3ce01ff9b0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________________ ERROR at setup of test_filters_and_navigation _________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_filters_and_navigation0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_filters_and_navigation0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cda08d5d0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________________ ERROR at setup of test_tool_behaviour _____________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_tool_behaviour0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_tool_behaviour0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cd9df7a50> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _______________________ ERROR at setup of test_recovery ________________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_recovery0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_recovery0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cda1f2430> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________________ ERROR at setup of test_export_import _____________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_export_import0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_export_import0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cd9ea5550> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________________ ERROR at setup of test_settings_dialog ____________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_settings_dialog0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_settings_dialog0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cd9ea5400> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________________ ERROR at setup of test_save_as_pdfa ______________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_save_as_pdfa0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_save_as_pdfa0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3ccafeedd0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________________ ERROR at setup of test_panel_can_be_hidden __________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_panel_can_be_hidden0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_panel_can_be_hidden0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3ce0261cc0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _______________ ERROR at setup of test_text_written_on_the_page ________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_text_written_on_the_page0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_text_written_on_the_page0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3ce023ce50> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________________ ERROR at setup of test_escape_steps_back ___________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_escape_steps_back0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_escape_steps_back0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3ce023fee0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________________ ERROR at setup of test_escape_in_the_panel __________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_escape_in_the_panel0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_escape_in_the_panel0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cd80beac0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________ ERROR at setup of test_replies_status_and_tags_in_the_panel __________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_replies_status_and_tags_i0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_replies_status_and_tags_i0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cda2587c0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________________ ERROR at setup of test_find_and_highlight ___________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_find_and_highlight0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_find_and_highlight0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cda2589f0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________________ ERROR at setup of test_continuous_and_one_page ________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_continuous_and_one_page0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_continuous_and_one_page0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cda25bb60> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________________ ERROR at setup of test_marker_and_pressure __________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_marker_and_pressure0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_marker_and_pressure0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cd91d2660> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________________ ERROR at setup of test_thumbnail_size _____________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_thumbnail_size0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_thumbnail_size0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cc9e19550> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________________ ERROR at setup of test_print_and_exports ___________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_print_and_exports0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_print_and_exports0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cd9f71080> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________ ERROR at setup of test_many_annotations_are_listed_at_once __________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_many_annotations_are_list0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_many_annotations_are_list0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cc3759da0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________ ERROR at setup of test_items_made_again_only_when_changed ___________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_items_made_again_only_whe0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_items_made_again_only_whe0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cd9f73540> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________ ERROR at setup of test_file_changed_elsewhere_before_saving __________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_file_changed_elsewhere_be0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_file_changed_elsewhere_be0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cc3780b40> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________ ERROR at setup of test_formatting_written_on_the_page _____________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_formatting_written_on_the0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_formatting_written_on_the0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cca726f90> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________ ERROR at setup of test_border_colour_in_the_properties ____________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_border_colour_in_the_prop0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_border_colour_in_the_prop0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cca727000> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________________ ERROR at setup of test_groups_in_the_window __________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_groups_in_the_window0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_groups_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cca69dbe0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________ ERROR at setup of test_textual_criticism_in_the_window ____________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_textual_criticism_in_the_0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_textual_criticism_in_the_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cc29c8980> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________ ERROR at setup of test_exports_leave_out_other_kinds _____________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_exports_leave_out_other_k0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_exports_leave_out_other_k0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cc9176d60> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ---------------------------- Captured stdout setup ----------------------------- MuPDF error: unsupported error: cannot create appearance stream for Watermark annotations MuPDF error: unsupported error: cannot create appearance stream for Watermark annotations MuPDF error: unsupported error: cannot create appearance stream for Watermark annotations MuPDF error: unsupported error: cannot create appearance stream for Watermark annotations ________________ ERROR at setup of test_pressure_along_a_stroke ________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_pressure_along_a_stroke0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_pressure_along_a_stroke0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cc8c755c0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ---------------------------- Captured stdout setup ----------------------------- MuPDF error: unsupported error: cannot create appearance stream for Watermark annotations MuPDF error: unsupported error: cannot create appearance stream for Watermark annotations MuPDF error: unsupported error: cannot create appearance stream for Watermark annotations MuPDF error: unsupported error: cannot create appearance stream for Watermark annotations _________________ ERROR at setup of test_layers_in_the_window __________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_layers_in_the_window0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_layers_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cc1003230> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ---------------------------- Captured stdout setup ----------------------------- MuPDF error: unsupported error: cannot create appearance stream for Watermark annotations MuPDF error: unsupported error: cannot create appearance stream for Watermark annotations ____________________ ERROR at setup of test_searchable_copy ____________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_searchable_copy0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_searchable_copy0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cc320a580> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________________ ERROR at setup of test_pen_eraser_end _____________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_pen_eraser_end0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_pen_eraser_end0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cc320a820> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______________________ ERROR at setup of test_pen_strokes ______________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_pen_strokes0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_pen_strokes0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cbfebef90> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________ ERROR at setup of test_pen_side_button_moves_the_page _____________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_pen_side_button_moves_the0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_pen_side_button_moves_the0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cbfebcd70> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________________ ERROR at setup of test_thumbnails_hidden ___________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_thumbnails_hidden0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_thumbnails_hidden0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cda3b51d0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________________ ERROR at setup of test_writing_by_hand ____________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_writing_by_hand0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_writing_by_hand0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cda3b5400> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________ ERROR at setup of test_pen_dots_and_freehand_highlight ____________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_pen_dots_and_freehand_hig0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_pen_dots_and_freehand_hig0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cbfebce50> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________________ ERROR at setup of test_replace_text ______________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_replace_text0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_replace_text0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cc9a02d60> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________________ ERROR at setup of test_compare_in_the_window _________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_compare_in_the_window0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_compare_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cc0be8d00> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________________ ERROR at setup of test_typewriter_and_marks __________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_typewriter_and_marks0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_typewriter_and_marks0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cc0be8c20> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________________ ERROR at setup of test_attach_a_file _____________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_attach_a_file0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_attach_a_file0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cc0bebf50> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _______________________ ERROR at setup of test_signature _______________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_signature0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_signature0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cbe002740> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________ ERROR at setup of test_find_dialog_steps_and_history _____________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_find_dialog_steps_and_his0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_find_dialog_steps_and_his0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cbf18d550> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________ ERROR at setup of test_panel_when_the_mode_is_chosen _____________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_panel_when_the_mode_is_ch0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_panel_when_the_mode_is_ch0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cbdb6f070> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________________ ERROR at setup of test_save_keeps_the_view __________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_save_keeps_the_view0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_save_keeps_the_view0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cbdb6f150> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________ ERROR at setup of test_changes_of_the_document_keep_the_view _________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_changes_of_the_document_k0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_changes_of_the_document_k0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cca8363c0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________ ERROR at setup of test_eraser_between_two_positions ______________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_eraser_between_two_positi0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_eraser_between_two_positi0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cbb4b5320> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________________ ERROR at setup of test_flatten_in_the_document ________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_flatten_in_the_document0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_flatten_in_the_document0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cbdb6f460> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) # (QSettings) w = MainWindow() def warn(title, text): # (a message box would wait for a click for ever) raise AssertionError(f"warning shown: {title}: {text}") w.warn = warn w.typed = "Typed text" # (what is "written on the page" for a new text box, note...: None gives up) def edit_text(annotation, index=-1): if w.typed is not None: w.canvas.text_done.emit(index, dataclasses.replace(annotation, contents=w.typed)) w.canvas.edit_text = edit_text def ask_recover(when): # (likewise) raise AssertionError("recovery offered") w.ask_recover = ask_recover w.resize(1200, 800) w.show() app.processEvents() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =================================== FAILURES =================================== ________________________ test_pages_rendered_elsewhere _________________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_pages_rendered_elsewhere0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_pages_rendered_elsewhere0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3ce160c710> def test_pages_rendered_elsewhere(app, sample, tmp_path, monkeypatch): """With the pages rendered in other processes, a document with annotations is rendered from the file itself, without the annotations the window draws (and the file is left as it was).""" import time from py_pdftools.gui import renderer monkeypatch.setattr(renderer, "ENABLED", True) monkeypatch.setenv("HOME", str(tmp_path)) annots.write(sample, [annots.Annotation("rect", 0, (10, 10, 200, 200), "#000000", fill="#000000")], sample) before = sample.read_bytes() w = MainWindow() > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:301: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________________ test_other_kinds_listed_not_changed ______________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_other_kinds_listed_not_ch0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/annotate_test_gui.py/tmp/test_other_kinds_listed_not_ch0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3cc9176a50> def test_other_kinds_listed_not_changed(app, sample, tmp_path, monkeypatch): """A link and a watermark annotation are listed, but are neither deleted, changed nor copied; saving keeps them as they were. (A redaction mark was such another kind in py-annotate; in py-pdftools it is a box of the mode Redact.)""" import pymupdf monkeypatch.setenv("HOME", str(tmp_path)) doc = pymupdf.open(sample) doc[0].insert_link({"kind": pymupdf.LINK_URI, "from": pymupdf.Rect(60, 60, 200, 80), "uri": "https://example.org"}) xref = doc.get_new_xref() doc.update_object(xref, "<>") annots_ = doc.xref_get_key(doc[0].xref, "Annots")[1] doc.xref_set_key(doc[0].xref, "Annots", annots_.rstrip("]") + f" {xref} 0 R]") path = tmp_path / "linked.pdf" doc.save(path) w = MainWindow() w.ask_recover = lambda when: False > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/annotate/test_gui.py:922: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ----------------------------- Captured stdout call ----------------------------- MuPDF error: unsupported error: cannot create appearance stream for Watermark annotations MuPDF error: unsupported error: cannot create appearance stream for Watermark annotations MuPDF error: unsupported error: cannot create appearance stream for Watermark annotations MuPDF error: unsupported error: cannot create appearance stream for Watermark annotations =========================== short test summary info ============================ FAILED tests/annotate/test_gui.py::test_pages_rendered_elsewhere - AttributeE... FAILED tests/annotate/test_gui.py::test_other_kinds_listed_not_changed - Attr... ERROR tests/annotate/test_gui.py::test_highlight_text - AttributeError: 'None... ERROR tests/annotate/test_gui.py::test_draw_move_resize - AttributeError: 'No... ERROR tests/annotate/test_gui.py::test_lines_and_drawings - AttributeError: '... ERROR tests/annotate/test_gui.py::test_note_and_text_box - AttributeError: 'N... ERROR tests/annotate/test_gui.py::test_a_box_dragged_shows_a_frame_of_dashes ERROR tests/annotate/test_gui.py::test_a_note_shows_where_it_goes - Attribute... ERROR tests/annotate/test_gui.py::test_a_note_dragged_has_its_popup_there - A... ERROR tests/annotate/test_gui.py::test_a_tool_buttons_tip_has_its_name - Attr... ERROR tests/annotate/test_gui.py::test_comment_in_the_panel - AttributeError:... ERROR tests/annotate/test_gui.py::test_new_colour_is_kept - AttributeError: '... ERROR tests/annotate/test_gui.py::test_save_and_open_again - AttributeError: ... ERROR tests/annotate/test_gui.py::test_save_as - AttributeError: 'NoneType' o... ERROR tests/annotate/test_gui.py::test_language - AttributeError: 'NoneType' ... ERROR tests/annotate/test_gui.py::test_new_tools - AttributeError: 'NoneType'... ERROR tests/annotate/test_gui.py::test_polygon_by_clicks - AttributeError: 'N... ERROR tests/annotate/test_gui.py::test_eraser - AttributeError: 'NoneType' ob... ERROR tests/annotate/test_gui.py::test_select_by_frame_copy_paste_align - Att... ERROR tests/annotate/test_gui.py::test_lock - AttributeError: 'NoneType' obje... ERROR tests/annotate/test_gui.py::test_filters_and_navigation - AttributeErro... ERROR tests/annotate/test_gui.py::test_tool_behaviour - AttributeError: 'None... ERROR tests/annotate/test_gui.py::test_recovery - AttributeError: 'NoneType' ... ERROR tests/annotate/test_gui.py::test_export_import - AttributeError: 'NoneT... ERROR tests/annotate/test_gui.py::test_settings_dialog - AttributeError: 'Non... ERROR tests/annotate/test_gui.py::test_save_as_pdfa - AttributeError: 'NoneTy... ERROR tests/annotate/test_gui.py::test_panel_can_be_hidden - AttributeError: ... ERROR tests/annotate/test_gui.py::test_text_written_on_the_page - AttributeEr... ERROR tests/annotate/test_gui.py::test_escape_steps_back - AttributeError: 'N... ERROR tests/annotate/test_gui.py::test_escape_in_the_panel - AttributeError: ... ERROR tests/annotate/test_gui.py::test_replies_status_and_tags_in_the_panel ERROR tests/annotate/test_gui.py::test_find_and_highlight - AttributeError: '... ERROR tests/annotate/test_gui.py::test_continuous_and_one_page - AttributeErr... ERROR tests/annotate/test_gui.py::test_marker_and_pressure - AttributeError: ... ERROR tests/annotate/test_gui.py::test_thumbnail_size - AttributeError: 'None... ERROR tests/annotate/test_gui.py::test_print_and_exports - AttributeError: 'N... ERROR tests/annotate/test_gui.py::test_many_annotations_are_listed_at_once - ... ERROR tests/annotate/test_gui.py::test_items_made_again_only_when_changed - A... ERROR tests/annotate/test_gui.py::test_file_changed_elsewhere_before_saving ERROR tests/annotate/test_gui.py::test_formatting_written_on_the_page - Attri... ERROR tests/annotate/test_gui.py::test_border_colour_in_the_properties - Attr... ERROR tests/annotate/test_gui.py::test_groups_in_the_window - AttributeError:... ERROR tests/annotate/test_gui.py::test_textual_criticism_in_the_window - Attr... ERROR tests/annotate/test_gui.py::test_exports_leave_out_other_kinds - Attrib... ERROR tests/annotate/test_gui.py::test_pressure_along_a_stroke - AttributeErr... ERROR tests/annotate/test_gui.py::test_layers_in_the_window - AttributeError:... ERROR tests/annotate/test_gui.py::test_searchable_copy - AttributeError: 'Non... ERROR tests/annotate/test_gui.py::test_pen_eraser_end - AttributeError: 'None... ERROR tests/annotate/test_gui.py::test_pen_strokes - AttributeError: 'NoneTyp... ERROR tests/annotate/test_gui.py::test_pen_side_button_moves_the_page - Attri... ERROR tests/annotate/test_gui.py::test_thumbnails_hidden - AttributeError: 'N... ERROR tests/annotate/test_gui.py::test_writing_by_hand - AttributeError: 'Non... ERROR tests/annotate/test_gui.py::test_pen_dots_and_freehand_highlight - Attr... ERROR tests/annotate/test_gui.py::test_replace_text - AttributeError: 'NoneTy... ERROR tests/annotate/test_gui.py::test_compare_in_the_window - AttributeError... ERROR tests/annotate/test_gui.py::test_typewriter_and_marks - AttributeError:... ERROR tests/annotate/test_gui.py::test_attach_a_file - AttributeError: 'NoneT... ERROR tests/annotate/test_gui.py::test_signature - AttributeError: 'NoneType'... ERROR tests/annotate/test_gui.py::test_find_dialog_steps_and_history - Attrib... ERROR tests/annotate/test_gui.py::test_panel_when_the_mode_is_chosen - Attrib... ERROR tests/annotate/test_gui.py::test_save_keeps_the_view - AttributeError: ... ERROR tests/annotate/test_gui.py::test_changes_of_the_document_keep_the_view ERROR tests/annotate/test_gui.py::test_eraser_between_two_positions - Attribu... ERROR tests/annotate/test_gui.py::test_flatten_in_the_document - AttributeErr... 2 failed, 2 passed, 62 errors in 44.15s ====================================================================== pages/test_combine.py ====================================================================== ......F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ two = (PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_combine.py/tmp/test_in_the_window0/a.pdf'), PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_combine.py/tmp/test_in_the_window0/b.pdf')) tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_combine.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb2f5ca3150> def test_in_the_window(two, tmp_path, monkeypatch): from PySide6.QtWidgets import QApplication from py_pdftools.gui.combine_dialog import CombineDialog from py_pdftools.gui.window import MainWindow app = QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) a, b = two locked = book(tmp_path / "l.pdf", "L", 2, password="pw") w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(a) ^^^^^^^^^^^^^^ tests/pages/test_combine.py:123: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/pages/test_combine.py::test_in_the_window - AttributeError: 'Non... 1 failed, 6 passed in 1.39s ====================================================================== pages/test_from_images.py ====================================================================== .....F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ pics = (PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_from_images.py/tmp/test_in_the_window0/wide.png'), PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_from_images.py/tmp/test_in_the_window0/tall.jpg')) tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_from_images.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7889757250> def test_in_the_window(pics, tmp_path, monkeypatch): from PySide6.QtWidgets import QApplication from py_pdftools.gui.combine_dialog import ImagesDialog from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False try: d = ImagesDialog(w) assert not d.b_ok.isEnabled() d.add_paths([pics[1], pics[0]]) d.sort_by_name() assert [p.name for p in d.paths()] == ["tall.jpg", "wide.png"] d.paper.setCurrentIndex(d.paper.findData("A4")) assert d.orientation.isEnabled() out = tmp_path / "o.pdf" w.ask_images = lambda: (d.paths(), d.options(), True) w.ask_new_pdf = lambda title, name: out > made = w.images_dialog() ^^^^^^^^^^^^^^^^^ tests/pages/test_from_images.py:109: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/files.py:185: in images_dialog made = self.open_made(target) ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/files.py:57: in open_made return self if self.open_path(target, place, password) else None ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/pages/test_from_images.py::test_in_the_window - AttributeError: ... 1 failed, 5 passed in 1.19s ====================================================================== pages/test_crop.py ====================================================================== ...F..F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ doc = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_crop.py/tmp/test_in_the_window0/c.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_crop.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fea77098490> def test_in_the_window(doc, tmp_path, monkeypatch): from PySide6.QtWidgets import QApplication from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(doc) ^^^^^^^^^^^^^^^^ tests/pages/test_crop.py:75: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________________________ test_removing_in_the_window __________________________ doc = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_crop.py/tmp/test_removing_in_the_window0/c.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_crop.py/tmp/test_removing_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fea76845050> def test_removing_in_the_window(doc, tmp_path, monkeypatch): from PySide6.QtWidgets import QApplication from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(doc) ^^^^^^^^^^^^^^^^ tests/pages/test_crop.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/pages/test_crop.py::test_in_the_window - AttributeError: 'NoneTy... FAILED tests/pages/test_crop.py::test_removing_in_the_window - AttributeError... 2 failed, 5 passed in 1.72s ====================================================================== pages/test_export.py ====================================================================== .......F. [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ doc = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_export.py/tmp/test_in_the_window0/doc.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_export.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f09d7f31e50> def test_in_the_window(doc, tmp_path, monkeypatch): from PySide6.QtWidgets import QApplication from py_pdftools.gui.export_dialog import ExportDialog from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) d = ExportDialog("pages", 2, 0) d.choice.setText("5") assert not d.b_ok.isEnabled() d.choice.setText("2") d.format.setCurrentIndex(d.format.findData("tiff")) assert d.options() == {"pages": [1], "fmt": "tiff", "dpi": 150, "gray": False, "quality": 90} w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(doc) ^^^^^^^^^^^^^^^^ tests/pages/test_export.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/pages/test_export.py::test_in_the_window - AttributeError: 'None... 1 failed, 8 passed in 1.46s ====================================================================== pages/test_labels_shown.py ====================================================================== EEE [100%] ==================================== ERRORS ==================================== _____________ ERROR at setup of test_number_this_page_in_read_mode _____________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_labels_shown.py/tmp/test_number_this_page_in_read_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f69edb7f950> @pytest.fixture def window(tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) d = pymupdf.open() for i in range(6): d.new_page().insert_text((72, 72), f"p{i + 1}") d.save(tmp_path / "num.pdf") w = MainWindow() w.ask_recover = lambda when: False w.show() > assert w.open_path(tmp_path / "num.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/pages/test_labels_shown.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _______________ ERROR at setup of test_nothing_to_change_is_said _______________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_labels_shown.py/tmp/test_nothing_to_change_is_said0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f69edb7f6f0> @pytest.fixture def window(tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) d = pymupdf.open() for i in range(6): d.new_page().insert_text((72, 72), f"p{i + 1}") d.save(tmp_path / "num.pdf") w = MainWindow() w.ask_recover = lambda when: False w.show() > assert w.open_path(tmp_path / "num.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/pages/test_labels_shown.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________________ ERROR at setup of test_select_all_thumbnails _________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_labels_shown.py/tmp/test_select_all_thumbnails0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f69ecea2e70> @pytest.fixture def window(tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) d = pymupdf.open() for i in range(6): d.new_page().insert_text((72, 72), f"p{i + 1}") d.save(tmp_path / "num.pdf") w = MainWindow() w.ask_recover = lambda when: False w.show() > assert w.open_path(tmp_path / "num.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/pages/test_labels_shown.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/pages/test_labels_shown.py::test_number_this_page_in_read_mode - ... ERROR tests/pages/test_labels_shown.py::test_nothing_to_change_is_said - Attr... ERROR tests/pages/test_labels_shown.py::test_select_all_thumbnails - Attribut... 3 errors in 2.14s ====================================================================== pages/test_outlines.py ====================================================================== ..F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ doc = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_outlines.py/tmp/test_in_the_window0/t.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_outlines.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fecfb253d10> def test_in_the_window(doc, tmp_path, monkeypatch): from PySide6.QtWidgets import QApplication from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(doc) ^^^^^^^^^^^^^^^^ tests/pages/test_outlines.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/pages/test_outlines.py::test_in_the_window - AttributeError: 'No... 1 failed, 2 passed in 1.30s ====================================================================== pages/test_overlay.py ====================================================================== ...F. [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ files = (PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_overlay.py/tmp/test_in_the_window0/body.pdf'), PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_overlay.py/tmp/test_in_the_window0/head.pdf')) tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_overlay.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f33634709e0> def test_in_the_window(files, tmp_path, monkeypatch): from PySide6.QtWidgets import QApplication from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) body, head = files w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(body) ^^^^^^^^^^^^^^^^^ tests/pages/test_overlay.py:76: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/pages/test_overlay.py::test_in_the_window - AttributeError: 'Non... 1 failed, 4 passed in 1.13s ====================================================================== pages/test_recolor.py ====================================================================== ...F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ doc = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_recolor.py/tmp/test_in_the_window0/c.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_recolor.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fab802fc380> def test_in_the_window(doc, tmp_path, monkeypatch): from PySide6.QtWidgets import QApplication from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(doc) ^^^^^^^^^^^^^^^^ tests/pages/test_recolor.py:82: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/pages/test_recolor.py::test_in_the_window - AttributeError: 'Non... 1 failed, 3 passed in 1.26s ====================================================================== pages/test_rasterize.py ====================================================================== ......F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_rasterize.py/tmp/test_in_the_window0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_rasterize.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f1b52f0b550> def test_in_the_window(sample, tmp_path, monkeypatch): from PySide6.QtWidgets import QApplication from py_pdftools.gui.rasterize_dialog import RasterizeDialog from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/pages/test_rasterize.py:153: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/pages/test_rasterize.py::test_in_the_window - AttributeError: 'N... 1 failed, 6 passed in 1.76s ====================================================================== pages/test_gui.py ====================================================================== EEEEEEEEEEE [100%] ==================================== ERRORS ==================================== ___________ ERROR at setup of test_labels_in_the_table_and_the_list ____________ app = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_gui.py/tmp/test_labels_in_the_table_and_t0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7b68888050> @pytest.fixture def window(app, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) book = tmp_path / "book.pdf" shutil.copy(EXAMPLE, book) w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/pages/test_gui.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________________ ERROR at setup of test_list_of_labels _____________________ app = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_gui.py/tmp/test_list_of_labels0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7b68ab7bb0> @pytest.fixture def window(app, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) book = tmp_path / "book.pdf" shutil.copy(EXAMPLE, book) w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/pages/test_gui.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______________ ERROR at setup of test_header_footer_and_watermark ______________ app = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_gui.py/tmp/test_header_footer_and_waterma0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7b67f86c30> @pytest.fixture def window(app, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) book = tmp_path / "book.pdf" shutil.copy(EXAMPLE, book) w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/pages/test_gui.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________ ERROR at setup of test_annotations_stay_on_their_pages ____________ app = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_gui.py/tmp/test_annotations_stay_on_their0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7b67fc68b0> @pytest.fixture def window(app, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) book = tmp_path / "book.pdf" shutil.copy(EXAMPLE, book) w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/pages/test_gui.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _______________ ERROR at setup of test_view_on_opening_and_menus _______________ app = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_gui.py/tmp/test_view_on_opening_and_menus0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7b67fc58c0> @pytest.fixture def window(app, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) book = tmp_path / "book.pdf" shutil.copy(EXAMPLE, book) w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/pages/test_gui.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________ ERROR at setup of test_the_page_actions_belong_to_the_mode __________ app = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_gui.py/tmp/test_the_page_actions_belong_t0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7b67a92e50> @pytest.fixture def window(app, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) book = tmp_path / "book.pdf" shutil.copy(EXAMPLE, book) w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/pages/test_gui.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________ ERROR at setup of test_the_page_box_shows_and_takes_labels __________ app = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_gui.py/tmp/test_the_page_box_shows_and_ta0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7b67a92450> @pytest.fixture def window(app, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) book = tmp_path / "book.pdf" shutil.copy(EXAMPLE, book) w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/pages/test_gui.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______________ ERROR at setup of test_the_page_box_is_shown_once _______________ app = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_gui.py/tmp/test_the_page_box_is_shown_onc0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7b67b03c50> @pytest.fixture def window(app, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) book = tmp_path / "book.pdf" shutil.copy(EXAMPLE, book) w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/pages/test_gui.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________ ERROR at setup of test_several_thumbnails_chosen_in_any_mode _________ app = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_gui.py/tmp/test_several_thumbnails_chosen0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7b67b037a0> @pytest.fixture def window(app, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) book = tmp_path / "book.pdf" shutil.copy(EXAMPLE, book) w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/pages/test_gui.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______________ ERROR at setup of test_the_menu_of_pages_in_groups ______________ app = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_gui.py/tmp/test_the_menu_of_pages_in_grou0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7b6708dd30> @pytest.fixture def window(app, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) book = tmp_path / "book.pdf" shutil.copy(EXAMPLE, book) w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/pages/test_gui.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________ ERROR at setup of test_pages_copied_and_moved_to_a_new_pdf __________ app = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_gui.py/tmp/test_pages_copied_and_moved_to0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7b6708d2b0> @pytest.fixture def window(app, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) book = tmp_path / "book.pdf" shutil.copy(EXAMPLE, book) w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) w.show() > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/pages/test_gui.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/pages/test_gui.py::test_labels_in_the_table_and_the_list - Attrib... ERROR tests/pages/test_gui.py::test_list_of_labels - AttributeError: 'NoneTyp... ERROR tests/pages/test_gui.py::test_header_footer_and_watermark - AttributeEr... ERROR tests/pages/test_gui.py::test_annotations_stay_on_their_pages - Attribu... ERROR tests/pages/test_gui.py::test_view_on_opening_and_menus - AttributeErro... ERROR tests/pages/test_gui.py::test_the_page_actions_belong_to_the_mode - Att... ERROR tests/pages/test_gui.py::test_the_page_box_shows_and_takes_labels - Att... ERROR tests/pages/test_gui.py::test_the_page_box_is_shown_once - AttributeErr... ERROR tests/pages/test_gui.py::test_several_thumbnails_chosen_in_any_mode - A... ERROR tests/pages/test_gui.py::test_the_menu_of_pages_in_groups - AttributeEr... ERROR tests/pages/test_gui.py::test_pages_copied_and_moved_to_a_new_pdf - Att... 11 errors in 6.71s ====================================================================== pages/test_sorter.py ====================================================================== .EE [100%] ==================================== ERRORS ==================================== ______________________ ERROR at setup of test_the_dialog _______________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_sorter.py/tmp/test_the_dialog0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fa64ffc7e10> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) > assert w.open_path(book(tmp_path / "book.pdf")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/pages/test_sorter.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________________ ERROR at setup of test_one_step_of_the_history ________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_sorter.py/tmp/test_one_step_of_the_history0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fa65909b410> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) > assert w.open_path(book(tmp_path / "book.pdf")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/pages/test_sorter.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/pages/test_sorter.py::test_the_dialog - AttributeError: 'NoneType... ERROR tests/pages/test_sorter.py::test_one_step_of_the_history - AttributeErr... 1 passed, 2 errors in 1.66s ====================================================================== pages/test_split.py ====================================================================== ....F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ book = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_split.py/tmp/test_in_the_window0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_split.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f78299607c0> def test_in_the_window(book, tmp_path, monkeypatch): from PySide6.QtWidgets import QApplication from py_pdftools.gui.pages.arrange_dialog import ArrangeDialog from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) d = ArrangeDialog(None, "split", 12, folder=tmp_path) d.at_level.setValue(1) assert d.value() == ({"bookmarks": 1}, tmp_path) d.at_level.setValue(0) d.most.setValue(1.5) assert d.value() == ({"size": 1_500_000}, tmp_path) w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(book) ^^^^^^^^^^^^^^^^^ tests/pages/test_split.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/pages/test_split.py::test_in_the_window - AttributeError: 'NoneT... 1 failed, 4 passed in 2.02s ====================================================================== pages/test_tables.py ====================================================================== ...F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ doc = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_tables.py/tmp/test_in_the_window0/t.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_tables.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fc00cdac270> def test_in_the_window(doc, tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(doc) ^^^^^^^^^^^^^^^^ tests/pages/test_tables.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/pages/test_tables.py::test_in_the_window - AttributeError: 'None... 1 failed, 3 passed in 1.25s ====================================================================== pages/test_version.py ====================================================================== .......F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ doc = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_version.py/tmp/test_in_the_window0/d.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_version.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f9b66e95310> def test_in_the_window(doc, tmp_path, monkeypatch): from PySide6.QtWidgets import QApplication from py_pdftools.gui.version_dialog import VersionDialog from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) d = VersionDialog("1.7", lambda v: V.newer_than(doc, v)) assert d.chosen() == "1.7" and d.warning.text() == "" d.version.setCurrentIndex(d.version.findData("1.3")) assert "Layers" in d.warning.text() and d.b_ok.isEnabled() w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(doc) ^^^^^^^^^^^^^^^^ tests/pages/test_version.py:129: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/pages/test_version.py::test_in_the_window - AttributeError: 'Non... 1 failed, 7 passed in 1.30s ====================================================================== pages/test_scans.py ====================================================================== ....F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_scans.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3a2b9685a0> def test_in_the_window(tmp_path, monkeypatch): from PySide6.QtWidgets import QApplication monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.scans_dialog import ScansDialog from py_pdftools.gui.window import MainWindow d = ScansDialog(0) d.split.setChecked(True) d.even.setChecked(True) options, only = d.options() assert options.split and options.even and options.straighten and not only d.deleteLater() w = MainWindow() try: > assert w.open_path(spread(tmp_path / "s.pdf")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/pages/test_scans.py:115: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/pages/test_scans.py::test_in_the_window - AttributeError: 'NoneT... 1 failed, 4 passed in 5.44s ====================================================================== redact/test_covered.py ====================================================================== .........FF [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_covered.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8bc9cfc050> def test_in_the_window(tmp_path, monkeypatch): """Found from the menu, boxes put over all, and the redacted copy has the text no more.""" from PySide6.QtWidgets import QApplication from py_pdftools.gui.window import MainWindow from py_pdftools.redact.redact import box_of app = QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) doc, page = page_with((100, "Secret name"), (300, "Kept text")) page.draw_rect(bar(100), color=None, fill=(0, 0, 0)) doc.save(tmp_path / "fake.pdf") w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(tmp_path / "fake.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/redact/test_covered.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _______________________ test_nothing_found_in_the_window _______________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_covered.py/tmp/test_nothing_found_in_the_wind0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8bd58e6270> sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/redact_test_covered.py/tmp/test_nothing_found_in_the_wind0/sample.pdf') def test_nothing_found_in_the_window(tmp_path, monkeypatch, sample): from PySide6.QtWidgets import QApplication from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/redact/test_covered.py:149: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/redact/test_covered.py::test_in_the_window - AttributeError: 'No... FAILED tests/redact/test_covered.py::test_nothing_found_in_the_window - Attri... 2 failed, 9 passed in 1.60s ====================================================================== test_accessibility.py ====================================================================== ...F. [100%] =================================== FAILURES =================================== ________________________ test_quick_fixes_in_the_window ________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_accessibility.py/tmp/test_quick_fixes_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb76f650160> def test_quick_fixes_in_the_window(tmp_path, monkeypatch): from PySide6.QtWidgets import QApplication monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.accessibility_dialog import AccessibilityDialog from py_pdftools.gui.window import MainWindow w = MainWindow() try: > assert w.open_path(plain(tmp_path / "p.pdf")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_accessibility.py:82: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_accessibility.py::test_quick_fixes_in_the_window - Attribut... 1 failed, 4 passed in 1.12s ====================================================================== test_attachments.py ====================================================================== E.. [100%] ==================================== ERRORS ==================================== ____________ ERROR at setup of test_the_panel_of_the_attached_files ____________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_attachments.py/tmp/test_the_panel_of_the_attached0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f64cfc37820> @pytest.fixture def window(tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "carrier.pdf" doc = pymupdf.open() for _ in range(3): doc.new_page() doc.embfile_add("data.csv", b"a,b\n1,2\n", filename="data.csv", desc="The numbers") doc[2].add_file_annot((100, 100), b"note text", "note.txt") doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(1400, 900) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_attachments.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_attachments.py::test_the_panel_of_the_attached_files - Attri... 2 passed, 1 error in 0.79s ====================================================================== pages/test_working.py ====================================================================== EEE.EEEEE [100%] ==================================== ERRORS ==================================== ____________ ERROR at setup of test_labels_then_undo_redo_and_save _____________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_working.py/tmp/test_labels_then_undo_redo_and0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_working.py/tmp/test_labels_then_undo_redo_and0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fa0c8530180> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/pages/test_working.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________ ERROR at setup of test_pages_moved_with_their_annotations ___________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_working.py/tmp/test_pages_moved_with_their_an0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_working.py/tmp/test_pages_moved_with_their_an0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fa0c875bce0> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/pages/test_working.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________ ERROR at setup of test_redacted_copy_from_the_working_copy __________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_working.py/tmp/test_redacted_copy_from_the_wo0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_working.py/tmp/test_redacted_copy_from_the_wo0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fa0c7a5ef90> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/pages/test_working.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____ ERROR at setup of test_save_as_after_undoing_a_change_of_the_document _____ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_working.py/tmp/test_save_as_after_undoing_a_c0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_working.py/tmp/test_save_as_after_undoing_a_c0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fa0c7ac2140> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/pages/test_working.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _______ ERROR at setup of test_change_of_language_keeps_the_working_copy _______ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_working.py/tmp/test_change_of_language_keeps_0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_working.py/tmp/test_change_of_language_keeps_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fa0c779d850> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/pages/test_working.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __ ERROR at setup of test_working_copies_on_disk_not_in_the_temporary_folder ___ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_working.py/tmp/test_working_copies_on_disk_no0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_working.py/tmp/test_working_copies_on_disk_no0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fa0c7aeb850> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/pages/test_working.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___ ERROR at setup of test_a_change_writes_the_annotations_only_when_needed ____ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_working.py/tmp/test_a_change_writes_the_annot0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_working.py/tmp/test_a_change_writes_the_annot0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fa0c7afa300> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/pages/test_working.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____ ERROR at setup of test_the_history_keeps_ten_changes_of_the_document _____ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_working.py/tmp/test_the_history_keeps_ten_cha0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/pages_test_working.py/tmp/test_the_history_keeps_ten_cha0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fa0c7afae40> @pytest.fixture def window(app, sample, tmp_path, monkeypatch): monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False > assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ tests/pages/test_working.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/pages/test_working.py::test_labels_then_undo_redo_and_save - Attr... ERROR tests/pages/test_working.py::test_pages_moved_with_their_annotations - ... ERROR tests/pages/test_working.py::test_redacted_copy_from_the_working_copy ERROR tests/pages/test_working.py::test_save_as_after_undoing_a_change_of_the_document ERROR tests/pages/test_working.py::test_change_of_language_keeps_the_working_copy ERROR tests/pages/test_working.py::test_working_copies_on_disk_not_in_the_temporary_folder ERROR tests/pages/test_working.py::test_a_change_writes_the_annotations_only_when_needed ERROR tests/pages/test_working.py::test_the_history_keeps_ten_changes_of_the_document 1 passed, 8 errors in 4.90s ====================================================================== test_ask.py ====================================================================== .F. [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ server = 'http://127.0.0.1:46637/v1' tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_ask.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f320c2dda70> def test_in_the_window(server, tmp_path, monkeypatch): from PySide6.QtCore import QEventLoop, QTimer from PySide6.QtWidgets import QApplication, QMenu monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.core import config from py_pdftools.gui import asking from py_pdftools.gui.window import MainWindow doc = pymupdf.open() doc.new_page().insert_text((72, 100), "Arma virumque cano", fontsize=14) doc.save(tmp_path / "a.pdf") w = MainWindow() try: > assert w.open_path(tmp_path / "a.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_ask.py:94: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_ask.py::test_in_the_window - AttributeError: 'NoneType' obj... 1 failed, 2 passed in 2.73s ====================================================================== test_backends.py ====================================================================== .................FF. [100%] =================================== FAILURES =================================== ______________________ test_the_setting_and_the_question _______________________ window = pdf = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_backends.py/tmp/test_the_setting_and_the_quest0/engines.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_backends.py/tmp/test_the_setting_and_the_quest0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4b70387250> def test_the_setting_and_the_question(window, pdf, tmp_path, monkeypatch): from py_pdftools.core import config from py_pdftools.gui import backend_dialog monkeypatch.setattr(backends, "available", lambda: [backends.MUPDF, backends.POPPLER]) monkeypatch.setattr(backends, "why_not", lambda b: "") config.set("backend", backends.POPPLER) > assert window.open_path(pdf) and window.canvas.backend == backends.POPPLER ^^^^^^^^^^^^^^^^^^^^^ tests/test_backends.py:136: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________________________ test_changed_in_the_settings _________________________ window = pdf = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_backends.py/tmp/test_changed_in_the_settings0/engines.pdf') def test_changed_in_the_settings(window, pdf): from py_pdftools.core import config from py_pdftools.gui.prefs import SettingsDialog from py_pdftools.gui.window import _WINDOWS > assert window.open_path(pdf) and window.canvas.backend == backends.MUPDF ^^^^^^^^^^^^^^^^^^^^^ tests/test_backends.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_backends.py::test_the_setting_and_the_question - AttributeE... FAILED tests/test_backends.py::test_changed_in_the_settings - AttributeError:... 2 failed, 18 passed in 2.08s ====================================================================== test_bookmarkfile.py ====================================================================== .........FF [100%] =================================== FAILURES =================================== _____________________ test_the_panel_writes_and_reads_them _____________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_bookmarkfile.py/tmp/test_the_panel_writes_and_read0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7efedcdca6d0> def test_the_panel_writes_and_reads_them(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) from PySide6.QtWidgets import QApplication QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow source = tmp_path / "book.pdf" outline_doc().save(source) w = MainWindow() > assert w.open_path(source) ^^^^^^^^^^^^^^^^^^^ tests/test_bookmarkfile.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________________ test_the_branches_left_open_come_back _____________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_bookmarkfile.py/tmp/test_the_branches_left_open_co0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7efedcb5db70> def test_the_branches_left_open_come_back(tmp_path, monkeypatch): """The branches of the bookmarks left open are open again when the document is opened again (and after a change of it).""" monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) from PySide6.QtWidgets import QApplication QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow source = tmp_path / "book.pdf" outline_doc().save(source) def part(w): tree = w.outline_tree return next(tree.topLevelItem(i) for i in range(tree.topLevelItemCount()) if tree.topLevelItem(i).text(0) == "Part one") # (Part one > Chapter | 1 > A section) def opened(w): return part(w).isExpanded(), part(w).child(0).isExpanded() w = MainWindow() > assert w.open_path(source) ^^^^^^^^^^^^^^^^^^^ tests/test_bookmarkfile.py:129: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_bookmarkfile.py::test_the_panel_writes_and_reads_them - Att... FAILED tests/test_bookmarkfile.py::test_the_branches_left_open_come_back - At... 2 failed, 9 passed in 1.68s ====================================================================== test_boxes.py ====================================================================== FFF [100%] =================================== FAILURES =================================== _________________________________ test_frames __________________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_boxes.py/tmp/test_frames0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5720ba3e10> def test_frames(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow doc = pymupdf.open() page = doc.new_page() page.insert_text((72, 100), "See https://example.org for more", fontsize=12) page.insert_link({"kind": pymupdf.LINK_GOTO, "from": pymupdf.Rect(72, 150, 200, 170), "page": 0}) page.insert_image(pymupdf.Rect(300, 300, 400, 400), pixmap=pymupdf.Pixmap(pymupdf.csRGB, (0, 0, 8, 8), 0)) doc.save(tmp_path / "a.pdf") w = MainWindow() try: > assert w.open_path(tmp_path / "a.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_boxes.py:21: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________________________ test_form_fields_framed ____________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_boxes.py/tmp/test_form_fields_framed0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5720ba3bb0> def test_form_fields_framed(tmp_path, monkeypatch): """Outline the form fields: an orange frame around each field, also on a turned page.""" monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.boxes import FIELD_COLOUR from py_pdftools.gui.window import MainWindow doc = pymupdf.open() page = doc.new_page() for i, name in enumerate(("name", "date")): widget = pymupdf.Widget() widget.field_name, widget.field_type = name, pymupdf.PDF_WIDGET_TYPE_TEXT widget.rect = pymupdf.Rect(100, 100 + 50 * i, 300, 120 + 50 * i) page.add_widget(widget) doc.save(tmp_path / "form.pdf") w = MainWindow() try: > assert w.open_path(tmp_path / "form.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_boxes.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________________________ test_page_boxes_framed ____________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_boxes.py/tmp/test_page_boxes_framed0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5718b2d370> def test_page_boxes_framed(tmp_path, monkeypatch): """Outline the page boxes: the boxes a page declares, each in its colour; the paper only if it is larger than what shows (the crop box).""" monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.boxes import BOX_COLOURS from py_pdftools.gui.window import MainWindow doc = pymupdf.open() page = doc.new_page(width=600, height=800) page.set_cropbox(pymupdf.Rect(20, 20, 580, 780)) page.set_bleedbox(pymupdf.Rect(30, 30, 570, 770)) page.set_trimbox(pymupdf.Rect(40, 40, 560, 760)) doc.new_page() # (no boxes but the paper, which is what shows) doc.save(tmp_path / "boxes.pdf") w = MainWindow() try: > assert w.open_path(tmp_path / "boxes.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_boxes.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_boxes.py::test_frames - AttributeError: 'NoneType' object h... FAILED tests/test_boxes.py::test_form_fields_framed - AttributeError: 'NoneTy... FAILED tests/test_boxes.py::test_page_boxes_framed - AttributeError: 'NoneTyp... 3 failed in 2.15s ====================================================================== test_caret.py ====================================================================== EEE [100%] ==================================== ERRORS ==================================== _________________________ ERROR at setup of test_moves _________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_caret.py/tmp/test_moves0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f18aaceaea0> @pytest.fixture def window(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow doc = pymupdf.open() p = doc.new_page() p.insert_text((72, 100), "Arma virumque cano", fontsize=12) p.insert_text((72, 116), "Troiae qui primus", fontsize=12) p.insert_text((72, 300), "Italiam fato profugus", fontsize=12) doc.new_page() # (without text: skipped) doc.new_page().insert_text((72, 100), "Laviniaque venit", fontsize=12) doc.save(tmp_path / "a.pdf") w = MainWindow() > assert w.open_path(tmp_path / "a.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_caret.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________________ ERROR at setup of test_selecting_and_copying _________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_caret.py/tmp/test_selecting_and_copying0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f18aaceac40> @pytest.fixture def window(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow doc = pymupdf.open() p = doc.new_page() p.insert_text((72, 100), "Arma virumque cano", fontsize=12) p.insert_text((72, 116), "Troiae qui primus", fontsize=12) p.insert_text((72, 300), "Italiam fato profugus", fontsize=12) doc.new_page() # (without text: skipped) doc.new_page().insert_text((72, 100), "Laviniaque venit", fontsize=12) doc.save(tmp_path / "a.pdf") w = MainWindow() > assert w.open_path(tmp_path / "a.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_caret.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________ ERROR at setup of test_the_shortcuts_are_the_carets ______________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_caret.py/tmp/test_the_shortcuts_are_the_car0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f18a61a2690> @pytest.fixture def window(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow doc = pymupdf.open() p = doc.new_page() p.insert_text((72, 100), "Arma virumque cano", fontsize=12) p.insert_text((72, 116), "Troiae qui primus", fontsize=12) p.insert_text((72, 300), "Italiam fato profugus", fontsize=12) doc.new_page() # (without text: skipped) doc.new_page().insert_text((72, 100), "Laviniaque venit", fontsize=12) doc.save(tmp_path / "a.pdf") w = MainWindow() > assert w.open_path(tmp_path / "a.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_caret.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_caret.py::test_moves - AttributeError: 'NoneType' object has... ERROR tests/test_caret.py::test_selecting_and_copying - AttributeError: 'None... ERROR tests/test_caret.py::test_the_shortcuts_are_the_carets - AttributeError... 3 errors in 2.10s ====================================================================== test_checkfile.py ====================================================================== ..F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ files = (PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_checkfile.py/tmp/test_in_the_window0/ok.pdf'), PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_checkfile.py/tmp/test_in_the_window0/bad.pdf')) tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_checkfile.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7c77dbbd10> def test_in_the_window(files, tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) ok, bad = files w = MainWindow() w.ask_recover = lambda when: False said = [] monkeypatch.setattr(w, "status", lambda text, error=False: said.append((text, error))) try: > assert w.open_path(bad) ^^^^^^^^^^^^^^^^ tests/test_checkfile.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_checkfile.py::test_in_the_window - AttributeError: 'NoneTyp... 1 failed, 2 passed in 1.24s ====================================================================== test_carry_over.py ====================================================================== ..EEE [100%] ==================================== ERRORS ==================================== _______ ERROR at setup of test_a_change_draws_only_the_pages_it_changed ________ pdf = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_carry_over.py/tmp/test_a_change_draws_only_the_p0/d.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_carry_over.py/tmp/test_a_change_draws_only_the_p0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5280d74290> @pytest.fixture def window(pdf, tmp_path, monkeypatch): app = QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) drawn, why, mine = [], [], [] # (mine: this test's window, once it is made) def counted(page, scale, *args, **kwargs): # Solo las páginas de esta ventana: una ventana de una prueba anterior, cerrada pero aún no destruida, # puede tener temporizadores pendientes que dibujan las suyas (en un equipo ocupado, durante esta). if not mine or page.parent is not mine[0].doc: return PAGE_IMAGE(page, scale, *args, **kwargs) drawn.append(page.number) # (who drew it, for the message of a test that fails) why.append(" < ".join(f.name for f in traceback.extract_stack()[-6:-1])) return PAGE_IMAGE(page, scale, *args, **kwargs) monkeypatch.setattr(canvas_module, "page_image", counted) monkeypatch.setattr(window_module, "page_image", counted) w = window_module.MainWindow() mine.append(w) w.ask_recover = lambda when: False w.labels_choice = lambda: arrange.FOLLOW w.resize(1100, 900) w.show() > assert w.open_path(pdf) ^^^^^^^^^^^^^^^^ tests/test_carry_over.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______________ ERROR at setup of test_saving_draws_nothing_again _______________ pdf = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_carry_over.py/tmp/test_saving_draws_nothing_agai0/d.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_carry_over.py/tmp/test_saving_draws_nothing_agai0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5280b82580> @pytest.fixture def window(pdf, tmp_path, monkeypatch): app = QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) drawn, why, mine = [], [], [] # (mine: this test's window, once it is made) def counted(page, scale, *args, **kwargs): # Solo las páginas de esta ventana: una ventana de una prueba anterior, cerrada pero aún no destruida, # puede tener temporizadores pendientes que dibujan las suyas (en un equipo ocupado, durante esta). if not mine or page.parent is not mine[0].doc: return PAGE_IMAGE(page, scale, *args, **kwargs) drawn.append(page.number) # (who drew it, for the message of a test that fails) why.append(" < ".join(f.name for f in traceback.extract_stack()[-6:-1])) return PAGE_IMAGE(page, scale, *args, **kwargs) monkeypatch.setattr(canvas_module, "page_image", counted) monkeypatch.setattr(window_module, "page_image", counted) w = window_module.MainWindow() mine.append(w) w.ask_recover = lambda when: False w.labels_choice = lambda: arrange.FOLLOW w.resize(1100, 900) w.show() > assert w.open_path(pdf) ^^^^^^^^^^^^^^^^ tests/test_carry_over.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________ ERROR at setup of test_other_settings_of_drawing_draw_again __________ pdf = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_carry_over.py/tmp/test_other_settings_of_drawing0/d.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_carry_over.py/tmp/test_other_settings_of_drawing0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5280b81150> @pytest.fixture def window(pdf, tmp_path, monkeypatch): app = QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) drawn, why, mine = [], [], [] # (mine: this test's window, once it is made) def counted(page, scale, *args, **kwargs): # Solo las páginas de esta ventana: una ventana de una prueba anterior, cerrada pero aún no destruida, # puede tener temporizadores pendientes que dibujan las suyas (en un equipo ocupado, durante esta). if not mine or page.parent is not mine[0].doc: return PAGE_IMAGE(page, scale, *args, **kwargs) drawn.append(page.number) # (who drew it, for the message of a test that fails) why.append(" < ".join(f.name for f in traceback.extract_stack()[-6:-1])) return PAGE_IMAGE(page, scale, *args, **kwargs) monkeypatch.setattr(canvas_module, "page_image", counted) monkeypatch.setattr(window_module, "page_image", counted) w = window_module.MainWindow() mine.append(w) w.ask_recover = lambda when: False w.labels_choice = lambda: arrange.FOLLOW w.resize(1100, 900) w.show() > assert w.open_path(pdf) ^^^^^^^^^^^^^^^^ tests/test_carry_over.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_carry_over.py::test_a_change_draws_only_the_pages_it_changed ERROR tests/test_carry_over.py::test_saving_draws_nothing_again - AttributeEr... ERROR tests/test_carry_over.py::test_other_settings_of_drawing_draw_again - A... 2 passed, 3 errors in 2.25s ====================================================================== test_columns.py ====================================================================== EE [100%] ==================================== ERRORS ==================================== _________________________ ERROR at setup of test_rows __________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_columns.py/tmp/test_rows0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7de7f43e10> @pytest.fixture def window(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow doc = pymupdf.open() for _ in range(10): doc.new_page() doc.save(tmp_path / "a.pdf") w = MainWindow() > assert w.open_path(tmp_path / "a.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_columns.py:20: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________ ERROR at setup of test_kept_with_the_document_and_presenting _________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_columns.py/tmp/test_kept_with_the_document_an0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7de7f43bb0> @pytest.fixture def window(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow doc = pymupdf.open() for _ in range(10): doc.new_page() doc.save(tmp_path / "a.pdf") w = MainWindow() > assert w.open_path(tmp_path / "a.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_columns.py:20: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_columns.py::test_rows - AttributeError: 'NoneType' object ha... ERROR tests/test_columns.py::test_kept_with_the_document_and_presenting - Att... 2 errors in 1.58s ====================================================================== test_comment_sign.py ====================================================================== .E [100%] ==================================== ERRORS ==================================== _________________ ERROR at setup of test_the_sign_on_the_page __________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_comment_sign.py/tmp/test_the_sign_on_the_page0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f49a24e6780> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) doc = pymupdf.open() doc.new_page() doc.save(tmp_path / "d.pdf") w = MainWindow() w.ask_recover = lambda when: False w.resize(1000, 800) w.show() > assert w.open_path(tmp_path / "d.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_comment_sign.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_comment_sign.py::test_the_sign_on_the_page - AttributeError:... 1 passed, 1 error in 1.06s ====================================================================== test_close_document.py ====================================================================== .FFFF [100%] =================================== FAILURES =================================== __________________________________ test_tabs ___________________________________ pdfs = [PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_close_document.py/tmp/test_tabs0/one.pdf'), PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_close_document.py/tmp/test_tabs0/two.pdf')] def test_tabs(pdfs): from py_pdftools.gui.tabs import open_in_tab > first = open_in_tab(pdfs[0]) ^^^^^^^^^^^^^^^^^^^^ tests/test_close_document.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/tabs.py:320: in open_in_tab win.open_path(Path(file), place) ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________________________ test_a_window_by_itself ____________________________ pdfs = [PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_close_document.py/tmp/test_a_window_by_itself0/one.pdf'), PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_close_document.py/tmp/test_a_window_by_itself0/two.pdf')] def test_a_window_by_itself(pdfs): from py_pdftools.gui import open_window > win = open_window(pdfs[0]) ^^^^^^^^^^^^^^^^^^^^ tests/test_close_document.py:78: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__init__.py:206: in open_window win.open_path(Path(file), place) ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________________ test_it_asks_before_the_empty_one_comes[False] ________________ pdfs = [PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_close_document.py/tmp/test_it_asks_before_the_empty_0/one.pdf'), PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_close_document.py/tmp/test_it_asks_before_the_empty_0/two.pdf')] in_tab = False @pytest.mark.parametrize("in_tab", [False, True]) def test_it_asks_before_the_empty_one_comes(pdfs, in_tab): """The last document with unsaved changes: Close document asks about them while it is still in front, before the empty window (or tab) that takes its place is opened; and only once (Discard leaves it modified).""" from PySide6.QtWidgets import QMessageBox from py_pdftools.gui import open_window from py_pdftools.gui.tabs import open_in_tab > win = open_in_tab(pdfs[0]) if in_tab else open_window(pdfs[0]) ^^^^^^^^^^^^^^^^^^^^ tests/test_close_document.py:100: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__init__.py:206: in open_window win.open_path(Path(file), place) ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________________ test_it_asks_before_the_empty_one_comes[True] _________________ pdfs = [PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_close_document.py/tmp/test_it_asks_before_the_empty_1/one.pdf'), PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_close_document.py/tmp/test_it_asks_before_the_empty_1/two.pdf')] in_tab = True @pytest.mark.parametrize("in_tab", [False, True]) def test_it_asks_before_the_empty_one_comes(pdfs, in_tab): """The last document with unsaved changes: Close document asks about them while it is still in front, before the empty window (or tab) that takes its place is opened; and only once (Discard leaves it modified).""" from PySide6.QtWidgets import QMessageBox from py_pdftools.gui import open_window from py_pdftools.gui.tabs import open_in_tab > win = open_in_tab(pdfs[0]) if in_tab else open_window(pdfs[0]) ^^^^^^^^^^^^^^^^^^^^ tests/test_close_document.py:100: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/tabs.py:320: in open_in_tab win.open_path(Path(file), place) ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_close_document.py::test_tabs - AttributeError: 'NoneType' o... FAILED tests/test_close_document.py::test_a_window_by_itself - AttributeError... FAILED tests/test_close_document.py::test_it_asks_before_the_empty_one_comes[False] FAILED tests/test_close_document.py::test_it_asks_before_the_empty_one_comes[True] 4 failed, 1 passed in 3.05s ====================================================================== test_close_many.py ====================================================================== FFFF [100%] =================================== FAILURES =================================== ____________________________ test_a_window_of_tabs _____________________________ pdfs = [PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_close_many.py/tmp/test_a_window_of_tabs0/one.pdf'), PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_close_many.py/tmp/test_a_window_of_tabs0/two.pdf')] monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f32e95f42b0> def test_a_window_of_tabs(pdfs, monkeypatch): from py_pdftools.gui.tabs import open_in_tab > first = open_in_tab(pdfs[0]) ^^^^^^^^^^^^^^^^^^^^ tests/test_close_many.py:56: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/tabs.py:320: in open_in_tab win.open_path(Path(file), place) ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______________________ test_one_document_and_the_setting _______________________ pdfs = [PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_close_many.py/tmp/test_one_document_and_the_sett0/one.pdf'), PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_close_many.py/tmp/test_one_document_and_the_sett0/two.pdf')] monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f32e95f4050> def test_one_document_and_the_setting(pdfs, monkeypatch): from py_pdftools.gui.tabs import may_close_many, open_in_tab > first = open_in_tab(pdfs[0]) ^^^^^^^^^^^^^^^^^^^^ tests/test_close_many.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/tabs.py:320: in open_in_tab win.open_path(Path(file), place) ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________________________________ test_quit ___________________________________ pdfs = [PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_close_many.py/tmp/test_quit0/one.pdf'), PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_close_many.py/tmp/test_quit0/two.pdf')] monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f32e2fa9c70> def test_quit(pdfs, monkeypatch): from py_pdftools import gui from py_pdftools.gui.tabs import open_in_tab > first = open_in_tab(pdfs[0]) ^^^^^^^^^^^^^^^^^^^^ tests/test_close_many.py:85: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/tabs.py:320: in open_in_tab win.open_path(Path(file), place) ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________________________ test_the_setting_in_the_dialog ________________________ pdfs = [PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_close_many.py/tmp/test_the_setting_in_the_dialog0/one.pdf'), PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_close_many.py/tmp/test_the_setting_in_the_dialog0/two.pdf')] def test_the_setting_in_the_dialog(pdfs): from py_pdftools.gui.prefs import SettingsDialog from py_pdftools.gui.tabs import open_in_tab > win = open_in_tab(pdfs[0]) ^^^^^^^^^^^^^^^^^^^^ tests/test_close_many.py:101: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/tabs.py:320: in open_in_tab win.open_path(Path(file), place) ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_close_many.py::test_a_window_of_tabs - AttributeError: 'Non... FAILED tests/test_close_many.py::test_one_document_and_the_setting - Attribut... FAILED tests/test_close_many.py::test_quit - AttributeError: 'NoneType' objec... FAILED tests/test_close_many.py::test_the_setting_in_the_dialog - AttributeEr... 4 failed in 2.87s ====================================================================== test_contents_page.py ====================================================================== ..F. [100%] =================================== FAILURES =================================== ____________________ test_the_panel_makes_it_as_one_change _____________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_contents_page.py/tmp/test_the_panel_makes_it_as_one0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ff93a9f4710> def test_the_panel_makes_it_as_one_change(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) from PySide6.QtWidgets import QApplication QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow w = MainWindow() > assert w.open_path(book(tmp_path / "book.pdf", True)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_contents_page.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_contents_page.py::test_the_panel_makes_it_as_one_change - A... 1 failed, 3 passed in 1.25s ====================================================================== test_contrast.py ====================================================================== ..F [100%] =================================== FAILURES =================================== ___________________________ test_the_field_of_a_note ___________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_contrast.py/tmp/test_the_field_of_a_note0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb705c87650> def test_the_field_of_a_note(tmp_path, monkeypatch): import dataclasses import pymupdf from PySide6.QtWidgets import QApplication monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow doc = pymupdf.open() doc.new_page() doc.save(tmp_path / "a.pdf") w = MainWindow() try: > assert w.open_path(tmp_path / "a.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_contrast.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_contrast.py::test_the_field_of_a_note - AttributeError: 'No... 1 failed, 2 passed in 1.08s ====================================================================== test_docinfo.py ====================================================================== .F [100%] =================================== FAILURES =================================== _______________________________ test_the_dialog ________________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_docinfo.py/tmp/test_the_dialog0') def test_the_dialog(tmp_path): from py_pdftools.gui.docprops_dialog import DocumentPropertiesDialog from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) path = sample(tmp_path / "t.pdf") w = MainWindow() w.ask_recover = lambda when: False assert w.a_doc_props.isEnabled() is False # (no document yet) > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_docinfo.py:51: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_docinfo.py::test_the_dialog - AttributeError: 'NoneType' ob... 1 failed, 1 passed in 1.27s ====================================================================== test_delete_pages.py ====================================================================== EEE [100%] ==================================== ERRORS ==================================== _______ ERROR at setup of test_delete_in_the_thumbnails_asks_and_deletes _______ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_delete_pages.py/tmp/test_delete_in_the_thumbnails_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7e88cbb100> @pytest.fixture def window(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow doc = pymupdf.open() for i in range(6): doc.new_page().insert_text((72, 100), f"Page {i + 1}") doc.save(tmp_path / "a.pdf") w = MainWindow() > assert w.open_path(tmp_path / "a.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_delete_pages.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______ ERROR at setup of test_no_answer_nothing_deleted_and_one_page_kept ______ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_delete_pages.py/tmp/test_no_answer_nothing_deleted0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7e88cbaea0> @pytest.fixture def window(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow doc = pymupdf.open() for i in range(6): doc.new_page().insert_text((72, 100), f"Page {i + 1}") doc.save(tmp_path / "a.pdf") w = MainWindow() > assert w.open_path(tmp_path / "a.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_delete_pages.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________ ERROR at setup of test_keybindings_opens_the_shortcuts ____________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_delete_pages.py/tmp/test_keybindings_opens_the_sho0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7e8414ee70> @pytest.fixture def window(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow doc = pymupdf.open() for i in range(6): doc.new_page().insert_text((72, 100), f"Page {i + 1}") doc.save(tmp_path / "a.pdf") w = MainWindow() > assert w.open_path(tmp_path / "a.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_delete_pages.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_delete_pages.py::test_delete_in_the_thumbnails_asks_and_deletes ERROR tests/test_delete_pages.py::test_no_answer_nothing_deleted_and_one_page_kept ERROR tests/test_delete_pages.py::test_keybindings_opens_the_shortcuts - Attr... 3 errors in 2.13s ====================================================================== test_ebooks.py ====================================================================== ..F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_ebooks.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7efd2d52fe30> def test_in_the_window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) source = epub(tmp_path / "g.epub") (tmp_path / "g.pdf").write_bytes(b"") # (a PDF of that name is there already) w = MainWindow() w.ask_recover = lambda when: False asked = [] def ask(src): asked.append(src) return tmp_path / "g (EPUB).pdf" w.ask_ebook_target = ask try: > assert w.open_path(source) ^^^^^^^^^^^^^^^^^^^ tests/test_ebooks.py:82: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:1978: in open_path return self.open_converted(path, place) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:1958: in open_converted win = self.open_made(target, place) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/files.py:57: in open_made return self if self.open_path(target, place, password) else None ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_ebooks.py::test_in_the_window - AttributeError: 'NoneType' ... 1 failed, 2 passed in 1.34s ====================================================================== test_filename.py ====================================================================== ........F [100%] =================================== FAILURES =================================== ___________________________ test_save_as_proposes_it ___________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_filename.py/tmp/test_save_as_proposes_it0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f9f70b8d4f0> def test_save_as_proposes_it(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) from PySide6.QtWidgets import QApplication, QFileDialog QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow article().save(tmp_path / "download (3).pdf") w = MainWindow() > assert w.open_path(tmp_path / "download (3).pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_filename.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_filename.py::test_save_as_proposes_it - AttributeError: 'No... 1 failed, 8 passed in 1.15s ====================================================================== test_formats.py ====================================================================== ....F.... [100%] =================================== FAILURES =================================== ___________________ test_a_document_opened_as_with_open_with ___________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_formats.py/tmp/test_a_document_opened_as_with0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fd2f0434f30> def test_a_document_opened_as_with_open_with(tmp_path, monkeypatch): """A Markdown file given to the window (Open with, the command line, a drop): Pandoc makes the PDF, which opens; an e-book goes the way it went.""" from PySide6.QtWidgets import QApplication from py_pdftools.core import pandoc monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui import tabs from py_pdftools.gui.window import MainWindow source = tmp_path / "notes.md" source.write_text("# Arma virumque cano\n") def to_pdf(src, target): doc = pymupdf.open() doc.new_page().insert_text((72, 100), Path(src).read_text(), fontsize=12) doc.save(target) return "lualatex" monkeypatch.setattr(pandoc, "available", lambda: True) monkeypatch.setattr(pandoc, "to_pdf", to_pdf) w = MainWindow() try: assert w._openable(str(source)) and not w._openable(str(tmp_path / "x.png")) w.ask_new_pdf = lambda title, name: tmp_path / name > assert w.open_path(source) ^^^^^^^^^^^^^^^^^^^ tests/test_formats.py:81: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:1980: in open_path return self.from_document_dialog(path) is not None ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/files.py:1196: in from_document_dialog made = self.open_made(target) ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/files.py:57: in open_made return self if self.open_path(target, place, password) else None ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_formats.py::test_a_document_opened_as_with_open_with - Attr... 1 failed, 8 passed in 1.26s ====================================================================== test_findbar.py ====================================================================== EEEEE [100%] ==================================== ERRORS ==================================== ________________ ERROR at setup of test_comes_down_from_the_top ________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_findbar.py/tmp/test_comes_down_from_the_top0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbd6f0d6fd0> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) doc = pymupdf.open() for n in range(5): page = doc.new_page() page.insert_text((72, 72), f"Page {n + 1}: the scribe copies the text.") if n in (1, 3): page.insert_text((72, 120), "The Scribe again, and a scribe more.") if n == 2: page.insert_text((72, 160), "una canción y otra cancion", fontname="helv") doc.save(tmp_path / "d.pdf") w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) w.show() > assert w.open_path(tmp_path / "d.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_findbar.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________________ ERROR at setup of test_the_first_place_at_once ________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_findbar.py/tmp/test_the_first_place_at_once0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbd6f0d6c40> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) doc = pymupdf.open() for n in range(5): page = doc.new_page() page.insert_text((72, 72), f"Page {n + 1}: the scribe copies the text.") if n in (1, 3): page.insert_text((72, 120), "The Scribe again, and a scribe more.") if n == 2: page.insert_text((72, 160), "una canción y otra cancion", fontname="helv") doc.save(tmp_path / "d.pdf") w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) w.show() > assert w.open_path(tmp_path / "d.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_findbar.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______________________ ERROR at setup of test_as_you_type ______________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_findbar.py/tmp/test_as_you_type0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbd6cc769f0> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) doc = pymupdf.open() for n in range(5): page = doc.new_page() page.insert_text((72, 72), f"Page {n + 1}: the scribe copies the text.") if n in (1, 3): page.insert_text((72, 120), "The Scribe again, and a scribe more.") if n == 2: page.insert_text((72, 160), "una canción y otra cancion", fontname="helv") doc.save(tmp_path / "d.pdf") w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) w.show() > assert w.open_path(tmp_path / "d.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_findbar.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________ ERROR at setup of test_history_close_and_the_rest_unchanged __________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_findbar.py/tmp/test_history_close_and_the_res0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbd6cc91590> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) doc = pymupdf.open() for n in range(5): page = doc.new_page() page.insert_text((72, 72), f"Page {n + 1}: the scribe copies the text.") if n in (1, 3): page.insert_text((72, 120), "The Scribe again, and a scribe more.") if n == 2: page.insert_text((72, 160), "una canción y otra cancion", fontname="helv") doc.save(tmp_path / "d.pdf") w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) w.show() > assert w.open_path(tmp_path / "d.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_findbar.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________________ ERROR at setup of test_f3_and_the_toolbar ___________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_findbar.py/tmp/test_f3_and_the_toolbar0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbd6cc91f20> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) doc = pymupdf.open() for n in range(5): page = doc.new_page() page.insert_text((72, 72), f"Page {n + 1}: the scribe copies the text.") if n in (1, 3): page.insert_text((72, 120), "The Scribe again, and a scribe more.") if n == 2: page.insert_text((72, 160), "una canción y otra cancion", fontname="helv") doc.save(tmp_path / "d.pdf") w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) w.show() > assert w.open_path(tmp_path / "d.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_findbar.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_findbar.py::test_comes_down_from_the_top - AttributeError: '... ERROR tests/test_findbar.py::test_the_first_place_at_once - AttributeError: '... ERROR tests/test_findbar.py::test_as_you_type - AttributeError: 'NoneType' ob... ERROR tests/test_findbar.py::test_history_close_and_the_rest_unchanged - Attr... ERROR tests/test_findbar.py::test_f3_and_the_toolbar - AttributeError: 'NoneT... 5 errors in 3.37s ====================================================================== test_hide_pictures.py ====================================================================== .F [100%] =================================== FAILURES =================================== _______________________________ test_the_window ________________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_hide_pictures.py/tmp/test_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fcd162fec40> def test_the_window(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) from PySide6.QtWidgets import QApplication QApplication.instance() or QApplication([]) from py_pdftools.gui.canvas import page_image from py_pdftools.gui.window import MainWindow path = sample(tmp_path / "p.pdf") w = MainWindow() try: > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_hide_pictures.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_hide_pictures.py::test_the_window - AttributeError: 'NoneTy... 1 failed, 1 passed in 1.12s ====================================================================== test_history.py ====================================================================== .E [100%] ==================================== ERRORS ==================================== _______________________ ERROR at setup of test_the_panel _______________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_history.py/tmp/test_the_panel0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4ee8095940> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) doc = pymupdf.open() for n in range(3): doc.new_page().insert_text((72, 72), f"P{n + 1}") doc.save(tmp_path / "d.pdf") w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 800) w.show() > assert w.open_path(tmp_path / "d.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_history.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_history.py::test_the_panel - AttributeError: 'NoneType' obje... 1 passed, 1 error in 1.12s ====================================================================== test_layers_panel.py ====================================================================== .F [100%] =================================== FAILURES =================================== ________________________________ test_the_panel ________________________________ layered = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_layers_panel.py/tmp/test_the_panel0/l.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_layers_panel.py/tmp/test_the_panel0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe782f46ea0> def test_the_panel(layered, tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) before = layered.read_bytes() w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(layered) ^^^^^^^^^^^^^^^^^^^^ tests/test_layers_panel.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_layers_panel.py::test_the_panel - AttributeError: 'NoneType... 1 failed, 1 passed in 1.13s ====================================================================== test_large_pages.py ====================================================================== .EEE [100%] ==================================== ERRORS ==================================== ____________ ERROR at setup of test_new_annotations_follow_the_page ____________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_large_pages.py/tmp/test_new_annotations_follow_th0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f95efb1d0f0> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) doc = pymupdf.open() doc.new_page(width=595, height=842) # (A4) doc.new_page(width=2480, height=3508) # (a scan at 300 ppp, as 72 points to the pixel) doc.save(tmp_path / "d.pdf") w = MainWindow() w.ask_recover = lambda when: False w.show() > assert w.open_path(tmp_path / "d.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_large_pages.py:35: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____ ERROR at setup of test_a_note_is_written_in_letters_that_can_be_read _____ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_large_pages.py/tmp/test_a_note_is_written_in_lett0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f95fdac7410> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) doc = pymupdf.open() doc.new_page(width=595, height=842) # (A4) doc.new_page(width=2480, height=3508) # (a scan at 300 ppp, as 72 points to the pixel) doc.save(tmp_path / "d.pdf") w = MainWindow() w.ask_recover = lambda when: False w.show() > assert w.open_path(tmp_path / "d.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_large_pages.py:35: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________ ERROR at setup of test_a_note_icon_can_be_seen_at_any_zoom __________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_large_pages.py/tmp/test_a_note_icon_can_be_seen_a0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f95ed5ca690> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) doc = pymupdf.open() doc.new_page(width=595, height=842) # (A4) doc.new_page(width=2480, height=3508) # (a scan at 300 ppp, as 72 points to the pixel) doc.save(tmp_path / "d.pdf") w = MainWindow() w.ask_recover = lambda when: False w.show() > assert w.open_path(tmp_path / "d.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_large_pages.py:35: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_large_pages.py::test_new_annotations_follow_the_page - Attri... ERROR tests/test_large_pages.py::test_a_note_is_written_in_letters_that_can_be_read ERROR tests/test_large_pages.py::test_a_note_icon_can_be_seen_at_any_zoom - A... 1 passed, 3 errors in 1.75s ====================================================================== test_lookups.py ====================================================================== .F [100%] =================================== FAILURES =================================== _____________________________ test_from_the_window _____________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_lookups.py/tmp/test_from_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8194210180> def test_from_the_window(tmp_path, monkeypatch): from py_pdftools.gui import lookups_dialog from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "t.pdf" doc = pymupdf.open() for _ in range(2): doc.new_page().insert_text((72, 100), "Arma virumque cano. Troiae qui primus ab oris", fontsize=14) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_lookups.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_lookups.py::test_from_the_window - AttributeError: 'NoneTyp... 1 failed, 1 passed in 0.68s ====================================================================== test_linkpreview.py ====================================================================== EEE [100%] ==================================== ERRORS ==================================== ______________________ ERROR at setup of test_the_target _______________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_linkpreview.py/tmp/test_the_target0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f52d957bce0> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "notes.pdf" doc = pymupdf.open() doc.new_page().insert_text((72, 100), "See the note.", fontsize=12) doc.new_page().insert_text((100, 500), "1. The note itself, far down the page.", fontsize=12) page = doc[0] page.insert_link({"kind": pymupdf.LINK_GOTO, "from": pymupdf.Rect(72, 88, 150, 104), "page": 1, "to": pymupdf.Point(100, 490)}) page.insert_link({"kind": pymupdf.LINK_URI, "from": pymupdf.Rect(72, 200, 150, 220), "uri": "https://x.org"}) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(900, 800) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_linkpreview.py:35: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______________________ ERROR at setup of test_the_picture ______________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_linkpreview.py/tmp/test_the_picture0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f52d957ba80> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "notes.pdf" doc = pymupdf.open() doc.new_page().insert_text((72, 100), "See the note.", fontsize=12) doc.new_page().insert_text((100, 500), "1. The note itself, far down the page.", fontsize=12) page = doc[0] page.insert_link({"kind": pymupdf.LINK_GOTO, "from": pymupdf.Rect(72, 88, 150, 104), "page": 1, "to": pymupdf.Point(100, 490)}) page.insert_link({"kind": pymupdf.LINK_URI, "from": pymupdf.Rect(72, 200, 150, 220), "uri": "https://x.org"}) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(900, 800) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_linkpreview.py:35: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________________ ERROR at setup of test_on_the_bookmarks ____________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_linkpreview.py/tmp/test_on_the_bookmarks0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f52d3176690> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "notes.pdf" doc = pymupdf.open() doc.new_page().insert_text((72, 100), "See the note.", fontsize=12) doc.new_page().insert_text((100, 500), "1. The note itself, far down the page.", fontsize=12) page = doc[0] page.insert_link({"kind": pymupdf.LINK_GOTO, "from": pymupdf.Rect(72, 88, 150, 104), "page": 1, "to": pymupdf.Point(100, 490)}) page.insert_link({"kind": pymupdf.LINK_URI, "from": pymupdf.Rect(72, 200, 150, 220), "uri": "https://x.org"}) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(900, 800) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_linkpreview.py:35: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_linkpreview.py::test_the_target - AttributeError: 'NoneType'... ERROR tests/test_linkpreview.py::test_the_picture - AttributeError: 'NoneType... ERROR tests/test_linkpreview.py::test_on_the_bookmarks - AttributeError: 'Non... 3 errors in 2.17s ====================================================================== test_lookup.py ====================================================================== ..EE [100%] ==================================== ERRORS ==================================== _____________ ERROR at setup of test_in_the_menu_of_the_selection ______________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_lookup.py/tmp/test_in_the_menu_of_the_select0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f91876b7d10> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "d.pdf" doc = pymupdf.open() doc.new_page().insert_text((72, 72), "virtus", fontsize=20) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_lookup.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________________ ERROR at setup of test_in_the_settings ____________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_lookup.py/tmp/test_in_the_settings0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f9186f3a030> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "d.pdf" doc = pymupdf.open() doc.new_page().insert_text((72, 72), "virtus", fontsize=20) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_lookup.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_lookup.py::test_in_the_menu_of_the_selection - AttributeErro... ERROR tests/test_lookup.py::test_in_the_settings - AttributeError: 'NoneType'... 2 passed, 2 errors in 1.49s ====================================================================== test_mystamps.py ====================================================================== ..F [100%] =================================== FAILURES =================================== _________________________ test_put_on_a_page_and_saved _________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_mystamps.py/tmp/test_put_on_a_page_and_saved0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3170734050> def test_put_on_a_page_and_saved(tmp_path, monkeypatch): from py_pdftools.annotate import annots from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) mystamps.add(seal_pdf(tmp_path / "seal.pdf")) doc = pymupdf.open() doc.new_page() doc.save(tmp_path / "d.pdf") w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(tmp_path / "d.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_mystamps.py:76: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_mystamps.py::test_put_on_a_page_and_saved - AttributeError:... 1 failed, 2 passed in 0.72s ====================================================================== test_objects.py ====================================================================== ....F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ window = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_objects.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f282dba3ce0> def test_in_the_window(window, tmp_path, monkeypatch): > assert window.open_path(sample(tmp_path / "a.pdf")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_objects.py:133: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_objects.py::test_in_the_window - AttributeError: 'NoneType'... 1 failed, 4 passed in 0.75s ====================================================================== test_modes.py ====================================================================== FFFF [100%] =================================== FAILURES =================================== ___________________________ test_the_modes_in_order ____________________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_modes.py/tmp/test_the_modes_in_order0/sample.pdf') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f07fa05f950> def test_the_modes_in_order(app, sample, monkeypatch): monkeypatch.setattr(window_module, "DEFAULT_MODE", "read") > w = make(app, sample) ^^^^^^^^^^^^^^^^^ tests/test_modes.py:52: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_modes.py:35: in make assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError __________________________ test_read_touches_nothing ___________________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_modes.py/tmp/test_read_touches_nothing0/sample.pdf') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f07fa05f490> def test_read_touches_nothing(app, sample, monkeypatch): > w = make(app, sample) ^^^^^^^^^^^^^^^^^ tests/test_modes.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_modes.py:35: in make assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________________ test_each_mode_keeps_its_arrangement _____________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_modes.py/tmp/test_each_mode_keeps_its_arran0/sample.pdf') def test_each_mode_keeps_its_arrangement(app, sample): """What is hidden in a mode stays so when it comes back, and in the next session; the panels of a mode are never shown in another.""" > w = make(app, sample) ^^^^^^^^^^^^^^^^^ tests/test_modes.py:78: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_modes.py:35: in make assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________________ test_the_hint_of_a_mode_over_the_pages ____________________ app = sample = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_modes.py/tmp/test_the_hint_of_a_mode_over_t0/sample.pdf') def test_the_hint_of_a_mode_over_the_pages(app, sample): """A mode's hint shows over the bottom of the pages when the mode is chosen, a click on the pages takes it away, F1 shows it again, and it fades by itself; nothing is kept below the pages for it.""" import time from PySide6.QtCore import QEvent, QPointF, Qt from PySide6.QtGui import QMouseEvent from py_pdftools.core import config config.set_many({"hints": True}) # (off at first: Settings > Appearance) > w = make(app, sample) ^^^^^^^^^^^^^^^^^ tests/test_modes.py:110: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_modes.py:35: in make assert w.open_path(sample) ^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_modes.py::test_the_modes_in_order - AttributeError: 'NoneTy... FAILED tests/test_modes.py::test_read_touches_nothing - AttributeError: 'None... FAILED tests/test_modes.py::test_each_mode_keeps_its_arrangement - AttributeE... FAILED tests/test_modes.py::test_the_hint_of_a_mode_over_the_pages - Attribut... 4 failed in 2.73s ====================================================================== test_one_width.py ====================================================================== F [100%] =================================== FAILURES =================================== ________________________________ test_one_width ________________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_one_width.py/tmp/test_one_width0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fc8f88b3bb0> def test_one_width(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow doc = pymupdf.open() for i, width in enumerate((595, 595, 640, 560, 595)): doc.new_page(width=width, height=842).insert_text((72, 100), f"Page {i + 1}", fontsize=30) doc.save(tmp_path / "a.pdf") w = MainWindow() try: > assert w.open_path(tmp_path / "a.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_one_width.py:23: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_one_width.py::test_one_width - AttributeError: 'NoneType' o... 1 failed in 0.97s ====================================================================== test_open_recent.py ====================================================================== F [100%] =================================== FAILURES =================================== _______________________________ test_open_recent _______________________________ pdfs = [PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_open_recent.py/tmp/test_open_recent0/one.pdf'), PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_open_recent.py/tmp/test_open_recent0/two.pdf')] tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_open_recent.py/tmp/test_open_recent0') def test_open_recent(pdfs, tmp_path): from py_pdftools.gui import open_window win = open_window(None) win.ask_recover = lambda when: False QApplication.processEvents() > assert win.open_recent(pdfs[0]) and win.path == pdfs[0] # (an empty window takes it) ^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_open_recent.py:46: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2528: in open_recent return self.open_path(path) ^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_open_recent.py::test_open_recent - AttributeError: 'NoneTyp... 1 failed in 1.25s ====================================================================== test_pandoc.py ====================================================================== .ssssssssssE [100%] ==================================== ERRORS ==================================== ____________________ ERROR at setup of test_without_pandoc _____________________ doc = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_pandoc.py/tmp/test_without_pandoc0/doc.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_pandoc.py/tmp/test_without_pandoc0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f0c732348a0> @pytest.fixture def win(doc, tmp_path, monkeypatch): from PySide6.QtWidgets import QApplication from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False > assert w.open_path(doc) ^^^^^^^^^^^^^^^^ tests/test_pandoc.py:122: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_pandoc.py::test_without_pandoc - AttributeError: 'NoneType' ... 1 passed, 10 skipped, 1 error in 0.71s ====================================================================== test_pagepick.py ====================================================================== .F [100%] =================================== FAILURES =================================== ________________________ test_chosen_in_the_thumbnails _________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_pagepick.py/tmp/test_chosen_in_the_thumbnails0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fddee8bbbb0> def test_chosen_in_the_thumbnails(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow book(tmp_path / "b.pdf") w = MainWindow() try: > assert w.open_path(tmp_path / "b.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_pagepick.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_pagepick.py::test_chosen_in_the_thumbnails - AttributeError... 1 failed, 1 passed in 1.12s ====================================================================== test_paste_picture.py ====================================================================== F [100%] =================================== FAILURES =================================== ______________________________ test_paste_picture ______________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_paste_picture.py/tmp/test_paste_picture0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5cc1144180> def test_paste_picture(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow doc = pymupdf.open() doc.new_page(width=600, height=800) doc.save(tmp_path / "a.pdf") w = MainWindow() try: > assert w.open_path(tmp_path / "a.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_paste_picture.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_paste_picture.py::test_paste_picture - AttributeError: 'Non... 1 failed in 1.08s ====================================================================== test_performance.py ====================================================================== .F.F.... [100%] =================================== FAILURES =================================== __________________ test_every_thumbnail_with_the_profile_all ___________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_performance.py/tmp/test_every_thumbnail_with_the_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fee0ec0ed70> def test_every_thumbnail_with_the_profile_all(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "long.pdf" doc = pymupdf.open() for _ in range(60): doc.new_page() doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(1000, 600) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_performance.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _______________________ test_the_dialog_and_transparency _______________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_performance.py/tmp/test_the_dialog_and_transparen0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fee0ebdbf00> text_pdf = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_performance.py/tmp/test_the_dialog_and_transparen0/text.pdf') def test_the_dialog_and_transparency(tmp_path, monkeypatch, text_pdf): from py_pdftools.gui.prefs import SettingsDialog from py_pdftools.gui.window import MainWindow monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False > assert w.open_path(text_pdf) ^^^^^^^^^^^^^^^^^^^^^ tests/test_performance.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_performance.py::test_every_thumbnail_with_the_profile_all FAILED tests/test_performance.py::test_the_dialog_and_transparency - Attribut... 2 failed, 6 passed in 1.57s ====================================================================== test_pictures.py ====================================================================== EEE [100%] ==================================== ERRORS ==================================== ________________ ERROR at setup of test_the_picture_of_an_area _________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_pictures.py/tmp/test_the_picture_of_an_area0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbd8d08eb10> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "p.pdf" doc = pymupdf.open() page = doc.new_page() page.insert_text((72, 80), "In principio erat verbum", fontsize=14) pix = pymupdf.Pixmap(pymupdf.csRGB, pymupdf.IRect(0, 0, 40, 30), 0) pix.set_rect(pix.irect, (0, 128, 255)) page.insert_image((300, 300, 400, 375), pixmap=pix) page.insert_link({"kind": pymupdf.LINK_URI, "from": pymupdf.Rect(72, 400, 200, 420), "uri": "https://example.org/"}) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(900, 800) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_pictures.py:35: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______________ ERROR at setup of test_with_the_annotations_of_now ______________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_pictures.py/tmp/test_with_the_annotations_of_n0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbd8d08e8b0> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "p.pdf" doc = pymupdf.open() page = doc.new_page() page.insert_text((72, 80), "In principio erat verbum", fontsize=14) pix = pymupdf.Pixmap(pymupdf.csRGB, pymupdf.IRect(0, 0, 40, 30), 0) pix.set_rect(pix.irect, (0, 128, 255)) page.insert_image((300, 300, 400, 375), pixmap=pix) page.insert_link({"kind": pymupdf.LINK_URI, "from": pymupdf.Rect(72, 400, 200, 420), "uri": "https://example.org/"}) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(900, 800) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_pictures.py:35: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______ ERROR at setup of test_the_picture_and_the_link_under_the_pointer _______ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_pictures.py/tmp/test_the_picture_and_the_link_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbd8852ad50> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "p.pdf" doc = pymupdf.open() page = doc.new_page() page.insert_text((72, 80), "In principio erat verbum", fontsize=14) pix = pymupdf.Pixmap(pymupdf.csRGB, pymupdf.IRect(0, 0, 40, 30), 0) pix.set_rect(pix.irect, (0, 128, 255)) page.insert_image((300, 300, 400, 375), pixmap=pix) page.insert_link({"kind": pymupdf.LINK_URI, "from": pymupdf.Rect(72, 400, 200, 420), "uri": "https://example.org/"}) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(900, 800) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_pictures.py:35: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_pictures.py::test_the_picture_of_an_area - AttributeError: '... ERROR tests/test_pictures.py::test_with_the_annotations_of_now - AttributeErr... ERROR tests/test_pictures.py::test_the_picture_and_the_link_under_the_pointer 3 errors in 2.21s ====================================================================== test_instance.py ====================================================================== F..F...FF..F. [100%] =================================== FAILURES =================================== ___________________ test_files_given_to_the_program_running ____________________ app = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_instance.py/tmp/test_files_given_to_the_progra0') def test_files_given_to_the_program_running(app, tmp_path): before = list(_WINDOWS) # (windows other tests left: not this test's) assert gui.background(True) assert not app.quitOnLastWindowClosed() and instance.server_name().startswith("py-pdftools-test-") # (another start, sending its files: a process of its own, as when py-pdftools-gui is started again; the # program running answers from here) files = [str(pdf(tmp_path / "one.pdf")), str(pdf(tmp_path / "two.pdf"))] # (up to three times: with the machine busy, as when every test file runs at once, the answer may come # later than instance.TIMEOUT_MS, and the start would then open a window of its own) for _ in range(3): sender = subprocess.Popen([sys.executable, "-c", f"from py_pdftools.gui import instance; " f"print(instance.send({files!r}))"], stdout=subprocess.PIPE, text=True) wait(app, lambda: sender.poll() is not None, seconds=30) if sender.stdout.read().strip() == "True": break else: pytest.fail("the program running never took the files") def opened(): # (each name once: a hand-off answered too late may have opened them already) return sorted({w.path.name for w in _WINDOWS if w not in before and w.path is not None}) wait(app, lambda: len(opened()) == 2) > assert opened() == ["one.pdf", "two.pdf"] E AssertionError: assert ['one.pdf'] == ['one.pdf', 'two.pdf'] E E Right contains one more item: 'two.pdf' E Use -v to get more diff tests/test_instance.py:73: AssertionError ----------------------------- Captured stderr call ----------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/instance.py", line 148, in _connection self._read(socket) ~~~~~~~~~~^^^^^^^^ File "/builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/instance.py", line 165, in _read self.open_window(path or None) ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "/builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__init__.py", line 206, in open_window win.open_path(Path(file), place) ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py", line 2028, in open_path self.refresh() ~~~~~~~~~~~~^^ File "/builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py", line 4206, in refresh self._enable() ~~~~~~~~~~~~^^ File "/builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py", line 4833, in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ~~~~~~~~~~~~~~~~~~~~~~~^^ File "/builddir/build/BUILD/py-pdftools-1.32.0-build/BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py", line 3101, in _clipboard_picture if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'hasImage' __________________________ test_quit_and_the_setting ___________________________ app = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_instance.py/tmp/test_quit_and_the_setting0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f2591d5bac0> def test_quit_and_the_setting(app, tmp_path, monkeypatch): from py_pdftools.gui.prefs import SettingsDialog > win = gui.open_window(pdf(tmp_path / "doc.pdf")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_instance.py:118: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__init__.py:206: in open_window win.open_path(Path(file), place) ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________________________ test_a_window_kept_ready ___________________________ app = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_instance.py/tmp/test_a_window_kept_ready0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f259051da90> def test_a_window_kept_ready(app, tmp_path, monkeypatch): monkeypatch.setattr(gui, "SPARE_DELAY_MS", 0) assert gui.take_spare() is None assert gui.background(True) gui.prepare_spare() spare = gui._SPARE[0] assert not spare.isVisible() > win = gui.open_window(pdf(tmp_path / "a.pdf")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_instance.py:183: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__init__.py:206: in open_window win.open_path(Path(file), place) ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________________________ test_start_with_the_session __________________________ app = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_instance.py/tmp/test_start_with_the_session0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f2590296d50> def test_start_with_the_session(app, tmp_path, monkeypatch): from py_pdftools.gui import autostart from py_pdftools.gui.prefs import SettingsDialog # Every system's place in the test's own folder, never the real one (on Windows, the folder Startup) monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "xdg")) monkeypatch.setenv("APPDATA", str(tmp_path / "appdata")) monkeypatch.setenv("HOME", str(tmp_path)) if sys.platform == "win32": # (a key of the test's own, never the user's Run) monkeypatch.setattr(autostart, "RUN_KEY", rf"Software\py-pdftools-tests\{uuid.uuid4().hex[:8]}\Run") assert not autostart.enabled() autostart.enable(True) assert autostart._run_value().endswith(" --background") autostart.enable(False) assert autostart._run_value() is None else: expected = {"darwin": tmp_path / "Library" / "LaunchAgents" / "io.github.nivaca.py-pdftools.plist"}.get( sys.platform, tmp_path / "xdg" / "autostart" / "py-pdftools.desktop") assert not autostart.enabled() path = autostart.enable(True) assert path == expected and "--background" in path.read_text() if sys.platform.startswith("linux"): text = path.read_text() assert "Exec=" in text and text.split("Exec=")[1].split("\n")[0].endswith("--background") autostart.enable(False) assert not path.exists() if sys.platform.startswith("linux"): monkeypatch.setenv("APPIMAGE", "/opt/My Apps/py-pdftools.AppImage") assert "Exec='/opt/My Apps/py-pdftools.AppImage' --background" in autostart.enable(True).read_text() autostart.enable(False) > win = gui.open_window(pdf(tmp_path / "doc.pdf")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_instance.py:226: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__init__.py:206: in open_window win.open_path(Path(file), place) ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________________ test_what_macos_says_to_the_program ______________________ app = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_instance.py/tmp/test_what_macos_says_to_the_pr0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f259038f2b0> def test_what_macos_says_to_the_program(app, tmp_path, monkeypatch): """The documents of the Finder come as FileOpen events; a click on the Dock, without a window, asks for one (not just after a start with the session).""" from PySide6.QtCore import QEvent from PySide6.QtGui import QFileOpenEvent from py_pdftools.gui import appevents opened, shown = [], [False] events = appevents.AppEvents(opened.append, lambda: shown[0]) target = pdf(tmp_path / "finder.pdf") assert events.eventFilter(app, QFileOpenEvent(str(target))) activate = QEvent(QEvent.Type.ApplicationActivate) events.eventFilter(app, activate) shown[0] = True events.eventFilter(app, activate) # (a window on the screen: nothing) assert opened == [str(target), None] quiet = appevents.AppEvents(opened.append, lambda: False, hidden=True) quiet.eventFilter(app, activate) assert opened == [str(target), None] monkeypatch.setattr(appevents, "QUIET_S", 0) later = appevents.AppEvents(opened.append, lambda: False, hidden=True) later.eventFilter(app, activate) assert opened == [str(target), None, None] # through the application, the window opens with the document filt = appevents.install(app, gui.open_window, gui.any_window_shown) try: > QApplication.sendEvent(app, QFileOpenEvent(str(target))) tests/test_instance.py:341: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/appearance.py:220: in eventFilter if obj is app and event.type() == QEvent.Type.ApplicationPaletteChange and not self.pending: ^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/appevents.py:35: in eventFilter self.open_window(path) ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/__init__.py:206: in open_window win.open_path(Path(file), place) ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: Error calling Python override of QObject::eventFilter(): Error calling Python override of QObject::eventFilter(): 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_instance.py::test_files_given_to_the_program_running - Asse... FAILED tests/test_instance.py::test_quit_and_the_setting - AttributeError: 'N... FAILED tests/test_instance.py::test_a_window_kept_ready - AttributeError: 'No... FAILED tests/test_instance.py::test_start_with_the_session - AttributeError: ... FAILED tests/test_instance.py::test_what_macos_says_to_the_program - Attribut... 5 failed, 8 passed in 14.29s ====================================================================== test_readingorder.py ====================================================================== .F [100%] =================================== FAILURES =================================== __________________________ test_selection_by_columns ___________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_readingorder.py/tmp/test_selection_by_columns0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ffbd2c94050> def test_selection_by_columns(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow path = two_columns(tmp_path / "a.pdf") words = pymupdf.open(path)[0].get_text("words", sort=False) texts = [w[4] for w in by_columns(words)] assert texts.index("left5") < texts.index("right0") # (the left column first, all of it) w = MainWindow() try: > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_readingorder.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_readingorder.py::test_selection_by_columns - AttributeError... 1 failed, 1 passed in 1.07s ====================================================================== test_protection.py ====================================================================== ......FF [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ app = plain = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_protection.py/tmp/test_in_the_window0/plain.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_protection.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7a617fa450> def test_in_the_window(app, plain, tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(plain) ^^^^^^^^^^^^^^^^^^ tests/test_protection.py:112: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________ test_a_protection_that_fails_leaves_the_document_shown ____________ app = plain = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_protection.py/tmp/test_a_protection_that_fails_l0/plain.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_protection.py/tmp/test_a_protection_that_fails_l0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7a614afd40> def test_a_protection_that_fails_leaves_the_document_shown(app, plain, tmp_path, monkeypatch): """The document is closed before its file is written over (Windows doesn't let a file open be replaced); if the protection then fails, it is shown again, as it was.""" from py_pdftools.gui.window import MainWindow monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(plain) ^^^^^^^^^^^^^^^^^^ tests/test_protection.py:138: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_protection.py::test_in_the_window - AttributeError: 'NoneTy... FAILED tests/test_protection.py::test_a_protection_that_fails_leaves_the_document_shown 2 failed, 6 passed in 2.01s ====================================================================== test_readingbar.py ====================================================================== EEE [100%] ==================================== ERRORS ==================================== _______________________ ERROR at setup of test_the_lines _______________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_readingbar.py/tmp/test_the_lines0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f48c15c7360> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "r.pdf" doc = pymupdf.open() for p in range(2): page = doc.new_page() for i in range(3): page.insert_text((72, 100 + 30 * i), f"Line {i + 1} of page {p + 1}", fontsize=12) page.insert_text((400, 100), "margin", fontsize=9) # (on the height of the first line) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(900, 700) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_readingbar.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _______________________ ERROR at setup of test_moving_it _______________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_readingbar.py/tmp/test_moving_it0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f48c15c7100> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "r.pdf" doc = pymupdf.open() for p in range(2): page = doc.new_page() for i in range(3): page.insert_text((72, 100 + 30 * i), f"Line {i + 1} of page {p + 1}", fontsize=12) page.insert_text((400, 100), "margin", fontsize=9) # (on the height of the first line) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(900, 700) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_readingbar.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________ ERROR at setup of test_the_arrows_scroll_without_it ______________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_readingbar.py/tmp/test_the_arrows_scroll_without0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f48bca567b0> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "r.pdf" doc = pymupdf.open() for p in range(2): page = doc.new_page() for i in range(3): page.insert_text((72, 100 + 30 * i), f"Line {i + 1} of page {p + 1}", fontsize=12) page.insert_text((400, 100), "margin", fontsize=9) # (on the height of the first line) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(900, 700) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_readingbar.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_readingbar.py::test_the_lines - AttributeError: 'NoneType' o... ERROR tests/test_readingbar.py::test_moving_it - AttributeError: 'NoneType' o... ERROR tests/test_readingbar.py::test_the_arrows_scroll_without_it - Attribute... 3 errors in 2.14s ====================================================================== test_rtl.py ====================================================================== F [100%] =================================== FAILURES =================================== ______________________________ test_right_to_left ______________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_rtl.py/tmp/test_right_to_left0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f071c39a780> def test_right_to_left(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow doc = pymupdf.open() for _ in range(6): doc.new_page() doc.save(tmp_path / "a.pdf") w = MainWindow() try: > assert w.open_path(tmp_path / "a.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_rtl.py:24: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_rtl.py::test_right_to_left - AttributeError: 'NoneType' obj... 1 failed in 1.08s ====================================================================== test_revert.py ====================================================================== EE [100%] ==================================== ERRORS ==================================== ________________________ ERROR at setup of test_revert _________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_revert.py/tmp/test_revert0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe54fa60640> @pytest.fixture def window(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow doc = pymupdf.open() for i in range(3): doc.new_page().insert_text((72, 100), f"Page {i + 1}", fontsize=12) doc.save(tmp_path / "a.pdf") w = MainWindow() > assert w.open_path(tmp_path / "a.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_revert.py:21: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________________ ERROR at setup of test_impose_keeps_f5 ____________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_revert.py/tmp/test_impose_keeps_f50') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe54fa603e0> @pytest.fixture def window(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow doc = pymupdf.open() for i in range(3): doc.new_page().insert_text((72, 100), f"Page {i + 1}", fontsize=12) doc.save(tmp_path / "a.pdf") w = MainWindow() > assert w.open_path(tmp_path / "a.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_revert.py:21: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_revert.py::test_revert - AttributeError: 'NoneType' object h... ERROR tests/test_revert.py::test_impose_keeps_f5 - AttributeError: 'NoneType'... 2 errors in 1.60s ====================================================================== test_runnable.py ====================================================================== .EEE [100%] ==================================== ERRORS ==================================== ___________ ERROR at setup of test_an_attached_program_is_not_opened ___________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_runnable.py/tmp/test_an_attached_program_is_no0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ff426b5be10> @pytest.fixture def window(tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "carrier.pdf" doc = pymupdf.open() doc.new_page() doc.embfile_add("invoice.exe", b"MZ...", filename="invoice.exe") doc.embfile_add("data.csv", b"a,b\n", filename="data.csv") doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(1400, 900) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_runnable.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________________ ERROR at setup of test_nor_from_its_annotation ________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_runnable.py/tmp/test_nor_from_its_annotation0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ff436433410> @pytest.fixture def window(tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "carrier.pdf" doc = pymupdf.open() doc.new_page() doc.embfile_add("invoice.exe", b"MZ...", filename="invoice.exe") doc.embfile_add("data.csv", b"a,b\n", filename="data.csv") doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(1400, 900) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_runnable.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________________ ERROR at setup of test_nor_a_link_to_one ___________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_runnable.py/tmp/test_nor_a_link_to_one0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ff425bbd8c0> @pytest.fixture def window(tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "carrier.pdf" doc = pymupdf.open() doc.new_page() doc.embfile_add("invoice.exe", b"MZ...", filename="invoice.exe") doc.embfile_add("data.csv", b"a,b\n", filename="data.csv") doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(1400, 900) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_runnable.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_runnable.py::test_an_attached_program_is_not_opened - Attrib... ERROR tests/test_runnable.py::test_nor_from_its_annotation - AttributeError: ... ERROR tests/test_runnable.py::test_nor_a_link_to_one - AttributeError: 'NoneT... 1 passed, 3 errors in 2.15s ====================================================================== test_scanner.py ====================================================================== ..F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ fake = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_scanner.py/tmp/test_in_the_window0/bin/scanimage') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_scanner.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ff415b13ad0> def test_in_the_window(fake, tmp_path, monkeypatch): from PySide6.QtWidgets import QApplication monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui import tabs from py_pdftools.gui.scan_dialog import ScanDialog from py_pdftools.gui.window import MainWindow w = MainWindow() d = ScanDialog(w, ocr=False) try: assert len(d.find_devices()) == 2 and d.mode.currentText() == "Gray" d.source.setCurrentIndex(1) assert d.batch.isChecked() d.scan() d.worker.wait(20000) QApplication.processEvents() assert d.pages.count() == 3 and d.make.isEnabled() d.pages.setCurrentRow(0) d.pages.item(0).setSelected(True) d.remove_chosen() assert [p.name for p in d.paths()] == ["page-0002.tif", "page-0003.tif"] target = tmp_path / "scan.pdf" w.ask_new_pdf = lambda title, name: target > made = w.scan_dialog(d) ^^^^^^^^^^^^^^^^ tests/test_scanner.py:102: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/files.py:156: in scan_dialog made = self.open_made(target) ^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/files.py:57: in open_made return self if self.open_path(target, place, password) else None ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_scanner.py::test_in_the_window - AttributeError: 'NoneType'... 1 failed, 2 passed in 1.86s ====================================================================== test_selectionbar.py ====================================================================== EEE [100%] ==================================== ERRORS ==================================== ________________________ ERROR at setup of test_the_bar ________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_selectionbar.py/tmp/test_the_bar0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fa82998c050> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "t.pdf" doc = pymupdf.open() for _ in range(3): doc.new_page().insert_text((72, 100), "Arma virumque cano, Troiae qui primus ab oris", fontsize=14) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(900, 700) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_selectionbar.py:28: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________________ ERROR at setup of test_it_goes_away ______________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_selectionbar.py/tmp/test_it_goes_away0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fa82f3f3ce0> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "t.pdf" doc = pymupdf.open() for _ in range(3): doc.new_page().insert_text((72, 100), "Arma virumque cano, Troiae qui primus ab oris", fontsize=14) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(900, 700) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_selectionbar.py:28: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ___________ ERROR at setup of test_in_a_document_that_cannot_change ____________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_selectionbar.py/tmp/test_in_a_document_that_cannot0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fa823346690> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "t.pdf" doc = pymupdf.open() for _ in range(3): doc.new_page().insert_text((72, 100), "Arma virumque cano, Troiae qui primus ab oris", fontsize=14) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(900, 700) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_selectionbar.py:28: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_selectionbar.py::test_the_bar - AttributeError: 'NoneType' o... ERROR tests/test_selectionbar.py::test_it_goes_away - AttributeError: 'NoneTy... ERROR tests/test_selectionbar.py::test_in_a_document_that_cannot_change - Att... 3 errors in 2.15s ====================================================================== test_snapshots.py ====================================================================== F [100%] =================================== FAILURES =================================== ________________________ test_a_snapshot_kept_and_back _________________________ window = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_snapshots.py/tmp/test_a_snapshot_kept_and_back0') def test_a_snapshot_kept_and_back(window, tmp_path): doc = pymupdf.open() for i in range(3): doc.new_page().insert_text((72, 100), f"Page {i + 1}: a poem", fontsize=20) doc.save(tmp_path / "p.pdf") > assert window.open_path(tmp_path / "p.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_snapshots.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_snapshots.py::test_a_snapshot_kept_and_back - AttributeErro... 1 failed in 1.07s ====================================================================== test_snippets.py ====================================================================== EEE [100%] ==================================== ERRORS ==================================== ________________ ERROR at setup of test_a_comment_put_as_a_note ________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_snippets.py/tmp/test_a_comment_put_as_a_note0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f832d4a4180> @pytest.fixture def window(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow doc = pymupdf.open() doc.new_page() doc.save(tmp_path / "a.pdf") w = MainWindow() > assert w.open_path(tmp_path / "a.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_snippets.py:23: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________ ERROR at setup of test_without_comments_it_says_where _____________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_snippets.py/tmp/test_without_comments_it_says_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8332f47e10> @pytest.fixture def window(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow doc = pymupdf.open() doc.new_page() doc.save(tmp_path / "a.pdf") w = MainWindow() > assert w.open_path(tmp_path / "a.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_snippets.py:23: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________________ ERROR at setup of test_written_in_the_settings ________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_snippets.py/tmp/test_written_in_the_settings0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8326ebe690> @pytest.fixture def window(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow doc = pymupdf.open() doc.new_page() doc.save(tmp_path / "a.pdf") w = MainWindow() > assert w.open_path(tmp_path / "a.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_snippets.py:23: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_snippets.py::test_a_comment_put_as_a_note - AttributeError: ... ERROR tests/test_snippets.py::test_without_comments_it_says_where - Attribute... ERROR tests/test_snippets.py::test_written_in_the_settings - AttributeError: ... 3 errors in 2.03s ====================================================================== test_signature_picture.py ====================================================================== ..F..F.... [100%] =================================== FAILURES =================================== ____________________________ test_put_with_the_tool ____________________________ scan = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_signature_picture.py/tmp/test_put_with_the_tool0/scan.jpg') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_signature_picture.py/tmp/test_put_with_the_tool0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f251d174ef0> def test_put_with_the_tool(scan, tmp_path, monkeypatch): from py_pdftools.annotate import annots from py_pdftools.gui.window import MainWindow monkeypatch.setenv("HOME", str(tmp_path)) doc = pymupdf.open() doc.new_page() doc.save(tmp_path / "d.pdf") w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(tmp_path / "d.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_signature_picture.py:79: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________________________________ test_the_size _________________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_signature_picture.py/tmp/test_the_size0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f251c404050> scan = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_signature_picture.py/tmp/test_the_size0/scan.jpg') def test_the_size(tmp_path, monkeypatch, scan): """A drag with the tool makes the signature as wide as the box; a click, of the width set in My signature.""" from py_pdftools.gui.window import MainWindow monkeypatch.setenv("HOME", str(tmp_path)) doc = pymupdf.open() doc.new_page() doc.save(tmp_path / "d.pdf") w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(tmp_path / "d.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_signature_picture.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_signature_picture.py::test_put_with_the_tool - AttributeErr... FAILED tests/test_signature_picture.py::test_the_size - AttributeError: 'None... 2 failed, 8 passed in 2.93s ====================================================================== test_settings_more.py ====================================================================== .....F.F... [100%] =================================== FAILURES =================================== ________________________________ test_documents ________________________________ window = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_settings_more.py/tmp/test_documents0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f60b8f1b350> def test_documents(window, tmp_path, monkeypatch): first = doc(tmp_path / "a.pdf", 5) d = SettingsDialog(window.prefs, window) d.opening.setCurrentIndex(d.opening.findData("actual")) d.places.setChecked(False) d.ask_links.setChecked(False) d.recent.setValue(2) d.dialogs.setCurrentIndex(d.dialogs.findData("document")) d.accept() > assert window.open_path(first) ^^^^^^^^^^^^^^^^^^^^^^^ tests/test_settings_more.py:165: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________________________ test_text_sharpness ______________________________ window = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_settings_more.py/tmp/test_text_sharpness0') def test_text_sharpness(window, tmp_path): """Settings > Appearance > Text on the pages: the grey edges of the letters darkened, in the pages drawn by the processes of rendering and by the window itself; As drawn leaves them as MuPDF draws them.""" from py_pdftools.core import rendering from py_pdftools.gui import reading from py_pdftools.gui.canvas import page_image d = pymupdf.open() d.new_page().insert_text((40, 60), "Sharp text, or soft", fontsize=11) d.save(tmp_path / "t.pdf") path = str(tmp_path / "t.pdf") stamp = ((tmp_path / "t.pdf").stat().st_mtime_ns, (tmp_path / "t.pdf").stat().st_size) def pixels(name): w, h, stride, data = rendering.render(path, "", stamp, 0, 1.0, sharpness=reading.SHARPNESS[name]) return [data[r * stride: r * stride + w * 3] for r in range(h)] def ink(name): # (the darkness of the text: the sum of how far each pixel is from white) return sum(255 - b for row in pixels(name) for b in row) def edges(name): # (how steep the edges are: the sum of the differences between neighbours in a row) return sum(abs(row[i] - row[i + 3]) for row in pixels(name) for i in range(len(row) - 3)) assert ink("sharper") > ink("drawn") * 1.1 assert edges("drawn") < edges("sharper") < edges("sharpest") assert config.get("sharpness") == "sharper" # (the default) before = reading.SHARPEN try: > assert window.open_path(tmp_path / "t.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_settings_more.py:225: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_settings_more.py::test_documents - AttributeError: 'NoneTyp... FAILED tests/test_settings_more.py::test_text_sharpness - AttributeError: 'No... 2 failed, 9 passed in 4.40s ====================================================================== test_stabilizer.py ====================================================================== EE [100%] ==================================== ERRORS ==================================== _______________________ ERROR at setup of test_steadier ________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_stabilizer.py/tmp/test_steadier0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb98ca82d70> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "s.pdf" doc = pymupdf.open() doc.new_page() doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(900, 800) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_stabilizer.py:30: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______________________ ERROR at setup of test_the_setting ______________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_stabilizer.py/tmp/test_the_setting0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb98ca82b10> @pytest.fixture def window(tmp_path, monkeypatch): from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "s.pdf" doc = pymupdf.open() doc.new_page() doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(900, 800) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_stabilizer.py:30: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_stabilizer.py::test_steadier - AttributeError: 'NoneType' ob... ERROR tests/test_stabilizer.py::test_the_setting - AttributeError: 'NoneType'... 2 errors in 1.62s ====================================================================== test_startup.py ====================================================================== .......F. [100%] =================================== FAILURES =================================== _____________________ test_first_drawing_without_the_pause _____________________ window = tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_startup.py/tmp/test_first_drawing_without_the0') def test_first_drawing_without_the_pause(window, tmp_path): """A document just opened is drawn at once: the pause that gathers scrolls and zooms (RENDER_MS) comes back after that first drawing.""" from py_pdftools.gui import canvas path = tmp_path / "one.pdf" d = pymupdf.open() d.new_page() d.save(path) > assert window.open_path(path) ^^^^^^^^^^^^^^^^^^^^^^ tests/test_startup.py:162: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_startup.py::test_first_drawing_without_the_pause - Attribut... 1 failed, 8 passed in 1.87s ====================================================================== test_steps.py ====================================================================== .....F. [100%] =================================== FAILURES =================================== _______________________________ test_the_dialog ________________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_steps.py/tmp/test_the_dialog0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3324bf9650> def test_the_dialog(tmp_path, monkeypatch): from py_pdftools.gui.steps_dialog import StepsDialog from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False > assert w.open_path(pdf(tmp_path / "doc.pdf", "Doc")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_steps.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_steps.py::test_the_dialog - AttributeError: 'NoneType' obje... 1 failed, 6 passed in 1.24s ====================================================================== test_textindex.py ====================================================================== ........................................FF.. [100%] =================================== FAILURES =================================== _______________________ test_one_index_for_every_search ________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_textindex.py/tmp/test_one_index_for_every_searc0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb2a3a22270> def test_one_index_for_every_search(tmp_path, monkeypatch): """The window keeps one index for the document shown, and Find as you type and Find all use it; another document, another index.""" from PySide6.QtWidgets import QApplication from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) d = pymupdf.open() for n in range(3): d.new_page().insert_text((72, 72), f"page {n} the scribe") d.save(tmp_path / "a.pdf") w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(tmp_path / "a.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_textindex.py:103: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____________________ test_find_all_page_by_page_and_stopped ____________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_textindex.py/tmp/test_find_all_page_by_page_and0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb2a35e5630> def test_find_all_page_by_page_and_stopped(tmp_path, monkeypatch): """Find all fills its list as it goes; a new search started meanwhile stops the one running, which leaves the list to it; closing the panel stops it too.""" from PySide6.QtWidgets import QApplication from py_pdftools.gui.window import MainWindow QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) d = pymupdf.open() for n in range(40): d.new_page().insert_text((72, 72), f"page {n} the scribe and the copy") d.save(tmp_path / "a.pdf") w = MainWindow() w.ask_recover = lambda when: False try: > assert w.open_path(tmp_path / "a.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_textindex.py:132: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_textindex.py::test_one_index_for_every_search - AttributeEr... FAILED tests/test_textindex.py::test_find_all_page_by_page_and_stopped - Attr... 2 failed, 42 passed in 2.64s ====================================================================== test_thumbcache.py ====================================================================== ...F [100%] =================================== FAILURES =================================== ___________ test_a_document_opened_again_shows_them_without_drawing ____________ pdf = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_thumbcache.py/tmp/test_a_document_opened_again_s0/d.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_thumbcache.py/tmp/test_a_document_opened_again_s0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbd01f20050> def test_a_document_opened_again_shows_them_without_drawing(pdf, tmp_path, monkeypatch): app = QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) drawn = [] monkeypatch.setattr(window_module, "page_image", lambda page, *args, **kwargs: drawn.append(page.number) or PAGE_IMAGE(page, *args, **kwargs)) performance.apply({**performance.settings(), "thumb_cache": True}) try: > w = _open(pdf, drawn, app) ^^^^^^^^^^^^^^^^^^^^^^ tests/test_thumbcache.py:88: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_thumbcache.py:72: in _open assert w.open_path(pdf) ^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_thumbcache.py::test_a_document_opened_again_shows_them_without_drawing 1 failed, 3 passed in 1.13s ====================================================================== test_textselect.py ====================================================================== EEEEE [100%] ==================================== ERRORS ==================================== ___________________ ERROR at setup of test_a_word_and_a_line ___________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_textselect.py/tmp/test_a_word_and_a_line0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fd0d1257a80> @pytest.fixture def window(tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "text.pdf" doc = pymupdf.open() for lines in LINES: page = doc.new_page(width=400, height=300) for i, line in enumerate(lines): page.insert_text((40, 60 + i * 40), line, fontsize=16) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 900) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_textselect.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _________ ERROR at setup of test_a_drag_across_pages_copied_and_marked _________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_textselect.py/tmp/test_a_drag_across_pages_copie0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fd0d1257820> @pytest.fixture def window(tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "text.pdf" doc = pymupdf.open() for lines in LINES: page = doc.new_page(width=400, height=300) for i, line in enumerate(lines): page.insert_text((40, 60 + i * 40), line, fontsize=16) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 900) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_textselect.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ________ ERROR at setup of test_column_shift_click_escape_and_redaction ________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_textselect.py/tmp/test_column_shift_click_escape0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fd0d058a690> @pytest.fixture def window(tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "text.pdf" doc = pymupdf.open() for lines in LINES: page = doc.new_page(width=400, height=300) for i, line in enumerate(lines): page.insert_text((40, 60 + i * 40), line, fontsize=16) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 900) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_textselect.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _____________________ ERROR at setup of test_in_every_mode _____________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_textselect.py/tmp/test_in_every_mode0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fd0d119d8c0> @pytest.fixture def window(tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "text.pdf" doc = pymupdf.open() for lines in LINES: page = doc.new_page(width=400, height=300) for i, line in enumerate(lines): page.insert_text((40, 60 + i * 40), line, fontsize=16) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 900) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_textselect.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ______________ ERROR at setup of test_copied_without_line_breaks _______________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_textselect.py/tmp/test_copied_without_line_break0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fd0d02c9f20> @pytest.fixture def window(tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) path = tmp_path / "text.pdf" doc = pymupdf.open() for lines in LINES: page = doc.new_page(width=400, height=300) for i, line in enumerate(lines): page.insert_text((40, 60 + i * 40), line, fontsize=16) doc.save(path) w = MainWindow() w.ask_recover = lambda when: False w.resize(1100, 900) w.show() > assert w.open_path(path) ^^^^^^^^^^^^^^^^^ tests/test_textselect.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_textselect.py::test_a_word_and_a_line - AttributeError: 'Non... ERROR tests/test_textselect.py::test_a_drag_across_pages_copied_and_marked - ... ERROR tests/test_textselect.py::test_column_shift_click_escape_and_redaction ERROR tests/test_textselect.py::test_in_every_mode - AttributeError: 'NoneTyp... ERROR tests/test_textselect.py::test_copied_without_line_breaks - AttributeEr... 5 errors in 3.31s ====================================================================== test_thisfile.py ====================================================================== .EEE [100%] ==================================== ERRORS ==================================== ___________________ ERROR at setup of test_next_and_previous ___________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_thisfile.py/tmp/test_next_and_previous0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ff7d14c1350> @pytest.fixture def window(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow folder = tmp_path / "docs" folder.mkdir() for name in ("a1", "a2", "a10"): pdf(folder / f"{name}.pdf") w = MainWindow() > assert w.open_path(folder / "a2.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_thisfile.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError ____ ERROR at setup of test_rename_keeps_it_open_with_its_annotations_apart ____ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_thisfile.py/tmp/test_rename_keeps_it_open_with0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ff7df44f410> @pytest.fixture def window(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow folder = tmp_path / "docs" folder.mkdir() for name in ("a1", "a2", "a10"): pdf(folder / f"{name}.pdf") w = MainWindow() > assert w.open_path(folder / "a2.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_thisfile.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError _______________ ERROR at setup of test_to_the_trash_and_the_next _______________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_thisfile.py/tmp/test_to_the_trash_and_the_next0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ff7cabe5590> @pytest.fixture def window(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow folder = tmp_path / "docs" folder.mkdir() for name in ("a1", "a2", "a10"): pdf(folder / f"{name}.pdf") w = MainWindow() > assert w.open_path(folder / "a2.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_thisfile.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_thisfile.py::test_next_and_previous - AttributeError: 'NoneT... ERROR tests/test_thisfile.py::test_rename_keeps_it_open_with_its_annotations_apart ERROR tests/test_thisfile.py::test_to_the_trash_and_the_next - AttributeError... 1 passed, 3 errors in 2.14s ====================================================================== test_visualcompare.py ====================================================================== .E.. [100%] ==================================== ERRORS ==================================== _____________ ERROR at setup of test_the_window_of_the_comparison ______________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_visualcompare.py/tmp/test_the_window_of_the_compari0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7da01dfa80> @pytest.fixture def window(tmp_path, monkeypatch): QApplication.instance() or QApplication([]) monkeypatch.setenv("HOME", str(tmp_path)) w = MainWindow() w.ask_recover = lambda when: False w.resize(1200, 900) w.show() > assert w.open_path(book(tmp_path / "here.pdf", {})) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_visualcompare.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_visualcompare.py::test_the_window_of_the_comparison - Attrib... 3 passed, 1 error in 1.36s ====================================================================== test_wordcount.py ====================================================================== .E [100%] ==================================== ERRORS ==================================== ______________________ ERROR at setup of test_the_dialog _______________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_wordcount.py/tmp/test_the_dialog0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe4c07bbe10> @pytest.fixture def window(tmp_path, monkeypatch): monkeypatch.setenv("XDG_CONFIG_HOME", str(tmp_path / "config")) monkeypatch.setenv("PY_PDFTOOLS_CONFIG", str(tmp_path / "config" / "config.toml")) QApplication.instance() or QApplication([]) from py_pdftools.gui.window import MainWindow doc = pymupdf.open() doc.new_page().insert_text((72, 100), "Arma virumque cano", fontsize=12) doc.new_page().insert_text((72, 100), "Troiae qui primus ab oris", fontsize=12) doc.save(tmp_path / "a.pdf") w = MainWindow() > assert w.open_path(tmp_path / "a.pdf") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_wordcount.py:30: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ ERROR tests/test_wordcount.py::test_the_dialog - AttributeError: 'NoneType' o... 1 passed, 1 error in 1.07s ====================================================================== test_wordfinder.py ====================================================================== .....F. [100%] =================================== FAILURES =================================== _______________________________ test_the_dialog ________________________________ labelled = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_wordfinder.py/tmp/test_the_dialog0/labelled.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_wordfinder.py/tmp/test_the_dialog0') def test_the_dialog(labelled, tmp_path): from PySide6.QtWidgets import QApplication from py_pdftools.gui.window import MainWindow from py_pdftools.gui.wordindex_dialog import WordIndexDialog QApplication.instance() or QApplication([]) w = MainWindow() w.ask_recover = lambda when: False assert not w.a_word_index.isEnabled() > assert w.open_path(labelled) and w.a_word_index.isEnabled() ^^^^^^^^^^^^^^^^^^^^^ tests/test_wordfinder.py:136: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_wordfinder.py::test_the_dialog - AttributeError: 'NoneType'... 1 failed, 6 passed in 1.35s ====================================================================== test_work_counts.py ====================================================================== F [100%] =================================== FAILURES =================================== __________________ test_a_long_document_asks_for_no_more_work __________________ pdfs = {50: PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_work_counts.py/tmp/counts0/50.pdf'), 500: PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_work_counts.py/tmp/counts0/500.pdf')} monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f04175a29e0> tmp_path = PosixPath('/tmp/py-pdftools-tests-xg90qr1r/test_work_counts.py/tmp/test_a_long_document_asks_for_0') def test_a_long_document_asks_for_no_more_work(pdfs, monkeypatch, tmp_path): > short = _work(pdfs[50], monkeypatch, tmp_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_work_counts.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_work_counts.py:74: in _work assert w.open_path(path) ^^^^^^^^^^^^^^^^^ ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:2028: in open_path self.refresh() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4206: in refresh self._enable() ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:4833: in _enable self.a_paste.setEnabled(has and (bool(_CLIPBOARD) or self._clipboard_picture() is not None)) ^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _clipboard_picture(self): """The picture on the clipboard, put there by another program (a screenshot, a figure): None if there is none, or if what was copied last were annotations of this program.""" board = QApplication.clipboard() > if board.ownsClipboard() or not board.mimeData().hasImage(): ^^^^^^^^^^^^^^^^^^^^^^^^^ E AttributeError: 'NoneType' object has no attribute 'hasImage' ../BUILDROOT/usr/lib/python3.15/site-packages/py_pdftools/gui/window.py:3101: AttributeError =========================== short test summary info ============================ FAILED tests/test_work_counts.py::test_a_long_document_asks_for_no_more_work 1 failed in 1.13s 6 error, 202 errors, 117 failed, 805 passed, 54 skipped (158 files) in 118.3s: FAILED (92 files) RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.KrtThq (%check) Bad exit status from /var/tmp/rpm-tmp.KrtThq (%check) Finish: rpmbuild py-pdftools-1.32.0-1.fc45.src.rpm Finish: build phase for py-pdftools-1.32.0-1.fc45.src.rpm INFO: chroot_scan: 1 files copied to /var/lib/copr-rpmbuild/results/chroot_scan INFO: /var/lib/mock/fedora-45-x86_64-1795997168.257285/root/var/log/dnf5.log INFO: chroot_scan: creating tarball /var/lib/copr-rpmbuild/results/chroot_scan.tar.gz /bin/tar: Removing leading `/' from member names ERROR: Exception(/var/lib/copr-rpmbuild/results/py-pdftools-1.32.0-1.fc45.src.rpm) Config(fedora-45-x86_64) 2 minutes 32 seconds INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results INFO: Cleaning up build root ('cleanup_on_failure=True') Start: clean chroot INFO: unmounting tmpfs. Finish: clean chroot ERROR: Command failed: # /usr/bin/systemd-nspawn -q -M b78b23a5f8ec433ea4369428fea5e525 -D /var/lib/mock/fedora-45-x86_64-1795997168.257285/root -a -u mockbuild --capability=cap_ipc_lock --capability=cap_ipc_lock --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --resolv-conf=off --resolv-conf=off --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;\007"' '--setenv=PS1= \s-\v\$ ' --setenv=LANG=C.UTF-8 bash --login -c '/usr/bin/rpmbuild -ba --noprep --noclean --target x86_64 /builddir/build/originals/py-pdftools.spec' Copr build error: Build failed