Warning: Permanently added '98.82.116.23' (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-rawhide-x86_64 --chroot fedora-rawhide-x86_64 Version: 1.12 PID: 11667 Logging PID: 11669 Task: {'allow_user_ssh': False, 'appstream': False, 'background': False, 'build_id': 11407836, 'buildroot_pkgs': [], 'chroot': 'fedora-rawhide-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-rawhide-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-rawhide-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-w61ojjyr/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-w61ojjyr/py-pdftools', '--depth', '500', '--no-single-branch', '--recursive'] cwd: . rc: 0 stdout: stderr: Cloning into '/var/lib/copr-rpmbuild/workspace/workdir-w61ojjyr/py-pdftools'... Running: git checkout 7d8cef01b8b8213d7512df81efe21eb919badb91 -- cmd: ['git', 'checkout', '7d8cef01b8b8213d7512df81efe21eb919badb91', '--'] cwd: /var/lib/copr-rpmbuild/workspace/workdir-w61ojjyr/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-w61ojjyr/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 408.3M 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-w61ojjyr/py-pdftools/py-pdftools.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-w61ojjyr/py-pdftools --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1795997168.508416 -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-w61ojjyr/py-pdftools/py-pdftools.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-w61ojjyr/py-pdftools --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1795997168.508416 -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-w61ojjyr/py-pdftools/py-pdftools.spec) Config(fedora-rawhide-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-rawhide-x86_64-bootstrap-1795997168.508416/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:rawhide INFO: Pulling image: registry.fedoraproject.org/fedora:rawhide INFO: Tagging container image as mock-bootstrap-626e9a54-c08d-4c62-8cda-d48a7c283d9f INFO: Checking that 04c8fdabfbe98ecc9a30a08a9d6663b4d266354160b132e7fe1f288609d2b69b image matches host's architecture INFO: Copy content of container 04c8fdabfbe98ecc9a30a08a9d6663b4d266354160b132e7fe1f288609d2b69b to /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1795997168.508416/root INFO: mounting 04c8fdabfbe98ecc9a30a08a9d6663b4d266354160b132e7fe1f288609d2b69b with podman image mount INFO: image 04c8fdabfbe98ecc9a30a08a9d6663b4d266354160b132e7fe1f288609d2b69b as /var/lib/containers/storage/overlay/3d654a316f0c2bb543406363473c777e4c08869b0254126c922e32f985adcf4f/merged INFO: umounting image 04c8fdabfbe98ecc9a30a08a9d6663b4d266354160b132e7fe1f288609d2b69b (/var/lib/containers/storage/overlay/3d654a316f0c2bb543406363473c777e4c08869b0254126c922e32f985adcf4f/merged) with podman image umount INFO: Removing image mock-bootstrap-626e9a54-c08d-4c62-8cda-d48a7c283d9f 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-rawhide-x86_64-1795997168.508416/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-2.fc46.x86_64 rpm-sequoia-1.10.3-1.fc46.x86_64 dnf5-5.4.8.0-2.fc46.x86_64 dnf5-plugins-5.4.8.0-2.fc46.x86_64 Start: installing minimal buildroot with dnf5 Updating and loading repositories: fedora 100% | 28.0 MiB/s | 22.1 MiB | 00m01s Copr repository 100% | 24.8 KiB/s | 16.6 KiB | 00m01s Repositories loaded. Package Arch Version Repository Size Installing group/module packages: bash x86_64 0:5.3.20-2.fc46 fedora 8.5 MiB bzip2 x86_64 0:1.0.8-25.fc46 fedora 95.0 KiB coreutils x86_64 0:9.12-2.fc46 fedora 6.3 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:46-0.1 fedora 4.6 KiB findutils x86_64 1:4.11.0-2.fc45 fedora 1.9 MiB gawk x86_64 0:5.4.2-1.fc46 fedora 2.2 MiB glibc-minimal-langpack x86_64 0:2.44.9000-10.fc46 fedora 0.0 B grep x86_64 0:3.12-5.fc46 fedora 1.0 MiB gzip x86_64 0:1.15-1.fc46 fedora 445.2 KiB info x86_64 0:7.3-3.fc45 fedora 372.4 KiB patch x86_64 0:2.8-6.fc46 fedora 226.6 KiB redhat-rpm-config noarch 0:345-8.fc46 fedora 184.5 KiB rpm-build x86_64 0:6.1.0-2.fc46 fedora 210.6 KiB sed x86_64 0:4.10-2.fc45 fedora 866.5 KiB shadow-utils x86_64 2:4.20.0-2.fc46 fedora 3.9 MiB tar x86_64 2:1.35-9.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-2.fc46 fedora 3.7 MiB which x86_64 0:2.25-2.fc45 fedora 83.6 KiB xz x86_64 1:5.8.4-3.fc46 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.50-32.fc46 fedora 24.5 MiB build-reproducibility-srpm-macros noarch 0:0.7.3-3.fc45 fedora 1.2 KiB bzip2-libs x86_64 0:1.0.8-25.fc46 fedora 80.5 KiB ca-certificates noarch 0:2026.2.92_v9.0.319-2.fc46 fedora 2.7 MiB cmake-srpm-macros noarch 0:4.4.3-1.fc46 fedora 524.0 B coreutils-common x86_64 0:9.12-2.fc46 fedora 11.5 MiB crypto-policies noarch 0:20260713-2.gitc42da77.fc45 fedora 134.3 KiB curl x86_64 0:8.24.0~rc2-1.fc46 fedora 487.2 KiB cyrus-sasl-lib x86_64 0:2.1.28-37.fc45 fedora 2.3 MiB debugedit x86_64 0:5.4-1.fc46 fedora 228.8 KiB dwz x86_64 0:0.17-3.fc45 fedora 291.1 KiB ed x86_64 0:1.22.6-1.fc46 fedora 150.9 KiB efi-srpm-macros noarch 0:6-9.fc45 fedora 40.3 KiB elfutils x86_64 0:0.197-3.fc46 fedora 3.1 MiB elfutils-debuginfod-client x86_64 0:0.197-3.fc46 fedora 79.9 KiB elfutils-libelf x86_64 0:0.197-3.fc46 fedora 1.6 MiB elfutils-libs x86_64 0:0.197-3.fc46 fedora 736.2 KiB erlang-srpm-macros noarch 0:0.4.2-1.fc46 fedora 2.0 KiB fedora-gpg-keys noarch 0:46-0.3 fedora 130.3 KiB fedora-release noarch 0:46-0.1 fedora 0.0 B fedora-release-identity-basic noarch 0:46-0.1 fedora 664.0 B fedora-repos noarch 0:46-0.3 fedora 4.9 KiB fedora-repos-rawhide noarch 0:46-0.3 fedora 2.2 KiB file x86_64 0:5.48-3.fc46 fedora 101.9 KiB file-libs x86_64 0:5.48-3.fc46 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-3.fc46 fedora 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.fc46 fedora 14.4 MiB gdbm-libs x86_64 1:1.26-1.fc46 fedora 134.2 KiB ghc-srpm-macros noarch 0:1.10-2.fc45 fedora 792.0 B glibc x86_64 0:2.44.9000-10.fc46 fedora 7.2 MiB glibc-common x86_64 0:2.44.9000-10.fc46 fedora 1.0 MiB glibc-gconv-extra x86_64 0:2.44.9000-10.fc46 fedora 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-5.fc46 fedora 655.0 KiB gnupg2 x86_64 0:2.4.9-19.fc46 fedora 6.5 MiB gnupg2-dirmngr x86_64 0:2.4.9-19.fc46 fedora 630.1 KiB gnupg2-gpg-agent x86_64 0:2.4.9-19.fc46 fedora 678.8 KiB gnupg2-gpgconf x86_64 0:2.4.9-19.fc46 fedora 253.8 KiB gnupg2-keyboxd x86_64 0:2.4.9-19.fc46 fedora 201.3 KiB gnupg2-verify x86_64 0:2.4.9-19.fc46 fedora 356.3 KiB gnutls x86_64 0:3.8.14-1.fc46 fedora 3.9 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.fc46 fedora 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-31.fc46 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.fc46 fedora 2.4 MiB libacl x86_64 0:2.4.0-3.fc46 fedora 43.9 KiB libarchive x86_64 0:3.8.9-2.fc46 fedora 1.0 MiB libassuan x86_64 0:2.5.7-6.fc45 fedora 163.9 KiB libattr x86_64 0:2.6.0-3.fc46 fedora 24.3 KiB libblkid x86_64 0:2.42.4-2.fc46 fedora 282.3 KiB libbrotli x86_64 0:1.2.1-1.fc46 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.fc46 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.24.0~rc2-1.fc46 fedora 1.1 MiB libeconf x86_64 0:0.8.6-1.fc46 fedora 65.6 KiB libevent x86_64 0:2.1.13-1.fc46 fedora 980.7 KiB libfdisk x86_64 0:2.42.4-2.fc46 fedora 392.3 KiB libffi x86_64 0:3.8.0-1.fc46 fedora 95.5 KiB libfido2 x86_64 0:1.17.0-7.fc46 fedora 256.5 KiB libfsverity x86_64 0:1.7-4.fc45 fedora 24.4 KiB libgcc x86_64 0:16.2.1-3.fc46 fedora 270.7 KiB libgcrypt x86_64 0:1.12.4-1.fc46 fedora 1.7 MiB libgomp x86_64 0:16.2.1-3.fc46 fedora 577.6 KiB libgpg-error x86_64 0:1.61-3.fc46 fedora 953.9 KiB libidn2 x86_64 0:2.3.8-4.fc45 fedora 556.4 KiB libksba x86_64 0:1.9.1-1.fc46 fedora 467.9 KiB liblastlog2 x86_64 0:2.42.4-2.fc46 fedora 37.6 KiB libmount x86_64 0:2.42.4-2.fc46 fedora 408.9 KiB libnghttp2 x86_64 0:1.69.0-6.fc46 fedora 166.1 KiB libnghttp3 x86_64 0:1.19.0-1.fc46 fedora 163.4 KiB libpfm x86_64 0:4.14.1-2.fc46 fedora 2.4 MiB libpkgconf x86_64 0:2.5.1-2.fc45 fedora 90.1 KiB libpsl x86_64 0:0.23.3-1.fc46 fedora 80.4 KiB libselinux x86_64 0:3.11-5.fc46 fedora 205.2 KiB libselinux-utils x86_64 0:3.11-5.fc46 fedora 306.0 KiB libsemanage x86_64 0:3.11-4.fc46 fedora 320.6 KiB libsepol x86_64 0:3.11-2.fc45 fedora 866.1 KiB libsmartcols x86_64 0:2.42.4-2.fc46 fedora 188.5 KiB libssh x86_64 0:0.12.2-2.fc46 fedora 725.6 KiB libssh-config noarch 0:0.12.2-2.fc46 fedora 277.0 B libstdc++ x86_64 0:16.2.1-3.fc46 fedora 3.1 MiB libtasn1 x86_64 0:4.21.0-2.fc45 fedora 176.6 KiB libtool-ltdl x86_64 0:2.6.2-2.fc46 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-2.fc46 fedora 37.2 KiB libverto x86_64 0:0.3.2-13.fc45 fedora 25.3 KiB libxcrypt x86_64 0:4.5.2-8.fc46 fedora 293.3 KiB libxml2 x86_64 0:2.15.4-1.fc46 fedora 1.7 MiB libzstd x86_64 0:1.6.0-1.fc46 fedora 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.fc46 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.fc46 fedora 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-23.fc46 fedora 124.0 B openldap x86_64 0:2.6.16-1.fc46 fedora 683.9 KiB openssl-libs x86_64 1:4.0.3-1.fc46 fedora 6.7 MiB p11-kit x86_64 0:0.26.6-1.fc46 fedora 2.7 MiB p11-kit-trust x86_64 0:0.26.6-1.fc46 fedora 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.fc46.1 fedora 726.5 KiB pcre2-syntax noarch 0:10.49-1.fc46.1 fedora 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.fc46 fedora 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.12.0-1.fc46 fedora 472.0 B readline x86_64 0:8.3-7.fc46 fedora 515.6 KiB redhat-systemd-presets noarch 0:103-1.fc46 fedora 1.0 KiB redhat-systemd-presets-common noarch 0:103-1.fc46 fedora 16.9 KiB rpm x86_64 0:6.1.0-2.fc46 fedora 3.1 MiB rpm-build-libs x86_64 0:6.1.0-2.fc46 fedora 288.3 KiB rpm-libs x86_64 0:6.1.0-2.fc46 fedora 1.0 MiB rpm-plugin-selinux x86_64 0:6.1.0-2.fc46 fedora 11.9 KiB rpm-sequoia x86_64 0:1.10.3-1.fc46 fedora 2.4 MiB rpm-sign-libs x86_64 0:6.1.0-2.fc46 fedora 39.6 KiB rust-srpm-macros noarch 0:28.5-2.fc45 fedora 5.5 KiB selinux-policy noarch 0:45.26-1.fc46 fedora 32.1 KiB selinux-policy-targeted noarch 0:45.26-1.fc46 fedora 18.9 MiB setup noarch 0:2.15.1-2.fc45 fedora 725.6 KiB sqlite-libs x86_64 0:3.54.1-2.fc46 fedora 1.6 MiB systemd-libs x86_64 0:262.2-7.fc46 fedora 2.8 MiB systemd-standalone-sysusers x86_64 0:262.2-7.fc46 fedora 981.2 KiB tpm2-tss x86_64 0:4.2.3-1.fc46 fedora 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-2.fc46 fedora 1.5 MiB xxhash-libs x86_64 0:0.8.4-2.fc46 fedora 94.0 KiB xz-libs x86_64 1:5.8.4-3.fc46 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.fc46 fedora 531.4 KiB Installing groups: Buildsystem building group Transaction Summary: Installing: 190 packages Total size of inbound packages is 72 MiB. Need to download 72 MiB. After this operation, 231 MiB extra will be used (install 231 MiB, remove 0 B). [ 1/190] bzip2-0:1.0.8-25.fc46.x86_64 100% | 25.5 MiB/s | 52.2 KiB | 00m00s [ 2/190] coreutils-0:9.12-2.fc46.x86_6 100% | 185.7 MiB/s | 1.3 MiB | 00m00s [ 3/190] diffutils-0:3.12-6.fc45.x86_6 100% | 193.6 MiB/s | 396.6 KiB | 00m00s [ 4/190] bash-0:5.3.20-2.fc46.x86_64 100% | 172.0 MiB/s | 1.9 MiB | 00m00s [ 5/190] cpio-0:2.15-10.fc45.x86_64 100% | 16.8 MiB/s | 292.5 KiB | 00m00s [ 6/190] glibc-minimal-langpack-0:2.44 100% | 73.7 MiB/s | 151.0 KiB | 00m00s [ 7/190] grep-0:3.12-5.fc46.x86_64 100% | 146.8 MiB/s | 300.7 KiB | 00m00s [ 8/190] fedora-release-common-0:46-0. 100% | 791.8 KiB/s | 18.2 KiB | 00m00s [ 9/190] findutils-1:4.11.0-2.fc45.x86 100% | 17.4 MiB/s | 570.7 KiB | 00m00s [ 10/190] gzip-0:1.15-1.fc46.x86_64 100% | 6.3 MiB/s | 193.3 KiB | 00m00s [ 11/190] info-0:7.3-3.fc45.x86_64 100% | 5.7 MiB/s | 191.2 KiB | 00m00s [ 12/190] patch-0:2.8-6.fc46.x86_64 100% | 3.7 MiB/s | 114.4 KiB | 00m00s [ 13/190] redhat-rpm-config-0:345-8.fc4 100% | 2.6 MiB/s | 78.5 KiB | 00m00s [ 14/190] rpm-build-0:6.1.0-2.fc46.x86_ 100% | 5.1 MiB/s | 115.4 KiB | 00m00s [ 15/190] shadow-utils-2:4.20.0-2.fc46. 100% | 54.5 MiB/s | 1.4 MiB | 00m00s [ 16/190] sed-0:4.10-2.fc45.x86_64 100% | 8.1 MiB/s | 322.8 KiB | 00m00s [ 17/190] unzip-0:6.0-71.fc45.x86_64 100% | 5.6 MiB/s | 199.6 KiB | 00m00s [ 18/190] tar-2:1.35-9.fc45.x86_64 100% | 9.1 MiB/s | 867.4 KiB | 00m00s [ 19/190] xz-1:5.8.4-3.fc46.x86_64 100% | 14.9 MiB/s | 654.3 KiB | 00m00s [ 20/190] util-linux-0:2.42.4-2.fc46.x8 100% | 421.5 MiB/s | 1.3 MiB | 00m00s [ 21/190] which-0:2.25-2.fc45.x86_64 100% | 490.4 KiB/s | 42.2 KiB | 00m00s [ 22/190] gawk-0:5.4.2-1.fc46.x86_64 100% | 56.2 MiB/s | 1.2 MiB | 00m00s [ 23/190] glibc-0:2.44.9000-10.fc46.x86 100% | 417.3 MiB/s | 2.5 MiB | 00m00s [ 24/190] ncurses-libs-0:6.6-3.fc45.x86 100% | 19.7 MiB/s | 343.7 KiB | 00m00s [ 25/190] bzip2-libs-0:1.0.8-25.fc46.x8 100% | 3.3 MiB/s | 43.6 KiB | 00m00s [ 26/190] filesystem-0:3.18-59.fc45.x86 100% | 40.4 MiB/s | 1.8 MiB | 00m00s [ 27/190] libacl-0:2.4.0-3.fc46.x86_64 100% | 26.8 MiB/s | 27.5 KiB | 00m00s [ 28/190] libattr-0:2.6.0-3.fc46.x86_64 100% | 17.6 MiB/s | 18.0 KiB | 00m00s [ 29/190] gmp-1:6.3.0-6.fc45.x86_64 100% | 10.5 MiB/s | 321.8 KiB | 00m00s [ 30/190] coreutils-common-0:9.12-2.fc4 100% | 65.5 MiB/s | 2.2 MiB | 00m00s [ 31/190] libcap-0:2.78-2.fc45.x86_64 100% | 3.3 MiB/s | 88.6 KiB | 00m00s [ 32/190] systemd-libs-0:262.2-7.fc46.x 100% | 471.1 MiB/s | 964.8 KiB | 00m00s [ 33/190] libselinux-0:3.11-5.fc46.x86_ 100% | 3.9 MiB/s | 104.0 KiB | 00m00s [ 34/190] fedora-repos-0:46-0.3.noarch 100% | 245.1 KiB/s | 9.6 KiB | 00m00s [ 35/190] glibc-common-0:2.44.9000-10.f 100% | 216.9 MiB/s | 444.2 KiB | 00m00s [ 36/190] pcre2-0:10.49-1.fc46.1.x86_64 100% | 273.6 MiB/s | 280.1 KiB | 00m00s [ 37/190] redhat-systemd-presets-0:103- 100% | 157.7 KiB/s | 8.7 KiB | 00m00s [ 38/190] openssl-libs-1:4.0.3-1.fc46.x 100% | 28.9 MiB/s | 2.3 MiB | 00m00s [ 39/190] ed-0:1.22.6-1.fc46.x86_64 100% | 2.2 MiB/s | 85.6 KiB | 00m00s [ 40/190] R-srpm-macros-0:1.3.7-3.fc45. 100% | 318.6 KiB/s | 11.1 KiB | 00m00s [ 41/190] build-reproducibility-srpm-ma 100% | 471.0 KiB/s | 10.8 KiB | 00m00s [ 42/190] ansible-srpm-macros-0:1-22.fc 100% | 367.4 KiB/s | 19.8 KiB | 00m00s [ 43/190] cmake-srpm-macros-0:4.4.3-1.f 100% | 268.3 KiB/s | 10.2 KiB | 00m00s [ 44/190] dwz-0:0.17-3.fc45.x86_64 100% | 3.5 MiB/s | 139.2 KiB | 00m00s [ 45/190] efi-srpm-macros-0:6-9.fc45.no 100% | 549.9 KiB/s | 21.4 KiB | 00m00s [ 46/190] file-0:5.48-3.fc46.x86_64 100% | 1.5 MiB/s | 50.6 KiB | 00m00s [ 47/190] erlang-srpm-macros-0:0.4.2-1. 100% | 157.8 KiB/s | 9.9 KiB | 00m00s [ 48/190] filesystem-srpm-macros-0:3.18 100% | 432.9 KiB/s | 26.4 KiB | 00m00s [ 49/190] forge-srpm-macros-0:0.4.0-5.f 100% | 580.2 KiB/s | 19.7 KiB | 00m00s [ 50/190] fonts-srpm-macros-1:5.0.0-4.f 100% | 468.2 KiB/s | 27.2 KiB | 00m00s [ 51/190] fpc-srpm-macros-0:1.3-17.fc45 100% | 352.8 KiB/s | 7.8 KiB | 00m00s [ 52/190] ghc-srpm-macros-0:1.10-2.fc45 100% | 530.8 KiB/s | 8.5 KiB | 00m00s [ 53/190] gap-srpm-macros-0:2-3.fc45.no 100% | 332.4 KiB/s | 9.3 KiB | 00m00s [ 54/190] gnome-srpm-macros-0:1.0-2.fc4 100% | 679.1 KiB/s | 8.8 KiB | 00m00s [ 55/190] gnat-srpm-macros-0:7-3.fc45.n 100% | 276.4 KiB/s | 8.6 KiB | 00m00s [ 56/190] go-srpm-macros-0:3.8.0-3.fc45 100% | 1.2 MiB/s | 27.8 KiB | 00m00s [ 57/190] kernel-srpm-macros-0:1.0-31.f 100% | 366.7 KiB/s | 8.4 KiB | 00m00s [ 58/190] java-srpm-macros-0:1-9.fc45.n 100% | 192.7 KiB/s | 8.3 KiB | 00m00s [ 59/190] lua-srpm-macros-0:1-18.fc45.n 100% | 201.9 KiB/s | 8.7 KiB | 00m00s [ 60/190] meson-srpm-macros-0:1.12.1-3. 100% | 299.7 KiB/s | 12.0 KiB | 00m00s [ 61/190] ocaml-srpm-macros-0:11-4.fc45 100% | 208.2 KiB/s | 9.0 KiB | 00m00s [ 62/190] openblas-srpm-macros-0:2-23.f 100% | 235.9 KiB/s | 7.5 KiB | 00m00s [ 63/190] perl-srpm-macros-0:1-65.fc45. 100% | 491.3 KiB/s | 8.4 KiB | 00m00s [ 64/190] package-notes-srpm-macros-0:0 100% | 250.0 KiB/s | 10.5 KiB | 00m00s [ 65/190] python-srpm-macros-0:3.15-2.f 100% | 1.2 MiB/s | 23.9 KiB | 00m00s [ 66/190] pyproject-srpm-macros-0:1.24. 100% | 365.8 KiB/s | 15.4 KiB | 00m00s [ 67/190] qt6-srpm-macros-0:6.12.0-1.fc 100% | 534.4 KiB/s | 9.1 KiB | 00m00s [ 68/190] qt5-srpm-macros-0:5.15.18-3.f 100% | 244.3 KiB/s | 8.1 KiB | 00m00s [ 69/190] rpm-0:6.1.0-2.fc46.x86_64 100% | 46.5 MiB/s | 571.2 KiB | 00m00s [ 70/190] rust-srpm-macros-0:28.5-2.fc4 100% | 874.7 KiB/s | 11.4 KiB | 00m00s [ 71/190] tree-sitter-srpm-macros-0:0.4 100% | 666.8 KiB/s | 14.0 KiB | 00m00s [ 72/190] zip-0:3.0-46.fc45.x86_64 100% | 8.6 MiB/s | 264.6 KiB | 00m00s [ 73/190] zig-srpm-macros-0:1-9.fc45.no 100% | 191.6 KiB/s | 8.8 KiB | 00m00s [ 74/190] debugedit-0:5.4-1.fc46.x86_64 100% | 1.7 MiB/s | 88.0 KiB | 00m00s [ 75/190] elfutils-libelf-0:0.197-3.fc4 100% | 10.7 MiB/s | 272.7 KiB | 00m00s [ 76/190] elfutils-0:0.197-3.fc46.x86_6 100% | 13.9 MiB/s | 628.0 KiB | 00m00s [ 77/190] libarchive-0:3.8.9-2.fc46.x86 100% | 18.9 MiB/s | 446.0 KiB | 00m00s [ 78/190] libstdc++-0:16.2.1-3.fc46.x86 100% | 34.6 MiB/s | 1.0 MiB | 00m00s [ 79/190] libgcc-0:16.2.1-3.fc46.x86_64 100% | 2.5 MiB/s | 139.7 KiB | 00m00s [ 80/190] readline-0:8.3-7.fc46.x86_64 100% | 7.2 MiB/s | 228.7 KiB | 00m00s [ 81/190] rpm-libs-0:6.1.0-2.fc46.x86_6 100% | 212.3 MiB/s | 434.8 KiB | 00m00s [ 82/190] zstd-0:1.6.0-1.fc46.x86_64 100% | 196.7 MiB/s | 201.4 KiB | 00m00s [ 83/190] popt-0:1.19-11.fc45.x86_64 100% | 1.1 MiB/s | 66.6 KiB | 00m00s [ 84/190] rpm-build-libs-0:6.1.0-2.fc46 100% | 4.7 MiB/s | 134.7 KiB | 00m00s [ 85/190] audit-libs-0:4.2.1-2.fc45.x86 100% | 9.3 MiB/s | 143.3 KiB | 00m00s [ 86/190] libxcrypt-0:4.5.2-8.fc46.x86_ 100% | 126.9 MiB/s | 130.0 KiB | 00m00s [ 87/190] libeconf-0:0.8.6-1.fc46.x86_6 100% | 1.8 MiB/s | 36.8 KiB | 00m00s [ 88/190] libsemanage-0:3.11-4.fc46.x86 100% | 6.4 MiB/s | 130.5 KiB | 00m00s [ 89/190] pam-libs-0:1.7.2-4.fc45.x86_6 100% | 2.1 MiB/s | 58.4 KiB | 00m00s [ 90/190] xz-libs-1:5.8.4-3.fc46.x86_64 100% | 4.9 MiB/s | 116.4 KiB | 00m00s [ 91/190] setup-0:2.15.1-2.fc45.noarch 100% | 4.4 MiB/s | 157.6 KiB | 00m00s [ 92/190] libblkid-0:2.42.4-2.fc46.x86_ 100% | 6.0 MiB/s | 134.0 KiB | 00m00s [ 93/190] libcap-ng-0:0.9.6-1.fc46.x86_ 100% | 1.9 MiB/s | 34.8 KiB | 00m00s [ 94/190] libfdisk-0:2.42.4-2.fc46.x86_ 100% | 20.7 MiB/s | 169.6 KiB | 00m00s [ 95/190] liblastlog2-0:2.42.4-2.fc46.x 100% | 1.0 MiB/s | 25.0 KiB | 00m00s [ 96/190] libmount-0:2.42.4-2.fc46.x86_ 100% | 7.0 MiB/s | 179.8 KiB | 00m00s [ 97/190] mpfr-0:4.2.2-4.fc45.x86_64 100% | 4.4 MiB/s | 357.4 KiB | 00m00s [ 98/190] libsmartcols-0:2.42.4-2.fc46. 100% | 3.3 MiB/s | 88.8 KiB | 00m00s [ 99/190] libuuid-0:2.42.4-2.fc46.x86_6 100% | 866.3 KiB/s | 27.7 KiB | 00m00s [100/190] util-linux-core-0:2.42.4-2.fc 100% | 19.0 MiB/s | 582.9 KiB | 00m00s [101/190] zlib-ng-compat-0:2.3.3-6.fc45 100% | 2.3 MiB/s | 90.4 KiB | 00m00s [102/190] ncurses-base-0:6.6-3.fc45.noa 100% | 2.6 MiB/s | 88.1 KiB | 00m00s [103/190] gnulib-l10n-0:20241231-5.fc46 100% | 1.9 MiB/s | 150.6 KiB | 00m00s [104/190] glibc-gconv-extra-0:2.44.9000 100% | 15.1 MiB/s | 1.7 MiB | 00m00s [105/190] libsepol-0:3.11-2.fc45.x86_64 100% | 4.5 MiB/s | 365.2 KiB | 00m00s [106/190] ca-certificates-0:2026.2.92_v 100% | 26.4 MiB/s | 971.9 KiB | 00m00s [107/190] crypto-policies-0:20260713-2. 100% | 1.3 MiB/s | 97.5 KiB | 00m00s [108/190] fips-provider-0:1.5.3-3.fc46. 100% | 20.0 MiB/s | 1.6 MiB | 00m00s [109/190] redhat-systemd-presets-common 100% | 13.0 MiB/s | 13.4 KiB | 00m00s [110/190] pcre2-syntax-0:10.49-1.fc46.1 100% | 164.3 MiB/s | 168.2 KiB | 00m00s [111/190] fedora-gpg-keys-0:46-0.3.noar 100% | 2.0 MiB/s | 143.8 KiB | 00m00s [112/190] fedora-repos-rawhide-0:46-0.3 100% | 237.5 KiB/s | 9.0 KiB | 00m00s [113/190] add-determinism-0:0.7.3-3.fc4 100% | 26.6 MiB/s | 845.7 KiB | 00m00s [114/190] curl-0:8.24.0~rc2-1.fc46.x86_ 100% | 240.4 MiB/s | 246.2 KiB | 00m00s [115/190] elfutils-libs-0:0.197-3.fc46. 100% | 285.4 MiB/s | 292.3 KiB | 00m00s [116/190] elfutils-debuginfod-client-0: 100% | 46.1 MiB/s | 47.2 KiB | 00m00s [117/190] linkdupes-0:0.7.3-3.fc45.x86_ 100% | 7.5 MiB/s | 339.2 KiB | 00m00s [118/190] json-c-0:0.18-9.fc45.x86_64 100% | 1.5 MiB/s | 46.7 KiB | 00m00s [119/190] libzstd-0:1.6.0-1.fc46.x86_64 100% | 282.0 MiB/s | 288.8 KiB | 00m00s [120/190] file-libs-0:5.48-3.fc46.x86_6 100% | 11.7 MiB/s | 884.7 KiB | 00m00s [121/190] libpfm-0:4.14.1-2.fc46.x86_64 100% | 4.9 MiB/s | 278.0 KiB | 00m00s [122/190] libxml2-0:2.15.4-1.fc46.x86_6 100% | 12.7 MiB/s | 676.7 KiB | 00m00s [123/190] lz4-libs-0:1.10.0-5.fc45.x86_ 100% | 1.7 MiB/s | 80.4 KiB | 00m00s [124/190] lua-libs-0:5.5.1-2.fc46.x86_6 100% | 5.4 MiB/s | 144.4 KiB | 00m00s [125/190] libgomp-0:16.2.1-3.fc46.x86_6 100% | 8.5 MiB/s | 400.8 KiB | 00m00s [126/190] rpm-sign-libs-0:6.1.0-2.fc46. 100% | 1.5 MiB/s | 26.8 KiB | 00m00s [127/190] sqlite-libs-0:3.54.1-2.fc46.x 100% | 268.3 MiB/s | 824.1 KiB | 00m00s [128/190] gnupg2-0:2.4.9-19.fc46.x86_64 100% | 330.5 MiB/s | 1.7 MiB | 00m00s [129/190] ima-evm-utils-libs-0:1.7-1.fc 100% | 18.9 MiB/s | 38.7 KiB | 00m00s [130/190] rpm-sequoia-0:1.10.3-1.fc46.x 100% | 31.7 MiB/s | 942.6 KiB | 00m00s [131/190] gnupg2-dirmngr-0:2.4.9-19.fc4 100% | 275.2 MiB/s | 281.8 KiB | 00m00s [132/190] gnupg2-gpg-agent-0:2.4.9-19.f 100% | 275.1 MiB/s | 281.7 KiB | 00m00s [133/190] gnupg2-gpgconf-0:2.4.9-19.fc4 100% | 113.9 MiB/s | 116.6 KiB | 00m00s [134/190] gnupg2-keyboxd-0:2.4.9-19.fc4 100% | 94.6 MiB/s | 96.9 KiB | 00m00s [135/190] gnupg2-verify-0:2.4.9-19.fc46 100% | 172.1 MiB/s | 176.2 KiB | 00m00s [136/190] libfsverity-0:1.7-4.fc45.x86_ 100% | 526.6 KiB/s | 19.0 KiB | 00m00s [137/190] libassuan-0:2.5.7-6.fc45.x86_ 100% | 4.5 MiB/s | 68.5 KiB | 00m00s [138/190] libgpg-error-0:1.61-3.fc46.x8 100% | 247.0 MiB/s | 253.0 KiB | 00m00s [139/190] gpgverify-0:2.2-5.fc45.noarch 100% | 209.5 KiB/s | 11.3 KiB | 00m00s [140/190] npth-0:1.8-5.fc45.x86_64 100% | 1.5 MiB/s | 25.5 KiB | 00m00s [141/190] libksba-0:1.9.1-1.fc46.x86_64 100% | 182.1 MiB/s | 186.5 KiB | 00m00s [142/190] libgcrypt-0:1.12.4-1.fc46.x86 100% | 12.1 MiB/s | 631.2 KiB | 00m00s [143/190] gnutls-0:3.8.14-1.fc46.x86_64 100% | 41.1 MiB/s | 1.4 MiB | 00m00s [144/190] tpm2-tss-0:4.2.3-1.fc46.x86_6 100% | 221.4 MiB/s | 453.4 KiB | 00m00s [145/190] openldap-0:2.6.16-1.fc46.x86_ 100% | 5.8 MiB/s | 273.3 KiB | 00m00s [146/190] libidn2-0:2.3.8-4.fc45.x86_64 100% | 4.8 MiB/s | 175.2 KiB | 00m00s [147/190] libtasn1-0:4.21.0-2.fc45.x86_ 100% | 1.8 MiB/s | 75.9 KiB | 00m00s [148/190] libunistring-0:1.1-12.fc45.x8 100% | 14.8 MiB/s | 545.8 KiB | 00m00s [149/190] nettle-0:4.0-5.fc45.x86_64 100% | 9.5 MiB/s | 429.7 KiB | 00m00s [150/190] p11-kit-0:0.26.6-1.fc46.x86_6 100% | 14.2 MiB/s | 568.6 KiB | 00m00s [151/190] cyrus-sasl-lib-0:2.1.28-37.fc 100% | 14.8 MiB/s | 817.8 KiB | 00m00s [152/190] libtool-ltdl-0:2.6.2-2.fc46.x 100% | 837.0 KiB/s | 36.8 KiB | 00m00s [153/190] libevent-0:2.1.13-1.fc46.x86_ 100% | 6.3 MiB/s | 289.4 KiB | 00m00s [154/190] libusb1-0:1.0.30-2.fc45.x86_6 100% | 3.1 MiB/s | 83.8 KiB | 00m00s [155/190] libffi-0:3.8.0-1.fc46.x86_64 100% | 2.7 MiB/s | 46.4 KiB | 00m00s [156/190] binutils-0:2.47.50-32.fc46.x8 100% | 373.9 MiB/s | 5.2 MiB | 00m00s [157/190] jansson-0:2.14-5.fc45.x86_64 100% | 45.8 MiB/s | 46.9 KiB | 00m00s [158/190] pkgconf-pkg-config-0:2.5.1-2. 100% | 9.3 MiB/s | 9.5 KiB | 00m00s [159/190] pkgconf-0:2.5.1-2.fc45.x86_64 100% | 47.8 MiB/s | 49.0 KiB | 00m00s [160/190] pkgconf-m4-0:2.5.1-2.fc45.noa 100% | 13.5 MiB/s | 13.8 KiB | 00m00s [161/190] libpkgconf-0:2.5.1-2.fc45.x86 100% | 41.6 MiB/s | 42.6 KiB | 00m00s [162/190] gdbm-libs-1:1.26-1.fc46.x86_6 100% | 1.8 MiB/s | 60.1 KiB | 00m00s [163/190] p11-kit-trust-0:0.26.6-1.fc46 100% | 143.6 MiB/s | 147.1 KiB | 00m00s [164/190] systemd-standalone-sysusers-0 100% | 425.4 MiB/s | 435.6 KiB | 00m00s [165/190] alternatives-0:1.33-6.fc45.x8 100% | 1.2 MiB/s | 39.4 KiB | 00m00s [166/190] fedora-release-0:46-0.1.noarc 100% | 237.8 KiB/s | 11.9 KiB | 00m00s [167/190] gdb-minimal-0:18.1-1.fc46.x86 100% | 60.0 MiB/s | 4.8 MiB | 00m00s [168/190] libcurl-0:8.24.0~rc2-1.fc46.x 100% | 246.7 MiB/s | 505.2 KiB | 00m00s [169/190] xxhash-libs-0:0.8.4-2.fc46.x8 100% | 598.0 KiB/s | 41.3 KiB | 00m00s [170/190] krb5-libs-0:1.22.3-1.fc46.x86 100% | 394.7 MiB/s | 808.4 KiB | 00m00s [171/190] fedora-release-identity-basic 100% | 287.7 KiB/s | 12.7 KiB | 00m00s [172/190] libbrotli-0:1.2.1-1.fc46.x86_ 100% | 13.0 MiB/s | 347.3 KiB | 00m00s [173/190] libnghttp3-0:1.19.0-1.fc46.x8 100% | 4.3 MiB/s | 75.3 KiB | 00m00s [174/190] libssh-0:0.12.2-2.fc46.x86_64 100% | 288.7 MiB/s | 295.7 KiB | 00m00s [175/190] libnghttp2-0:1.69.0-6.fc46.x8 100% | 2.2 MiB/s | 77.2 KiB | 00m00s [176/190] libpsl-0:0.23.3-1.fc46.x86_64 100% | 4.1 MiB/s | 67.7 KiB | 00m00s [177/190] ngtcp2-crypto-ossl-0:1.22.1-3 100% | 1.0 MiB/s | 27.8 KiB | 00m00s [178/190] ngtcp2-0:1.22.1-3.fc45.x86_64 100% | 3.5 MiB/s | 157.7 KiB | 00m00s [179/190] keyutils-libs-0:1.6.3-8.fc45. 100% | 552.2 KiB/s | 31.5 KiB | 00m00s [180/190] libcom_err-0:1.47.4-2.fc45.x8 100% | 566.1 KiB/s | 26.6 KiB | 00m00s [181/190] libverto-0:0.3.2-13.fc45.x86_ 100% | 499.3 KiB/s | 21.0 KiB | 00m00s [182/190] libfido2-0:1.17.0-7.fc46.x86_ 100% | 8.7 MiB/s | 107.1 KiB | 00m00s [183/190] publicsuffix-list-dafsa-0:202 100% | 1.8 MiB/s | 61.1 KiB | 00m00s [184/190] libssh-config-0:0.12.2-2.fc46 100% | 438.8 KiB/s | 8.8 KiB | 00m00s [185/190] libcbor-0:0.14.0-3.fc45.x86_6 100% | 1.5 MiB/s | 36.8 KiB | 00m00s [186/190] policycoreutils-0:3.11-2.fc45 100% | 8.2 MiB/s | 261.0 KiB | 00m00s [187/190] selinux-policy-0:45.26-1.fc46 100% | 1.2 MiB/s | 45.6 KiB | 00m00s [188/190] rpm-plugin-selinux-0:6.1.0-2. 100% | 553.1 KiB/s | 17.7 KiB | 00m00s [189/190] selinux-policy-targeted-0:45. 100% | 50.6 MiB/s | 6.8 MiB | 00m00s [190/190] libselinux-utils-0:3.11-5.fc4 100% | 1.1 MiB/s | 123.8 KiB | 00m00s -------------------------------------------------------------------------------- [190/190] Total 100% | 36.4 MiB/s | 71.7 MiB | 00m02s Running transaction Importing OpenPGP key 0x91211FCE: UserID : "Fedora (46) " Fingerprint: D924B10D3E810DABDD8B56B596E7E91491211FCE From : file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-46-primary The key was successfully imported. Importing OpenPGP key 0x91211FCE: UserID : "Fedora (46) " Fingerprint: D924B10D3E810DABDD8B56B596E7E91491211FCE From : file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-46-primary The key was successfully imported. 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. Importing OpenPGP key 0x9488FB64: UserID : "Fedora (47) " Fingerprint: B2E766FA50CA6FA2D5ED06FC09D879E09488FB64 From : file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-47-primary The key was successfully imported. [ 1/192] Verify package files 100% | 703.0 B/s | 190.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-rawhide-x86_64-1795997168.508416/root/etc/group for id/name lookup: No such file or directory [ 2/192] Prepare transaction 100% | 3.4 KiB/s | 190.0 B | 00m00s [ 3/192] Installing libgcc-0:16.2.1-3. 100% | 266.0 MiB/s | 272.4 KiB | 00m00s [ 4/192] Installing redhat-systemd-pre 100% | 0.0 B/s | 1.5 KiB | 00m00s [ 5/192] Installing redhat-systemd-pre 100% | 0.0 B/s | 18.1 KiB | 00m00s [ 6/192] Installing libssh-config-0:0. 100% | 0.0 B/s | 816.0 B | 00m00s [ 7/192] Installing publicsuffix-list- 100% | 0.0 B/s | 72.0 KiB | 00m00s [ 8/192] Installing fedora-release-ide 100% | 0.0 B/s | 920.0 B | 00m00s [ 9/192] Installing fedora-gpg-keys-0: 100% | 59.2 MiB/s | 181.7 KiB | 00m00s [ 10/192] Installing fedora-repos-rawhi 100% | 0.0 B/s | 2.5 KiB | 00m00s [ 11/192] Installing fedora-repos-0:46- 100% | 0.0 B/s | 5.9 KiB | 00m00s [ 12/192] Installing fedora-release-com 100% | 7.8 MiB/s | 8.0 KiB | 00m00s [ 13/192] Installing fedora-release-0:4 100% | 20.2 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. >>> [ 14/192] 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 [ 15/192] Installing filesystem-0:3.18- 100% | 2.8 MiB/s | 253.6 KiB | 00m00s [ 16/192] Installing pkgconf-m4-0:2.5.1 100% | 0.0 B/s | 14.7 KiB | 00m00s [ 17/192] Installing pcre2-syntax-0:10. 100% | 288.1 MiB/s | 295.0 KiB | 00m00s [ 18/192] Installing gnulib-l10n-0:2024 100% | 215.5 MiB/s | 661.9 KiB | 00m00s [ 19/192] Installing coreutils-common-0 100% | 428.2 MiB/s | 11.6 MiB | 00m00s [ 20/192] Installing ncurses-base-0:6.6 100% | 86.7 MiB/s | 355.3 KiB | 00m00s [ 21/192] Installing bash-0:5.3.20-2.fc 100% | 249.2 MiB/s | 8.5 MiB | 00m00s [ 22/192] Installing glibc-common-0:2.4 100% | 49.3 MiB/s | 1.0 MiB | 00m00s [ 23/192] Installing glibc-gconv-extra- 100% | 324.5 MiB/s | 7.8 MiB | 00m00s [ 24/192] Installing glibc-0:2.44.9000- 100% | 180.5 MiB/s | 7.2 MiB | 00m00s [ 25/192] Installing ncurses-libs-0:6.6 100% | 238.0 MiB/s | 974.9 KiB | 00m00s [ 26/192] Installing glibc-minimal-lang 100% | 0.0 B/s | 124.0 B | 00m00s [ 27/192] Installing zlib-ng-compat-0:2 100% | 162.5 MiB/s | 166.4 KiB | 00m00s [ 28/192] Installing bzip2-libs-0:1.0.8 100% | 0.0 B/s | 81.6 KiB | 00m00s [ 29/192] Installing libgpg-error-0:1.6 100% | 49.3 MiB/s | 959.7 KiB | 00m00s [ 30/192] Installing readline-0:8.3-7.f 100% | 252.8 MiB/s | 517.7 KiB | 00m00s [ 31/192] Installing libstdc++-0:16.2.1 100% | 386.3 MiB/s | 3.1 MiB | 00m00s [ 32/192] Installing libzstd-0:1.6.0-1. 100% | 369.1 MiB/s | 756.0 KiB | 00m00s [ 33/192] Installing elfutils-libelf-0: 100% | 413.1 MiB/s | 1.7 MiB | 00m00s [ 34/192] Installing libassuan-0:2.5.7- 100% | 161.8 MiB/s | 165.7 KiB | 00m00s [ 35/192] Installing libgcrypt-0:1.12.4 100% | 416.6 MiB/s | 1.7 MiB | 00m00s [ 36/192] Installing gmp-1:6.3.0-6.fc45 100% | 399.1 MiB/s | 817.4 KiB | 00m00s [ 37/192] Installing libacl-0:2.4.0-3.f 100% | 0.0 B/s | 44.7 KiB | 00m00s [ 38/192] Installing systemd-libs-0:262 100% | 395.7 MiB/s | 2.8 MiB | 00m00s [ 39/192] Installing libuuid-0:2.42.4-2 100% | 0.0 B/s | 38.2 KiB | 00m00s [ 40/192] Installing popt-0:1.19-11.fc4 100% | 70.0 MiB/s | 143.3 KiB | 00m00s [ 41/192] Installing xz-libs-1:5.8.4-3. 100% | 217.6 MiB/s | 222.8 KiB | 00m00s [ 42/192] Installing sqlite-libs-0:3.54 100% | 411.7 MiB/s | 1.6 MiB | 00m00s [ 43/192] Installing npth-0:1.8-5.fc45. 100% | 0.0 B/s | 50.6 KiB | 00m00s [ 44/192] Installing elfutils-libs-0:0. 100% | 360.4 MiB/s | 738.1 KiB | 00m00s [ 45/192] Installing libblkid-0:2.42.4- 100% | 276.6 MiB/s | 283.3 KiB | 00m00s [ 46/192] Installing libsepol-0:3.11-2. 100% | 423.4 MiB/s | 867.1 KiB | 00m00s [ 47/192] Installing gnupg2-gpgconf-0:2 100% | 14.7 MiB/s | 255.9 KiB | 00m00s [ 48/192] Installing pcre2-0:10.49-1.fc 100% | 355.4 MiB/s | 728.0 KiB | 00m00s [ 49/192] Installing libselinux-0:3.11- 100% | 201.6 MiB/s | 206.4 KiB | 00m00s [ 50/192] Installing grep-0:3.12-5.fc46 100% | 52.8 MiB/s | 1.0 MiB | 00m00s [ 51/192] Installing sed-0:4.10-2.fc45. 100% | 45.0 MiB/s | 874.9 KiB | 00m00s [ 52/192] Installing findutils-1:4.11.0 100% | 93.2 MiB/s | 2.0 MiB | 00m00s [ 53/192] Installing libxcrypt-0:4.5.2- 100% | 288.9 MiB/s | 295.8 KiB | 00m00s [ 54/192] Installing json-c-0:0.18-9.fc 100% | 82.0 MiB/s | 83.9 KiB | 00m00s [ 55/192] Installing libtasn1-0:4.21.0- 100% | 174.3 MiB/s | 178.5 KiB | 00m00s [ 56/192] Installing libunistring-0:1.1 100% | 433.6 MiB/s | 1.7 MiB | 00m00s [ 57/192] Installing libidn2-0:2.3.8-4. 100% | 68.7 MiB/s | 562.6 KiB | 00m00s [ 58/192] Installing crypto-policies-0: 100% | 38.9 MiB/s | 159.5 KiB | 00m00s [ 59/192] Installing xz-1:5.8.4-3.fc46. 100% | 59.4 MiB/s | 1.4 MiB | 00m00s [ 60/192] Installing libmount-0:2.42.4- 100% | 200.2 MiB/s | 410.0 KiB | 00m00s [ 61/192] Installing gnupg2-verify-0:2. 100% | 19.4 MiB/s | 357.7 KiB | 00m00s [ 62/192] Installing mpfr-0:4.2.2-4.fc4 100% | 277.0 MiB/s | 850.9 KiB | 00m00s [ 63/192] Installing gawk-0:5.4.2-1.fc4 100% | 101.7 MiB/s | 2.2 MiB | 00m00s [ 64/192] Installing dwz-0:0.17-3.fc45. 100% | 16.8 MiB/s | 292.5 KiB | 00m00s [ 65/192] Installing libksba-0:1.9.1-1. 100% | 229.7 MiB/s | 470.4 KiB | 00m00s [ 66/192] Installing unzip-0:6.0-71.fc4 100% | 25.6 MiB/s | 445.3 KiB | 00m00s [ 67/192] Installing file-libs-0:5.48-3 100% | 726.1 MiB/s | 12.3 MiB | 00m00s [ 68/192] Installing file-0:5.48-3.fc46 100% | 6.3 MiB/s | 103.4 KiB | 00m00s [ 69/192] Installing diffutils-0:3.12-6 100% | 78.2 MiB/s | 1.6 MiB | 00m00s [ 70/192] Installing libattr-0:2.6.0-3. 100% | 0.0 B/s | 25.3 KiB | 00m00s [ 71/192] Installing libeconf-0:0.8.6-1 100% | 65.7 MiB/s | 67.2 KiB | 00m00s [ 72/192] Installing libcap-ng-0:0.9.6- 100% | 69.0 MiB/s | 70.6 KiB | 00m00s [ 73/192] Installing audit-libs-0:4.2.1 100% | 383.9 MiB/s | 393.1 KiB | 00m00s [ 74/192] Installing pam-libs-0:1.7.2-4 100% | 133.7 MiB/s | 136.9 KiB | 00m00s [ 75/192] Installing libcap-0:2.78-2.fc 100% | 12.3 MiB/s | 213.3 KiB | 00m00s [ 76/192] Installing libsemanage-0:3.11 100% | 314.8 MiB/s | 322.4 KiB | 00m00s [ 77/192] Installing libsmartcols-0:2.4 100% | 185.2 MiB/s | 189.6 KiB | 00m00s [ 78/192] Installing lua-libs-0:5.5.1-2 100% | 292.4 MiB/s | 299.4 KiB | 00m00s [ 79/192] Installing libffi-0:3.8.0-1.f 100% | 94.6 MiB/s | 96.9 KiB | 00m00s [ 80/192] Installing p11-kit-0:0.26.6-1 100% | 117.7 MiB/s | 2.7 MiB | 00m00s [ 81/192] Installing alternatives-0:1.3 100% | 3.9 MiB/s | 63.6 KiB | 00m00s [ 82/192] Installing p11-kit-trust-0:0. 100% | 20.4 MiB/s | 480.1 KiB | 00m00s [ 83/192] Installing ngtcp2-0:1.22.1-3. 100% | 164.0 MiB/s | 335.8 KiB | 00m00s [ 84/192] Installing util-linux-core-0: 100% | 68.7 MiB/s | 1.5 MiB | 00m00s [ 85/192] Installing liblastlog2-0:2.42 100% | 7.8 MiB/s | 39.8 KiB | 00m00s [ 86/192] Installing zip-0:3.0-46.fc45. 100% | 34.1 MiB/s | 698.0 KiB | 00m00s [ 87/192] Installing gnupg2-keyboxd-0:2 100% | 33.0 MiB/s | 202.6 KiB | 00m00s [ 88/192] Installing libpsl-0:0.23.3-1. 100% | 79.6 MiB/s | 81.5 KiB | 00m00s [ 89/192] Installing tar-2:1.35-9.fc45. 100% | 123.9 MiB/s | 3.0 MiB | 00m00s [ 90/192] Installing linkdupes-0:0.7.3- 100% | 42.5 MiB/s | 783.5 KiB | 00m00s [ 91/192] Installing libselinux-utils-0 100% | 17.4 MiB/s | 320.4 KiB | 00m00s [ 92/192] Installing libfdisk-0:2.42.4- 100% | 192.0 MiB/s | 393.2 KiB | 00m00s [ 93/192] Installing fips-provider-0:1. 100% | 438.7 MiB/s | 4.8 MiB | 00m00s [ 94/192] Installing openssl-libs-1:4.0 100% | 394.0 MiB/s | 6.7 MiB | 00m00s [ 95/192] Installing coreutils-0:9.12-2 100% | 176.5 MiB/s | 6.4 MiB | 00m00s [ 96/192] Installing ca-certificates-0: 100% | 2.4 MiB/s | 2.5 MiB | 00m01s [ 97/192] Installing gzip-0:1.15-1.fc46 100% | 23.2 MiB/s | 450.7 KiB | 00m00s [ 98/192] Installing util-linux-0:2.42. 100% | 101.5 MiB/s | 3.8 MiB | 00m00s [ 99/192] Installing policycoreutils-0: 100% | 32.1 MiB/s | 921.4 KiB | 00m00s [100/192] Installing selinux-policy-0:4 100% | 1.9 MiB/s | 34.5 KiB | 00m00s [101/192] Installing selinux-policy-tar 100% | 219.0 MiB/s | 15.1 MiB | 00m00s [102/192] Installing rpm-sequoia-0:1.10 100% | 349.6 MiB/s | 2.4 MiB | 00m00s [103/192] Installing ima-evm-utils-libs 100% | 95.7 MiB/s | 98.0 KiB | 00m00s [104/192] Installing libfsverity-0:1.7- 100% | 0.0 B/s | 25.4 KiB | 00m00s [105/192] Installing libevent-0:2.1.13- 100% | 320.5 MiB/s | 984.5 KiB | 00m00s [106/192] Installing ngtcp2-crypto-ossl 100% | 0.0 B/s | 52.5 KiB | 00m00s [107/192] Installing libusb1-0:1.0.30-2 100% | 16.1 MiB/s | 181.8 KiB | 00m00s >>> Running sysusers scriptlet: tpm2-tss-0:4.2.3-1.fc46.x86_64 >>> Finished sysusers scriptlet: tpm2-tss-0:4.2.3-1.fc46.x86_64 >>> Scriptlet output: >>> Creating group 'tss' with GID 59. >>> Creating user 'tss' (Account used for TPM access) with UID 59 and GID 59. >>> [108/192] Installing tpm2-tss-0:4.2.3-1 100% | 276.6 MiB/s | 1.7 MiB | 00m00s [109/192] Installing gnupg2-gpg-agent-0 100% | 27.8 MiB/s | 682.8 KiB | 00m00s [110/192] Installing nettle-0:4.0-5.fc4 100% | 262.0 MiB/s | 805.0 KiB | 00m00s [111/192] Installing gnutls-0:3.8.14-1. 100% | 391.8 MiB/s | 3.9 MiB | 00m00s [112/192] Installing zstd-0:1.6.0-1.fc4 100% | 29.0 MiB/s | 535.0 KiB | 00m00s [113/192] Installing libxml2-0:2.15.4-1 100% | 82.7 MiB/s | 1.7 MiB | 00m00s [114/192] Installing bzip2-0:1.0.8-25.f 100% | 6.1 MiB/s | 99.5 KiB | 00m00s [115/192] Installing add-determinism-0: 100% | 102.8 MiB/s | 2.2 MiB | 00m00s [116/192] Installing build-reproducibil 100% | 0.0 B/s | 1.5 KiB | 00m00s [117/192] Installing cpio-0:2.15-10.fc4 100% | 58.1 MiB/s | 1.1 MiB | 00m00s [118/192] Installing ed-0:1.22.6-1.fc46 100% | 8.8 MiB/s | 153.2 KiB | 00m00s [119/192] Installing patch-0:2.8-6.fc46 100% | 13.1 MiB/s | 228.1 KiB | 00m00s [120/192] Installing libpfm-0:4.14.1-2. 100% | 593.1 MiB/s | 2.4 MiB | 00m00s [121/192] Installing lz4-libs-0:1.10.0- 100% | 162.5 MiB/s | 166.4 KiB | 00m00s [122/192] Installing libarchive-0:3.8.9 100% | 327.4 MiB/s | 1.0 MiB | 00m00s [123/192] Installing libgomp-0:16.2.1-3 100% | 282.7 MiB/s | 579.0 KiB | 00m00s [124/192] Installing libtool-ltdl-0:2.6 100% | 0.0 B/s | 71.1 KiB | 00m00s [125/192] Installing gdbm-libs-1:1.26-1 100% | 132.7 MiB/s | 135.9 KiB | 00m00s [126/192] Installing cyrus-sasl-lib-0:2 100% | 111.4 MiB/s | 2.3 MiB | 00m00s [127/192] Installing openldap-0:2.6.16- 100% | 223.9 MiB/s | 687.7 KiB | 00m00s [128/192] Installing gnupg2-dirmngr-0:2 100% | 26.9 MiB/s | 632.7 KiB | 00m00s [129/192] Installing gnupg2-0:2.4.9-19. 100% | 197.0 MiB/s | 6.5 MiB | 00m00s [130/192] Installing gpgverify-0:2.2-5. 100% | 0.0 B/s | 9.4 KiB | 00m00s [131/192] Installing jansson-0:2.14-5.f 100% | 88.2 MiB/s | 90.3 KiB | 00m00s [132/192] Installing libpkgconf-0:2.5.1 100% | 89.1 MiB/s | 91.3 KiB | 00m00s [133/192] Installing pkgconf-0:2.5.1-2. 100% | 5.5 MiB/s | 95.2 KiB | 00m00s [134/192] Installing pkgconf-pkg-config 100% | 110.8 KiB/s | 1.8 KiB | 00m00s [135/192] Installing systemd-standalone 100% | 53.3 MiB/s | 981.8 KiB | 00m00s [136/192] Installing rpm-libs-0:6.1.0-2 100% | 330.8 MiB/s | 1.0 MiB | 00m00s [137/192] Installing rpm-sign-libs-0:6. 100% | 0.0 B/s | 40.5 KiB | 00m00s [138/192] Installing rpm-build-libs-0:6 100% | 282.4 MiB/s | 289.1 KiB | 00m00s [139/192] Installing xxhash-libs-0:0.8. 100% | 93.1 MiB/s | 95.4 KiB | 00m00s [140/192] Installing libbrotli-0:1.2.1- 100% | 282.3 MiB/s | 867.3 KiB | 00m00s [141/192] Installing libnghttp2-0:1.69. 100% | 163.3 MiB/s | 167.3 KiB | 00m00s [142/192] Installing libnghttp3-0:1.19. 100% | 161.0 MiB/s | 164.8 KiB | 00m00s [143/192] Installing keyutils-libs-0:1. 100% | 0.0 B/s | 55.6 KiB | 00m00s [144/192] Installing libcom_err-0:1.47. 100% | 0.0 B/s | 64.1 KiB | 00m00s [145/192] Installing libverto-0:0.3.2-1 100% | 26.4 MiB/s | 27.1 KiB | 00m00s [146/192] Installing krb5-libs-0:1.22.3 100% | 342.4 MiB/s | 2.4 MiB | 00m00s [147/192] Installing libcbor-0:0.14.0-3 100% | 82.9 MiB/s | 84.9 KiB | 00m00s [148/192] Installing libfido2-0:1.17.0- 100% | 252.0 MiB/s | 258.1 KiB | 00m00s [149/192] Installing libssh-0:0.12.2-2. 100% | 355.3 MiB/s | 727.7 KiB | 00m00s [150/192] Installing libcurl-0:8.24.0~r 100% | 367.2 MiB/s | 1.1 MiB | 00m00s [151/192] Installing elfutils-debuginfo 100% | 4.7 MiB/s | 82.0 KiB | 00m00s [152/192] Installing elfutils-0:0.197-3 100% | 128.3 MiB/s | 3.1 MiB | 00m00s [153/192] Installing binutils-0:2.47.50 100% | 314.7 MiB/s | 24.5 MiB | 00m00s [154/192] Installing gdb-minimal-0:18.1 100% | 277.7 MiB/s | 14.4 MiB | 00m00s [155/192] Installing debugedit-0:5.4-1. 100% | 13.3 MiB/s | 232.1 KiB | 00m00s [156/192] Installing curl-0:8.24.0~rc2- 100% | 19.1 MiB/s | 489.8 KiB | 00m00s [157/192] Installing rpm-0:6.1.0-2.fc46 100% | 75.9 MiB/s | 2.5 MiB | 00m00s [158/192] Installing cmake-srpm-macros- 100% | 0.0 B/s | 804.0 B | 00m00s [159/192] Installing efi-srpm-macros-0: 100% | 0.0 B/s | 41.3 KiB | 00m00s [160/192] Installing java-srpm-macros-0 100% | 0.0 B/s | 1.1 KiB | 00m00s [161/192] Installing lua-srpm-macros-0: 100% | 475.6 KiB/s | 1.9 KiB | 00m00s [162/192] Installing tree-sitter-srpm-m 100% | 0.0 B/s | 9.6 KiB | 00m00s [163/192] Installing zig-srpm-macros-0: 100% | 0.0 B/s | 1.9 KiB | 00m00s [164/192] Installing filesystem-srpm-ma 100% | 0.0 B/s | 38.9 KiB | 00m00s [165/192] Installing rust-srpm-macros-0 100% | 0.0 B/s | 6.4 KiB | 00m00s [166/192] Installing qt6-srpm-macros-0: 100% | 0.0 B/s | 748.0 B | 00m00s [167/192] Installing qt5-srpm-macros-0: 100% | 0.0 B/s | 776.0 B | 00m00s [168/192] Installing perl-srpm-macros-0 100% | 0.0 B/s | 1.1 KiB | 00m00s [169/192] Installing package-notes-srpm 100% | 0.0 B/s | 2.1 KiB | 00m00s [170/192] Installing openblas-srpm-macr 100% | 0.0 B/s | 404.0 B | 00m00s [171/192] Installing ocaml-srpm-macros- 100% | 0.0 B/s | 2.1 KiB | 00m00s [172/192] Installing meson-srpm-macros- 100% | 0.0 B/s | 1.9 KiB | 00m00s [173/192] Installing kernel-srpm-macros 100% | 0.0 B/s | 2.3 KiB | 00m00s [174/192] Installing gnome-srpm-macros- 100% | 0.0 B/s | 4.1 KiB | 00m00s [175/192] Installing gnat-srpm-macros-0 100% | 0.0 B/s | 1.3 KiB | 00m00s [176/192] Installing ghc-srpm-macros-0: 100% | 0.0 B/s | 1.0 KiB | 00m00s [177/192] Installing gap-srpm-macros-0: 100% | 0.0 B/s | 2.7 KiB | 00m00s [178/192] Installing fpc-srpm-macros-0: 100% | 0.0 B/s | 420.0 B | 00m00s [179/192] Installing ansible-srpm-macro 100% | 0.0 B/s | 36.2 KiB | 00m00s [180/192] Installing redhat-rpm-config- 100% | 186.2 MiB/s | 190.7 KiB | 00m00s [181/192] Installing forge-srpm-macros- 100% | 0.0 B/s | 40.3 KiB | 00m00s [182/192] Installing rpm-build-0:6.1.0- 100% | 11.3 MiB/s | 220.6 KiB | 00m00s [183/192] Installing erlang-srpm-macros 100% | 0.0 B/s | 2.6 KiB | 00m00s [184/192] Installing pyproject-srpm-mac 100% | 0.0 B/s | 4.0 KiB | 00m00s [185/192] Installing fonts-srpm-macros- 100% | 0.0 B/s | 57.0 KiB | 00m00s [186/192] Installing go-srpm-macros-0:3 100% | 0.0 B/s | 63.0 KiB | 00m00s [187/192] Installing R-srpm-macros-0:1. 100% | 0.0 B/s | 4.4 KiB | 00m00s [188/192] Installing python-srpm-macros 100% | 0.0 B/s | 52.9 KiB | 00m00s [189/192] Installing rpm-plugin-selinux 100% | 0.0 B/s | 12.9 KiB | 00m00s [190/192] Installing which-0:2.25-2.fc4 100% | 4.9 MiB/s | 85.8 KiB | 00m00s [191/192] Installing shadow-utils-2:4.2 100% | 131.5 MiB/s | 3.9 MiB | 00m00s [192/192] Installing info-0:7.3-3.fc45. 100% | 55.5 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.20-2.fc46.x86_64 binutils-2.47.50-32.fc46.x86_64 build-reproducibility-srpm-macros-0.7.3-3.fc45.noarch bzip2-1.0.8-25.fc46.x86_64 bzip2-libs-1.0.8-25.fc46.x86_64 ca-certificates-2026.2.92_v9.0.319-2.fc46.noarch cmake-srpm-macros-4.4.3-1.fc46.noarch coreutils-9.12-2.fc46.x86_64 coreutils-common-9.12-2.fc46.x86_64 cpio-2.15-10.fc45.x86_64 crypto-policies-20260713-2.gitc42da77.fc45.noarch curl-8.24.0~rc2-1.fc46.x86_64 cyrus-sasl-lib-2.1.28-37.fc45.x86_64 debugedit-5.4-1.fc46.x86_64 diffutils-3.12-6.fc45.x86_64 dwz-0.17-3.fc45.x86_64 ed-1.22.6-1.fc46.x86_64 efi-srpm-macros-6-9.fc45.noarch elfutils-0.197-3.fc46.x86_64 elfutils-debuginfod-client-0.197-3.fc46.x86_64 elfutils-libelf-0.197-3.fc46.x86_64 elfutils-libs-0.197-3.fc46.x86_64 erlang-srpm-macros-0.4.2-1.fc46.noarch fedora-gpg-keys-46-0.3.noarch fedora-release-46-0.1.noarch fedora-release-common-46-0.1.noarch fedora-release-identity-basic-46-0.1.noarch fedora-repos-46-0.3.noarch fedora-repos-rawhide-46-0.3.noarch file-5.48-3.fc46.x86_64 file-libs-5.48-3.fc46.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-3.fc46.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.2-1.fc46.x86_64 gdb-minimal-18.1-1.fc46.x86_64 gdbm-libs-1.26-1.fc46.x86_64 ghc-srpm-macros-1.10-2.fc45.noarch glibc-2.44.9000-10.fc46.x86_64 glibc-common-2.44.9000-10.fc46.x86_64 glibc-gconv-extra-2.44.9000-10.fc46.x86_64 glibc-minimal-langpack-2.44.9000-10.fc46.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-5.fc46.noarch gnupg2-2.4.9-19.fc46.x86_64 gnupg2-dirmngr-2.4.9-19.fc46.x86_64 gnupg2-gpg-agent-2.4.9-19.fc46.x86_64 gnupg2-gpgconf-2.4.9-19.fc46.x86_64 gnupg2-keyboxd-2.4.9-19.fc46.x86_64 gnupg2-verify-2.4.9-19.fc46.x86_64 gnutls-3.8.14-1.fc46.x86_64 go-srpm-macros-3.8.0-3.fc45.noarch gpg-pubkey-4f50a6114cd5c6976a7f1179655a4b02f577861e-6888bc98 gpg-pubkey-b2e766fa50ca6fa2d5ed06fc09d879e09488fb64-6a6b46b4 gpg-pubkey-d924b10d3e810dabdd8b56b596e7e91491211fce-697c9899 gpgverify-2.2-5.fc45.noarch grep-3.12-5.fc46.x86_64 gzip-1.15-1.fc46.x86_64 ima-evm-utils-libs-1.7-1.fc46.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-31.fc46.noarch keyutils-libs-1.6.3-8.fc45.x86_64 krb5-libs-1.22.3-1.fc46.x86_64 libacl-2.4.0-3.fc46.x86_64 libarchive-3.8.9-2.fc46.x86_64 libassuan-2.5.7-6.fc45.x86_64 libattr-2.6.0-3.fc46.x86_64 libblkid-2.42.4-2.fc46.x86_64 libbrotli-1.2.1-1.fc46.x86_64 libcap-2.78-2.fc45.x86_64 libcap-ng-0.9.6-1.fc46.x86_64 libcbor-0.14.0-3.fc45.x86_64 libcom_err-1.47.4-2.fc45.x86_64 libcurl-8.24.0~rc2-1.fc46.x86_64 libeconf-0.8.6-1.fc46.x86_64 libevent-2.1.13-1.fc46.x86_64 libfdisk-2.42.4-2.fc46.x86_64 libffi-3.8.0-1.fc46.x86_64 libfido2-1.17.0-7.fc46.x86_64 libfsverity-1.7-4.fc45.x86_64 libgcc-16.2.1-3.fc46.x86_64 libgcrypt-1.12.4-1.fc46.x86_64 libgomp-16.2.1-3.fc46.x86_64 libgpg-error-1.61-3.fc46.x86_64 libidn2-2.3.8-4.fc45.x86_64 libksba-1.9.1-1.fc46.x86_64 liblastlog2-2.42.4-2.fc46.x86_64 libmount-2.42.4-2.fc46.x86_64 libnghttp2-1.69.0-6.fc46.x86_64 libnghttp3-1.19.0-1.fc46.x86_64 libpfm-4.14.1-2.fc46.x86_64 libpkgconf-2.5.1-2.fc45.x86_64 libpsl-0.23.3-1.fc46.x86_64 libselinux-3.11-5.fc46.x86_64 libselinux-utils-3.11-5.fc46.x86_64 libsemanage-3.11-4.fc46.x86_64 libsepol-3.11-2.fc45.x86_64 libsmartcols-2.42.4-2.fc46.x86_64 libssh-0.12.2-2.fc46.x86_64 libssh-config-0.12.2-2.fc46.noarch libstdc++-16.2.1-3.fc46.x86_64 libtasn1-4.21.0-2.fc45.x86_64 libtool-ltdl-2.6.2-2.fc46.x86_64 libunistring-1.1-12.fc45.x86_64 libusb1-1.0.30-2.fc45.x86_64 libuuid-2.42.4-2.fc46.x86_64 libverto-0.3.2-13.fc45.x86_64 libxcrypt-4.5.2-8.fc46.x86_64 libxml2-2.15.4-1.fc46.x86_64 libzstd-1.6.0-1.fc46.x86_64 linkdupes-0.7.3-3.fc45.x86_64 lua-libs-5.5.1-2.fc46.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.fc46.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-23.fc46.noarch openldap-2.6.16-1.fc46.x86_64 openssl-libs-4.0.3-1.fc46.x86_64 p11-kit-0.26.6-1.fc46.x86_64 p11-kit-trust-0.26.6-1.fc46.x86_64 package-notes-srpm-macros-0.20-2.fc45.noarch pam-libs-1.7.2-4.fc45.x86_64 patch-2.8-6.fc46.x86_64 pcre2-10.49-1.fc46.1.x86_64 pcre2-syntax-10.49-1.fc46.1.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.fc46.noarch python-srpm-macros-3.15-2.fc45.noarch qt5-srpm-macros-5.15.18-3.fc45.noarch qt6-srpm-macros-6.12.0-1.fc46.noarch readline-8.3-7.fc46.x86_64 redhat-rpm-config-345-8.fc46.noarch redhat-systemd-presets-103-1.fc46.noarch redhat-systemd-presets-common-103-1.fc46.noarch rpm-6.1.0-2.fc46.x86_64 rpm-build-6.1.0-2.fc46.x86_64 rpm-build-libs-6.1.0-2.fc46.x86_64 rpm-libs-6.1.0-2.fc46.x86_64 rpm-plugin-selinux-6.1.0-2.fc46.x86_64 rpm-sequoia-1.10.3-1.fc46.x86_64 rpm-sign-libs-6.1.0-2.fc46.x86_64 rust-srpm-macros-28.5-2.fc45.noarch sed-4.10-2.fc45.x86_64 selinux-policy-45.26-1.fc46.noarch selinux-policy-targeted-45.26-1.fc46.noarch setup-2.15.1-2.fc45.noarch shadow-utils-4.20.0-2.fc46.x86_64 sqlite-libs-3.54.1-2.fc46.x86_64 systemd-libs-262.2-7.fc46.x86_64 systemd-standalone-sysusers-262.2-7.fc46.x86_64 tar-1.35-9.fc45.x86_64 tpm2-tss-4.2.3-1.fc46.x86_64 tree-sitter-srpm-macros-0.4.6-2.fc45.noarch unzip-6.0-71.fc45.x86_64 util-linux-2.42.4-2.fc46.x86_64 util-linux-core-2.42.4-2.fc46.x86_64 which-2.25-2.fc45.x86_64 xxhash-libs-0.8.4-2.fc46.x86_64 xz-5.8.4-3.fc46.x86_64 xz-libs-5.8.4-3.fc46.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.fc46.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.fc46.src.rpm Finish: rpmbuild -bs INFO: chroot_scan: 1 files copied to /var/lib/copr-rpmbuild/results/chroot_scan INFO: /var/lib/mock/fedora-rawhide-x86_64-1795997168.508416/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-w61ojjyr/py-pdftools/py-pdftools.spec) Config(child) 0 minutes 28 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.fc46.src.rpm) Config(fedora-rawhide-x86_64) Start(bootstrap): chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1795997168.508416/root. INFO: reusing tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1795997168.508416/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-rawhide-x86_64-1795997168.508416/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-2.fc46.x86_64 rpm-sequoia-1.10.3-1.fc46.x86_64 dnf5-5.4.8.0-2.fc46.x86_64 dnf5-plugins-5.4.8.0-2.fc46.x86_64 Finish: chroot init Start: build phase for py-pdftools-1.32.0-1.fc46.src.rpm Start: build setup for py-pdftools-1.32.0-1.fc46.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.fc46.src.rpm Updating and loading repositories: fedora 100% | 102.1 KiB/s | 18.1 KiB | 00m00s Copr repository 100% | 10.7 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package Arch Version Repository Size Installing: appstream x86_64 0:1.2.3-1.fc46 fedora 5.3 MiB desktop-file-utils x86_64 0:0.29-2.fc46 fedora 231.3 KiB poppler-utils x86_64 0:26.08.0-2.fc46 fedora 819.9 KiB python3-devel x86_64 0:3.15.2-1.fc46 fedora 2.5 MiB python3-pyside6 x86_64 0:6.12.0-2.fc46 fedora 55.6 MiB python3-pytest noarch 0:9.1.1-1.fc45 fedora 24.3 MiB qpdf x86_64 0:12.4.2-1.fc46 fedora 274.6 KiB tesseract x86_64 0:5.5.5-1.fc46 fedora 84.4 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.fc46 fedora 3.2 MiB abseil-cpp x86_64 0:20260817.0-1.fc46 fedora 2.6 MiB adwaita-cursor-theme noarch 0:51.0-1.fc46 fedora 11.4 MiB adwaita-icon-theme noarch 0:51.0-1.fc46 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.fc46 fedora 7.5 MiB at-spi2-atk x86_64 0:2.62.2-1.fc46 fedora 288.2 KiB at-spi2-core x86_64 0:2.62.2-1.fc46 fedora 1.6 MiB atk x86_64 0:2.62.2-1.fc46 fedora 252.6 KiB authselect x86_64 0:1.8.0-1.fc46 fedora 231.9 KiB authselect-libs x86_64 0:1.8.0-1.fc46 fedora 933.7 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-2.fc46 fedora 202.3 KiB bubblewrap x86_64 0:0.13.1-1.fc46 fedora 139.9 KiB cairo x86_64 0:1.18.6-1.fc46 fedora 1.8 MiB cairo-gobject x86_64 0:1.18.6-1.fc46 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.4.3-1.fc46 fedora 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.fc46 fedora 0.0 B dbus-broker x86_64 0:37-9.fc45 fedora 395.0 KiB dbus-common noarch 1:1.16.4-2.fc46 fedora 11.2 KiB dbus-libs x86_64 1:1.16.4-2.fc46 fedora 357.5 KiB default-fonts-core-sans noarch 0:4.3-5.fc46 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:31.2-1.fc46 fedora 0.0 B expat x86_64 0:2.9.0-1.fc46 fedora 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-19.fc46 fedora 3.6 MiB flac-libs x86_64 0:1.5.0-9.fc45 fedora 603.4 KiB fontconfig x86_64 0:2.18.4-1.fc46 fedora 1.0 MiB fonts-filesystem noarch 1:5.0.0-4.fc45 fedora 0.0 B freetype x86_64 0:2.15.0-2.fc46 fedora 946.8 KiB fribidi x86_64 0:1.0.18-1.fc46 fedora 407.3 KiB game-music-emu x86_64 0:0.6.5-2.fc45 fedora 364.1 KiB gdbm x86_64 1:1.26-1.fc46 fedora 570.2 KiB gdk-pixbuf2 x86_64 0:2.44.8-3.fc46 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.fc46 fedora 816.4 KiB glib2 x86_64 0:2.90.1-1.fc46 fedora 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.fc46 fedora 4.8 MiB glycin-loaders x86_64 0:2.2.6-1.fc46 fedora 15.0 MiB google-noto-fonts-common noarch 0:20261101-1.fc46 fedora 17.7 KiB google-noto-sans-vf-fonts noarch 0:20261101-1.fc46 fedora 1.4 MiB gpgme x86_64 0:2.3.1-1.fc46 fedora 629.2 KiB gpgmepp x86_64 1:2.2.0-1.fc46 fedora 625.7 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.fc46 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.fc46 fedora 5.4 MiB gstreamer1-plugins-bad-free-libs x86_64 0:1.28.9-1.fc46 fedora 3.6 MiB gstreamer1-plugins-base x86_64 0:1.28.9-1.fc46 fedora 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.fc46 fedora 312.0 KiB gupnp-igd x86_64 0:1.6.0-15.fc45 fedora 70.6 KiB harfbuzz x86_64 0:15.2.0-1.fc46 fedora 3.7 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.fc46 fedora 10.2 MiB ilbc x86_64 0:3.0.4-22.fc46 fedora 91.3 KiB iso-codes noarch 0:4.20.1-4.fc45 fedora 22.3 MiB 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.fc46 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.fc46 fedora 1.3 MiB libX11-common noarch 0:1.8.13-3.fc46 fedora 1.1 MiB libX11-xcb x86_64 0:1.8.13-3.fc46 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.fc46 fedora 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.fc46 fedora 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-5.fc46 fedora 11.2 MiB libavformat-free x86_64 0:9.0.2-5.fc46 fedora 2.9 MiB libavutil-free x86_64 0:9.0.2-5.fc46 fedora 983.4 KiB libb2 x86_64 0:0.98.1-16.fc45 fedora 41.9 KiB libbluray x86_64 0:1.4.0-5.fc46 fedora 322.4 KiB libchromaprint x86_64 0:1.6.2-1.fc46 fedora 74.4 KiB libcloudproviders x86_64 0:0.4.2-1.fc46 fedora 128.2 KiB libdatrie x86_64 0:0.2.14-3.fc45 fedora 57.7 KiB libdav1d x86_64 0:1.5.5-1.fc46 fedora 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.14.0-1.fc46 fedora 85.9 KiB libfyaml x86_64 0:0.9.6-1.fc46 fedora 691.1 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.fc46 fedora 2.4 MiB libicu x86_64 0:78.3-9.fc46 fedora 37.8 MiB libinput x86_64 0:1.32.0-1.fc46 fedora 712.6 KiB libjpeg-turbo x86_64 0:3.1.4.1-2.fc45 fedora 821.8 KiB libjxl x86_64 1:0.11.2-3.fc46 fedora 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.fc46 fedora 465.7 KiB liblerc x86_64 0:4.3.0-1.fc46 fedora 665.2 KiB libmng x86_64 0:2.0.3-26.fc45 fedora 553.8 KiB libmodplug x86_64 1:0.8.9.2-1.fc46 fedora 370.5 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.32.0-1.fc46 fedora 530.5 KiB libopenmpt x86_64 0:0.8.10-2.fc46 fedora 1.9 MiB libpciaccess x86_64 0:0.16-18.fc45 fedora 48.4 KiB libpng x86_64 2:1.6.59-1.fc46 fedora 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.fc46 fedora 93.5 KiB librist x86_64 0:0.2.11-2.fc45 fedora 182.1 KiB librsvg2 x86_64 0:2.63.4-1.fc46 fedora 5.0 MiB libsbc x86_64 0:2.2-1.fc46 fedora 93.3 KiB libseccomp x86_64 0:2.6.1-3.fc45 fedora 222.2 KiB libsmbclient x86_64 2:4.25.1-1.fc46 fedora 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.fc46 fedora 1.2 MiB libstemmer x86_64 0:3.1.1-2.fc45 fedora 673.5 KiB libswresample-free x86_64 0:9.0.2-5.fc46 fedora 155.2 KiB libswscale-free x86_64 0:9.0.2-5.fc46 fedora 1.1 MiB libtalloc x86_64 0:2.5.0-4.fc46 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.fc46 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.fc46 fedora 644.5 KiB libtinysparql x86_64 0:3.12.0-1.fc46 fedora 1.0 MiB libtirpc x86_64 0:1.3.8-0.rc1.fc46 fedora 208.3 KiB libudfread x86_64 0:1.2.0-4.fc45 fedora 62.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.fc46 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.fc46 fedora 3.3 MiB libwacom x86_64 0:2.20.0-1.fc46 fedora 106.1 KiB libwacom-data noarch 0:2.20.0-1.fc46 fedora 1.4 MiB libwayland-client x86_64 0:1.26.0-3.fc46 fedora 66.0 KiB libwayland-cursor x86_64 0:1.26.0-3.fc46 fedora 37.2 KiB libwayland-egl x86_64 0:1.26.0-3.fc46 fedora 12.3 KiB libwbclient x86_64 2:4.25.1-1.fc46 fedora 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.fc46 fedora 432.2 KiB libxkbcommon-x11 x86_64 0:1.13.1-4.fc46 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.fc46 fedora 292.7 KiB libxshmfence x86_64 0:1.3.2-9.fc45 fedora 12.3 KiB libxslt x86_64 0:1.1.43-10.fc46 fedora 471.8 KiB llvm-filesystem x86_64 0:23.1.6-1.fc46 fedora 0.0 B llvm-libs x86_64 0:23.1.6-1.fc46 fedora 146.2 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.3.1-1.fc46 fedora 53.9 MiB mesa-filesystem x86_64 0:26.3.1-1.fc46 fedora 3.6 KiB mesa-libEGL x86_64 0:26.3.1-1.fc46 fedora 402.2 KiB mesa-libGL x86_64 0:26.3.1-1.fc46 fedora 390.4 KiB mesa-libgbm x86_64 0:26.3.1-1.fc46 fedora 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.fc46 fedora 327.1 KiB nss x86_64 0:3.134.0-1.fc46 fedora 2.0 MiB nss-softokn x86_64 0:3.134.0-1.fc46 fedora 2.1 MiB nss-softokn-freebl x86_64 0:3.134.0-1.fc46 fedora 1.1 MiB nss-sysinit x86_64 0:3.134.0-1.fc46 fedora 22.0 KiB nss-util x86_64 0:3.134.0-1.fc46 fedora 208.8 KiB openapv-libs x86_64 0:1.1.3.0-1.fc46 fedora 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.fc46 fedora 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.fc46 fedora 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.fc46.1 fedora 659.2 KiB pipewire-libs x86_64 0:1.6.12-1.fc46 fedora 9.7 MiB pixman x86_64 0:0.46.2-4.fc45 fedora 718.3 KiB poly2tri x86_64 0:0.0^20240130.a922022da4-3.fc46 fedora 59.8 KiB poppler x86_64 0:26.08.0-2.fc46 fedora 4.1 MiB poppler-data noarch 0:0.4.12-1.fc46 fedora 12.3 MiB pugixml x86_64 0:1.16-2.fc45 fedora 286.7 KiB pulseaudio-libs x86_64 0:17.0-11.fc46 fedora 3.4 MiB pyproject-rpm-macros noarch 0:1.24.0-1.fc46 fedora 169.0 KiB python-pip-wheel noarch 0:26.3-1.fc46 fedora 1.4 MiB python-rpm-macros noarch 0:3.15-2.fc45 fedora 28.0 KiB python3 x86_64 0:3.15.2-1.fc46 fedora 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.fc46 fedora 48.3 MiB python3-packaging noarch 0:26.3-1.fc46 fedora 1.3 MiB python3-pluggy noarch 0:1.7.0-1.fc46 fedora 246.1 KiB python3-pygments noarch 0:2.21.0-1.fc46 fedora 11.5 MiB python3-rpm-generators noarch 0:14-35.fc46 fedora 81.9 KiB python3-rpm-macros noarch 0:3.15-2.fc45 fedora 6.5 KiB python3-shiboken6 x86_64 0:6.12.0-2.fc46 fedora 651.8 KiB qpdf-libs x86_64 0:12.4.2-1.fc46 fedora 3.1 MiB qt6-filesystem x86_64 0:6.12.0-1.fc46 fedora 0.0 B qt6-qt3d x86_64 0:6.12.0-1.fc46 fedora 15.2 MiB qt6-qtbase x86_64 0:6.12.0-1.fc46 fedora 14.2 MiB qt6-qtbase-common noarch 0:6.12.0-1.fc46 fedora 76.0 B qt6-qtbase-gui x86_64 0:6.12.0-1.fc46 fedora 27.7 MiB qt6-qtcharts x86_64 0:6.12.0-1.fc46 fedora 3.5 MiB qt6-qtconnectivity x86_64 0:6.12.0-1.fc46 fedora 1.6 MiB qt6-qtdatavis3d x86_64 0:6.12.0-1.fc46 fedora 2.4 MiB qt6-qtdeclarative x86_64 0:6.12.0-2.fc46 fedora 68.4 MiB qt6-qtgraphs x86_64 0:6.12.0-1.fc46 fedora 4.0 MiB qt6-qthttpserver x86_64 0:6.12.0-1.fc46 fedora 346.2 KiB qt6-qtimageformats x86_64 0:6.12.0-1.fc46 fedora 381.9 KiB qt6-qtlocation x86_64 0:6.12.0-1.fc46 fedora 2.9 MiB qt6-qtmultimedia x86_64 0:6.12.0-1.fc46 fedora 4.7 MiB qt6-qtnetworkauth x86_64 0:6.12.0-1.fc46 fedora 376.1 KiB qt6-qtpdf x86_64 0:6.140.0-1.fc46 fedora 24.9 MiB qt6-qtpositioning x86_64 0:6.12.0-1.fc46 fedora 1.6 MiB qt6-qtquick3d x86_64 0:6.12.0-1.fc46 fedora 15.8 MiB qt6-qtquicktimeline x86_64 0:6.12.0-1.fc46 fedora 296.2 KiB qt6-qtremoteobjects x86_64 0:6.12.0-1.fc46 fedora 1.5 MiB qt6-qtscxml x86_64 0:6.12.0-1.fc46 fedora 1.9 MiB qt6-qtsensors x86_64 0:6.12.0-1.fc46 fedora 949.9 KiB qt6-qtserialbus x86_64 0:6.12.0-1.fc46 fedora 979.9 KiB qt6-qtserialport x86_64 0:6.12.0-1.fc46 fedora 230.5 KiB qt6-qtshadertools x86_64 0:6.12.0-1.fc46 fedora 7.2 MiB qt6-qtspeech x86_64 0:6.12.0-1.fc46 fedora 380.3 KiB qt6-qtsvg x86_64 0:6.12.0-1.fc46 fedora 951.5 KiB qt6-qttools x86_64 0:6.12.0-1.fc46 fedora 936.5 KiB qt6-qttools-common noarch 0:6.12.0-1.fc46 fedora 7.5 KiB qt6-qttools-libs-designer x86_64 0:6.12.0-1.fc46 fedora 6.0 MiB qt6-qttools-libs-help x86_64 0:6.12.0-1.fc46 fedora 651.5 KiB qt6-qtwebchannel x86_64 0:6.12.0-1.fc46 fedora 456.3 KiB qt6-qtwebengine x86_64 0:6.140.0-1.fc46 fedora 277.9 MiB qt6-qtwebsockets x86_64 0:6.12.0-1.fc46 fedora 332.8 KiB qt6-qtwebview x86_64 0:6.12.0-1.fc46 fedora 284.8 KiB rav1e-libs x86_64 0:0.8.1-5.fc46 fedora 3.0 MiB re2 x86_64 2:20251105-23.fc46 fedora 590.5 KiB samba-client-libs x86_64 2:4.25.1-1.fc46 fedora 11.4 MiB samba-common noarch 2:4.25.1-1.fc46 fedora 207.0 KiB samba-core-libs x86_64 2:4.25.1-1.fc46 fedora 1.7 MiB samba-ndr-libs x86_64 2:4.25.1-1.fc46 fedora 4.7 MiB sdl2-compat x86_64 0:2.32.74-1.fc46 fedora 412.7 KiB shared-mime-info x86_64 0:2.5.1-3.fc46 fedora 6.6 MiB snappy x86_64 0:1.2.2-6.fc45 fedora 79.9 KiB soxr x86_64 0:0.1.3-23.fc46 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.4-1.fc46 fedora 6.5 MiB srt-libs x86_64 0:1.5.7-1.fc46 fedora 1.0 MiB svt-av1-libs x86_64 0:3.1.2-3.fc45 fedora 5.6 MiB systemd x86_64 0:262.2-7.fc46 fedora 13.3 MiB systemd-rpm-macros noarch 0:262.2-7.fc46 fedora 8.5 KiB systemd-shared x86_64 0:262.2-7.fc46 fedora 6.2 MiB systemd-tools x86_64 0:262.2-7.fc46 fedora 1.6 MiB tesseract-common noarch 0:5.5.5-1.fc46 fedora 14.7 KiB tesseract-libs x86_64 0:5.5.5-1.fc46 fedora 3.5 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.fc46 fedora 1.3 MiB vo-amrwbenc x86_64 0:0.1.3-25.fc45 fedora 153.8 KiB vulkan-loader x86_64 0:1.4.363.0-1.fc46 fedora 650.7 KiB webrtc-audio-processing x86_64 0:2.1-12.fc46 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.8.0-1.fc46 fedora 392.0 KiB xeve-libs x86_64 0:0.7.1-1.fc46 fedora 916.8 KiB xkeyboard-config noarch 0:2.49-1.fc46 fedora 6.5 MiB xml-common noarch 0:0.6.3-70.fc46 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-26.fc46 fedora 955.7 KiB zvbi x86_64 0:0.2.46-1.fc46 fedora 1.2 MiB Transaction Summary: Installing: 328 packages Total size of inbound packages is 373 MiB. Need to download 373 MiB. After this operation, 1 GiB extra will be used (install 1 GiB, remove 0 B). [ 1/328] desktop-file-utils-0:0.29-2.f 100% | 549.0 KiB/s | 74.7 KiB | 00m00s [ 2/328] qpdf-0:12.4.2-1.fc46.x86_64 100% | 1.2 MiB/s | 113.2 KiB | 00m00s [ 3/328] poppler-utils-0:26.08.0-2.fc4 100% | 1.3 MiB/s | 317.9 KiB | 00m00s [ 4/328] tesseract-0:5.5.5-1.fc46.x86_ 100% | 1.0 MiB/s | 50.8 KiB | 00m00s [ 5/328] python3-pytest-0:9.1.1-1.fc45 100% | 6.5 MiB/s | 2.5 MiB | 00m00s [ 6/328] tesseract-langpack-eng-0:4.1. 100% | 10.8 MiB/s | 1.7 MiB | 00m00s [ 7/328] appstream-0:1.2.3-1.fc46.x86_ 100% | 6.8 MiB/s | 1.0 MiB | 00m00s [ 8/328] python3-devel-0:3.15.2-1.fc46 100% | 10.0 MiB/s | 492.2 KiB | 00m00s [ 9/328] emacs-filesystem-1:31.2-1.fc4 100% | 209.9 KiB/s | 8.4 KiB | 00m00s [ 10/328] glib2-0:2.90.1-1.fc46.x86_64 100% | 36.5 MiB/s | 3.2 MiB | 00m00s [ 11/328] cairo-0:1.18.6-1.fc46.x86_64 100% | 12.3 MiB/s | 757.6 KiB | 00m00s [ 12/328] python3-pyside6-0:6.12.0-2.fc 100% | 62.8 MiB/s | 10.5 MiB | 00m00s [ 13/328] lcms2-0:2.16-8.fc45.x86_64 100% | 4.2 MiB/s | 190.3 KiB | 00m00s [ 14/328] freetype-0:2.15.0-2.fc46.x86_ 100% | 9.0 MiB/s | 458.7 KiB | 00m00s [ 15/328] poppler-0:26.08.0-2.fc46.x86_ 100% | 29.7 MiB/s | 1.4 MiB | 00m00s [ 16/328] python3-iniconfig-0:2.3.0-5.f 100% | 614.0 KiB/s | 25.8 KiB | 00m00s [ 17/328] python3-packaging-0:26.3-1.fc 100% | 6.2 MiB/s | 293.6 KiB | 00m00s [ 18/328] python3-pluggy-0:1.7.0-1.fc46 100% | 1.8 MiB/s | 75.0 KiB | 00m00s [ 19/328] python3-pygments-0:2.21.0-1.f 100% | 44.8 MiB/s | 2.7 MiB | 00m00s [ 20/328] qpdf-libs-0:12.4.2-1.fc46.x86 100% | 15.9 MiB/s | 1.0 MiB | 00m00s [ 21/328] leptonica-0:1.87.0-5.fc45.x86 100% | 26.2 MiB/s | 1.3 MiB | 00m00s [ 22/328] tesseract-libs-0:5.5.5-1.fc46 100% | 28.5 MiB/s | 1.4 MiB | 00m00s [ 23/328] tesseract-common-0:5.5.5-1.fc 100% | 607.6 KiB/s | 24.3 KiB | 00m00s [ 24/328] tesseract-tessdata-doc-0:4.1. 100% | 333.4 KiB/s | 13.3 KiB | 00m00s [ 25/328] libfyaml-0:0.9.6-1.fc46.x86_6 100% | 6.6 MiB/s | 296.0 KiB | 00m00s [ 26/328] libstemmer-0:3.1.1-2.fc45.x86 100% | 3.6 MiB/s | 153.9 KiB | 00m00s [ 27/328] libxmlb-0:0.3.30-1.fc46.x86_6 100% | 2.9 MiB/s | 122.4 KiB | 00m00s [ 28/328] python3-shiboken6-0:6.12.0-2. 100% | 6.5 MiB/s | 307.1 KiB | 00m00s [ 29/328] qt6-qt3d-0:6.12.0-1.fc46.x86_ 100% | 57.4 MiB/s | 3.8 MiB | 00m00s [ 30/328] python3-libs-0:3.15.2-1.fc46. 100% | 83.8 MiB/s | 11.2 MiB | 00m00s [ 31/328] qt6-qtbase-gui-0:6.12.0-1.fc4 100% | 92.4 MiB/s | 8.8 MiB | 00m00s [ 32/328] qt6-qtcharts-0:6.12.0-1.fc46. 100% | 17.4 MiB/s | 871.8 KiB | 00m00s [ 33/328] qt6-qtbase-0:6.12.0-1.fc46.x8 100% | 31.1 MiB/s | 4.5 MiB | 00m00s [ 34/328] qt6-qtconnectivity-0:6.12.0-1 100% | 12.1 MiB/s | 545.0 KiB | 00m00s [ 35/328] qt6-qtdatavis3d-0:6.12.0-1.fc 100% | 14.3 MiB/s | 675.4 KiB | 00m00s [ 36/328] qt6-qtgraphs-0:6.12.0-1.fc46. 100% | 24.1 MiB/s | 1.1 MiB | 00m00s [ 37/328] qt6-qthttpserver-0:6.12.0-1.f 100% | 2.9 MiB/s | 131.5 KiB | 00m00s [ 38/328] qt6-qtlocation-0:6.12.0-1.fc4 100% | 15.8 MiB/s | 775.1 KiB | 00m00s [ 39/328] qt6-qtmultimedia-0:6.12.0-1.f 100% | 29.8 MiB/s | 1.5 MiB | 00m00s [ 40/328] qt6-qtdeclarative-0:6.12.0-2. 100% | 101.7 MiB/s | 16.6 MiB | 00m00s [ 41/328] qt6-qtnetworkauth-0:6.12.0-1. 100% | 3.0 MiB/s | 136.4 KiB | 00m00s [ 42/328] qt6-qtpositioning-0:6.12.0-1. 100% | 10.6 MiB/s | 468.7 KiB | 00m00s [ 43/328] qt6-qtpdf-0:6.140.0-1.fc46.x8 100% | 90.1 MiB/s | 8.5 MiB | 00m00s [ 44/328] qt6-qtquick3d-0:6.12.0-1.fc46 100% | 73.7 MiB/s | 5.8 MiB | 00m00s [ 45/328] qt6-qtremoteobjects-0:6.12.0- 100% | 12.3 MiB/s | 539.7 KiB | 00m00s [ 46/328] qt6-qtscxml-0:6.12.0-1.fc46.x 100% | 12.8 MiB/s | 600.6 KiB | 00m00s [ 47/328] qt6-qtsensors-0:6.12.0-1.fc46 100% | 5.5 MiB/s | 230.4 KiB | 00m00s [ 48/328] qt6-qtserialbus-0:6.12.0-1.fc 100% | 7.5 MiB/s | 321.3 KiB | 00m00s [ 49/328] qt6-qtserialport-0:6.12.0-1.f 100% | 1.9 MiB/s | 81.5 KiB | 00m00s [ 50/328] qt6-qtspeech-0:6.12.0-1.fc46. 100% | 2.9 MiB/s | 121.8 KiB | 00m00s [ 51/328] qt6-qtsvg-0:6.12.0-1.fc46.x86 100% | 7.5 MiB/s | 324.0 KiB | 00m00s [ 52/328] qt6-qttools-0:6.12.0-1.fc46.x 100% | 5.3 MiB/s | 238.6 KiB | 00m00s [ 53/328] qt6-qttools-libs-designer-0:6 100% | 52.9 MiB/s | 3.0 MiB | 00m00s [ 54/328] qt6-qttools-libs-help-0:6.12. 100% | 4.7 MiB/s | 231.0 KiB | 00m00s [ 55/328] qt6-qtwebchannel-0:6.12.0-1.f 100% | 3.6 MiB/s | 162.7 KiB | 00m00s [ 56/328] qt6-qtwebview-0:6.12.0-1.fc46 100% | 1.9 MiB/s | 87.8 KiB | 00m00s [ 57/328] fontconfig-0:2.18.4-1.fc46.x8 100% | 8.5 MiB/s | 385.2 KiB | 00m00s [ 58/328] libX11-0:1.8.13-3.fc46.x86_64 100% | 14.0 MiB/s | 674.9 KiB | 00m00s [ 59/328] libXext-0:1.3.6-6.fc45.x86_64 100% | 955.0 KiB/s | 40.1 KiB | 00m00s [ 60/328] libXrender-0:0.9.12-5.fc45.x8 100% | 661.0 KiB/s | 27.8 KiB | 00m00s [ 61/328] libpng-2:1.6.59-1.fc46.x86_64 100% | 2.9 MiB/s | 129.2 KiB | 00m00s [ 62/328] libxcb-0:1.17.0-8.fc45.x86_64 100% | 5.3 MiB/s | 237.9 KiB | 00m00s [ 63/328] lzo-0:2.10-17.fc45.x86_64 100% | 1.6 MiB/s | 70.6 KiB | 00m00s [ 64/328] pixman-0:0.46.2-4.fc45.x86_64 100% | 6.4 MiB/s | 296.7 KiB | 00m00s [ 65/328] harfbuzz-0:15.2.0-1.fc46.x86_ 100% | 26.9 MiB/s | 1.4 MiB | 00m00s [ 66/328] gpgmepp-1:2.2.0-1.fc46.x86_64 100% | 4.2 MiB/s | 191.2 KiB | 00m00s [ 67/328] qt6-qtwebengine-0:6.140.0-1.f 100% | 157.5 MiB/s | 95.0 MiB | 00m01s [ 68/328] qt6-qtwebsockets-0:6.12.0-1.f 100% | 188.2 KiB/s | 113.5 KiB | 00m01s [ 69/328] libjpeg-turbo-0:3.1.4.1-2.fc4 100% | 2.9 MiB/s | 242.6 KiB | 00m00s [ 70/328] libtiff-0:4.7.2-3.fc46.x86_64 100% | 5.4 MiB/s | 233.3 KiB | 00m00s [ 71/328] nspr-0:4.41.0-1.fc46.x86_64 100% | 3.3 MiB/s | 144.7 KiB | 00m00s [ 72/328] nss-0:3.134.0-1.fc46.x86_64 100% | 16.0 MiB/s | 770.6 KiB | 00m00s [ 73/328] openjpeg-0:2.5.4-5.fc46.x86_6 100% | 4.7 MiB/s | 196.6 KiB | 00m00s [ 74/328] giflib-0:6.1.3-3.fc45.x86_64 100% | 1.3 MiB/s | 55.6 KiB | 00m00s [ 75/328] poppler-data-0:0.4.12-1.fc46. 100% | 38.0 MiB/s | 2.0 MiB | 00m00s [ 76/328] libwebp-0:1.6.0-4.fc45.x86_64 100% | 7.6 MiB/s | 328.9 KiB | 00m00s [ 77/328] shared-mime-info-0:2.5.1-3.fc 100% | 10.5 MiB/s | 481.7 KiB | 00m00s [ 78/328] expat-0:2.9.0-1.fc46.x86_64 100% | 3.3 MiB/s | 136.2 KiB | 00m00s [ 79/328] mpdecimal-0:4.0.1-4.fc45.x86_ 100% | 2.4 MiB/s | 98.5 KiB | 00m00s [ 80/328] tzdata-0:2026f-1.fc46.noarch 100% | 15.5 MiB/s | 713.6 KiB | 00m00s [ 81/328] python-pip-wheel-0:26.3-1.fc4 100% | 25.7 MiB/s | 1.3 MiB | 00m00s [ 82/328] qt6-qtimageformats-0:6.12.0-1 100% | 2.8 MiB/s | 116.6 KiB | 00m00s [ 83/328] dbus-libs-1:1.16.4-2.fc46.x86 100% | 3.5 MiB/s | 155.9 KiB | 00m00s [ 84/328] qt6-qtshadertools-0:6.12.0-1. 100% | 42.8 MiB/s | 2.3 MiB | 00m00s [ 85/328] double-conversion-0:3.4.0-4.f 100% | 1.3 MiB/s | 54.6 KiB | 00m00s [ 86/328] libb2-0:0.98.1-16.fc45.x86_64 100% | 605.7 KiB/s | 26.0 KiB | 00m00s [ 87/328] pcre2-utf16-0:10.49-1.fc46.1. 100% | 5.7 MiB/s | 257.6 KiB | 00m00s [ 88/328] libicu-0:78.3-9.fc46.x86_64 100% | 104.9 MiB/s | 11.1 MiB | 00m00s [ 89/328] libproxy-0:0.5.12-3.fc45.x86_ 100% | 473.7 KiB/s | 45.0 KiB | 00m00s [ 90/328] qt6-filesystem-0:6.12.0-1.fc4 100% | 237.6 KiB/s | 10.5 KiB | 00m00s [ 91/328] qt6-qtbase-common-0:6.12.0-1. 100% | 278.9 KiB/s | 11.2 KiB | 00m00s [ 92/328] cups-libs-1:2.4.19-4.fc45.x86 100% | 6.3 MiB/s | 270.4 KiB | 00m00s [ 93/328] libICE-0:1.1.2-5.fc45.x86_64 100% | 1.8 MiB/s | 79.9 KiB | 00m00s [ 94/328] libSM-0:1.2.5-5.fc45.x86_64 100% | 1.1 MiB/s | 44.5 KiB | 00m00s [ 95/328] libX11-xcb-0:1.8.13-3.fc46.x8 100% | 271.0 KiB/s | 10.8 KiB | 00m00s [ 96/328] libdrm-0:2.4.134-2.fc45.x86_6 100% | 3.8 MiB/s | 166.7 KiB | 00m00s [ 97/328] libglvnd-egl-1:1.7.0-10.fc45. 100% | 925.2 KiB/s | 37.0 KiB | 00m00s [ 98/328] libglvnd-glx-1:1.7.0-10.fc45. 100% | 3.2 MiB/s | 129.7 KiB | 00m00s [ 99/328] libglvnd-opengl-1:1.7.0-10.fc 100% | 891.3 KiB/s | 37.4 KiB | 00m00s [100/328] libinput-0:1.32.0-1.fc46.x86_ 100% | 6.6 MiB/s | 282.3 KiB | 00m00s [101/328] libwayland-client-0:1.26.0-3. 100% | 887.0 KiB/s | 35.5 KiB | 00m00s [102/328] libwayland-cursor-0:1.26.0-3. 100% | 460.5 KiB/s | 19.3 KiB | 00m00s [103/328] libwayland-egl-0:1.26.0-3.fc4 100% | 311.6 KiB/s | 12.5 KiB | 00m00s [104/328] libxkbcommon-0:1.13.1-4.fc46. 100% | 4.4 MiB/s | 184.8 KiB | 00m00s [105/328] libxkbcommon-x11-0:1.13.1-4.f 100% | 542.6 KiB/s | 22.8 KiB | 00m00s [106/328] mesa-libgbm-0:26.3.1-1.fc46.x 100% | 539.5 KiB/s | 21.6 KiB | 00m00s [107/328] mtdev-0:1.1.6-13.fc45.x86_64 100% | 525.2 KiB/s | 21.0 KiB | 00m00s [108/328] tslib-0:1.24-3.fc45.x86_64 100% | 3.6 MiB/s | 158.3 KiB | 00m00s [109/328] xcb-util-cursor-0:0.1.6-3.fc4 100% | 471.5 KiB/s | 18.9 KiB | 00m00s [110/328] xcb-util-image-0:0.4.1-10.fc4 100% | 483.3 KiB/s | 18.8 KiB | 00m00s [111/328] xcb-util-keysyms-0:0.4.1-10.f 100% | 336.6 KiB/s | 14.1 KiB | 00m00s [112/328] xcb-util-renderutil-0:0.3.10- 100% | 435.1 KiB/s | 17.4 KiB | 00m00s [113/328] xcb-util-wm-0:0.4.2-10.fc45.x 100% | 765.9 KiB/s | 30.6 KiB | 00m00s [114/328] bluez-libs-0:5.88-2.fc46.x86_ 100% | 2.0 MiB/s | 85.3 KiB | 00m00s [115/328] gstreamer1-0:1.28.9-1.fc46.x8 100% | 34.0 MiB/s | 1.7 MiB | 00m00s [116/328] gstreamer1-plugins-bad-free-l 100% | 21.1 MiB/s | 1.2 MiB | 00m00s [117/328] libXrandr-0:1.5.4-8.fc45.x86_ 100% | 692.7 KiB/s | 27.7 KiB | 00m00s [118/328] gstreamer1-plugins-base-0:1.2 100% | 42.9 MiB/s | 2.4 MiB | 00m00s [119/328] libavcodec-free-0:9.0.2-5.fc4 100% | 74.1 MiB/s | 5.3 MiB | 00m00s [120/328] libavformat-free-0:9.0.2-5.fc 100% | 26.4 MiB/s | 1.3 MiB | 00m00s [121/328] libavutil-free-0:9.0.2-5.fc46 100% | 8.4 MiB/s | 384.9 KiB | 00m00s [122/328] libswresample-free-0:9.0.2-5. 100% | 1.7 MiB/s | 71.3 KiB | 00m00s [123/328] libswscale-free-0:9.0.2-5.fc4 100% | 8.2 MiB/s | 352.7 KiB | 00m00s [124/328] libva-0:2.24.1-2.fc45.x86_64 100% | 2.6 MiB/s | 122.8 KiB | 00m00s [125/328] pulseaudio-libs-0:17.0-11.fc4 100% | 15.6 MiB/s | 703.6 KiB | 00m00s [126/328] openxr-libs-0:1.1.65-1.fc46.x 100% | 2.7 MiB/s | 116.9 KiB | 00m00s [127/328] assimp-0:6.0.6-1.fc46.x86_64 100% | 46.8 MiB/s | 2.5 MiB | 00m00s [128/328] qt6-qtquicktimeline-0:6.12.0- 100% | 2.3 MiB/s | 95.1 KiB | 00m00s [129/328] qt6-qttools-common-0:6.12.0-1 100% | 271.6 KiB/s | 11.4 KiB | 00m00s [130/328] alsa-lib-0:1.2.16.1-2.fc45.x8 100% | 12.9 MiB/s | 566.8 KiB | 00m00s [131/328] libXcomposite-0:0.4.6-8.fc45. 100% | 600.0 KiB/s | 24.0 KiB | 00m00s [132/328] libXdamage-0:1.1.6-8.fc45.x86 100% | 551.1 KiB/s | 23.1 KiB | 00m00s [133/328] libXfixes-0:6.0.1-8.fc45.x86_ 100% | 477.9 KiB/s | 19.1 KiB | 00m00s [134/328] libXtst-0:1.2.5-5.fc45.x86_64 100% | 523.0 KiB/s | 20.9 KiB | 00m00s [135/328] libxkbfile-0:1.1.3-6.fc45.x86 100% | 2.2 MiB/s | 93.2 KiB | 00m00s [136/328] libxslt-0:1.1.43-10.fc46.x86_ 100% | 4.6 MiB/s | 191.6 KiB | 00m00s [137/328] minizip-ng-compat-0:4.1.0-5.f 100% | 1.5 MiB/s | 62.8 KiB | 00m00s [138/328] noopenh264-0:2.6.0-5.fc45.x86 100% | 515.4 KiB/s | 21.6 KiB | 00m00s [139/328] nss-util-0:3.134.0-1.fc46.x86 100% | 2.2 MiB/s | 91.2 KiB | 00m00s [140/328] opus-0:1.6-3.fc45.x86_64 100% | 5.7 MiB/s | 254.6 KiB | 00m00s [141/328] re2-2:20251105-23.fc46.x86_64 100% | 5.7 MiB/s | 243.9 KiB | 00m00s [142/328] pipewire-libs-0:1.6.12-1.fc46 100% | 45.9 MiB/s | 2.7 MiB | 00m00s [143/328] snappy-0:1.2.2-6.fc45.x86_64 100% | 1.0 MiB/s | 43.2 KiB | 00m00s [144/328] default-fonts-core-sans-0:4.3 100% | 727.7 KiB/s | 29.1 KiB | 00m00s [145/328] fonts-filesystem-1:5.0.0-4.fc 100% | 206.4 KiB/s | 8.7 KiB | 00m00s [146/328] xml-common-0:0.6.3-70.fc46.no 100% | 776.2 KiB/s | 31.0 KiB | 00m00s [147/328] libX11-common-0:1.8.13-3.fc46 100% | 4.2 MiB/s | 175.2 KiB | 00m00s [148/328] libXau-0:1.0.12-5.fc45.x86_64 100% | 798.7 KiB/s | 33.5 KiB | 00m00s [149/328] graphite2-0:1.3.14-22.fc45.x8 100% | 2.3 MiB/s | 94.8 KiB | 00m00s [150/328] gpgme-0:2.3.1-1.fc46.x86_64 100% | 5.6 MiB/s | 233.8 KiB | 00m00s [151/328] jbigkit-libs-0:2.1-34.fc45.x8 100% | 1.3 MiB/s | 54.1 KiB | 00m00s [152/328] liblerc-0:4.3.0-1.fc46.x86_64 100% | 5.4 MiB/s | 230.8 KiB | 00m00s [153/328] nss-softokn-0:3.134.0-1.fc46. 100% | 10.3 MiB/s | 453.4 KiB | 00m00s [154/328] nss-sysinit-0:3.134.0-1.fc46. 100% | 485.8 KiB/s | 20.4 KiB | 00m00s [155/328] cmake-filesystem-0:4.4.3-1.fc 100% | 386.4 KiB/s | 15.1 KiB | 00m00s [156/328] libmng-0:2.0.3-26.fc45.x86_64 100% | 4.6 MiB/s | 193.6 KiB | 00m00s [157/328] duktape-0:2.7.0-12.fc45.x86_6 100% | 3.9 MiB/s | 169.0 KiB | 00m00s [158/328] spirv-tools-libs-0:2026.4-1.f 100% | 35.0 MiB/s | 1.9 MiB | 00m00s [159/328] avahi-libs-0:0.9~rc2-9.fc45.x 100% | 1.7 MiB/s | 71.1 KiB | 00m00s [160/328] cups-filesystem-1:2.4.19-4.fc 100% | 304.6 KiB/s | 12.2 KiB | 00m00s [161/328] libpciaccess-0:0.16-18.fc45.x 100% | 646.7 KiB/s | 27.2 KiB | 00m00s [162/328] libglvnd-1:1.7.0-10.fc45.x86_ 100% | 2.7 MiB/s | 114.0 KiB | 00m00s [163/328] mesa-libEGL-0:26.3.1-1.fc46.x 100% | 3.5 MiB/s | 148.4 KiB | 00m00s [164/328] mesa-libGL-0:26.3.1-1.fc46.x8 100% | 3.4 MiB/s | 149.5 KiB | 00m00s [165/328] libevdev-0:1.14.0-1.fc46.x86_ 100% | 980.6 KiB/s | 39.2 KiB | 00m00s [166/328] libwacom-0:2.20.0-1.fc46.x86_ 100% | 1.3 MiB/s | 52.5 KiB | 00m00s [167/328] xkeyboard-config-0:2.49-1.fc4 100% | 20.7 MiB/s | 1.0 MiB | 00m00s [168/328] sdl2-compat-0:2.32.74-1.fc46. 100% | 3.4 MiB/s | 141.2 KiB | 00m00s [169/328] xcb-util-0:0.4.1-10.fc45.x86_ 100% | 447.9 KiB/s | 17.9 KiB | 00m00s [170/328] libnice-0:0.1.23-3.fc45.x86_6 100% | 4.9 MiB/s | 206.2 KiB | 00m00s [171/328] vulkan-loader-0:1.4.363.0-1.f 100% | 4.3 MiB/s | 193.4 KiB | 00m00s [172/328] cdparanoia-libs-0:10.2-51.fc4 100% | 1.4 MiB/s | 55.4 KiB | 00m00s [173/328] graphene-0:1.10.8-6.fc45.x86_ 100% | 1.5 MiB/s | 60.8 KiB | 00m00s [174/328] libXi-0:1.8.4-1.fc46.x86_64 100% | 1.0 MiB/s | 42.2 KiB | 00m00s [175/328] iso-codes-0:4.20.1-4.fc45.noa 100% | 61.8 MiB/s | 4.0 MiB | 00m00s [176/328] libXv-0:1.0.13-5.fc45.x86_64 100% | 462.3 KiB/s | 18.5 KiB | 00m00s [177/328] libgudev-0:238-10.fc45.x86_64 100% | 872.8 KiB/s | 34.9 KiB | 00m00s [178/328] libogg-2:1.3.6-4.fc45.x86_64 100% | 803.4 KiB/s | 33.7 KiB | 00m00s [179/328] libtheora-1:1.1.1-42.fc45.x86 100% | 4.0 MiB/s | 169.2 KiB | 00m00s [180/328] libvisual-1:0.4.2-4.fc44.x86_ 100% | 3.8 MiB/s | 158.5 KiB | 00m00s [181/328] libvorbis-1:1.3.7-21.fc45.x86 100% | 4.2 MiB/s | 190.9 KiB | 00m00s [182/328] orc-0:0.4.41-4.fc45.x86_64 100% | 5.3 MiB/s | 224.0 KiB | 00m00s [183/328] pango-0:1.58.2-1.fc45.x86_64 100% | 8.6 MiB/s | 368.6 KiB | 00m00s [184/328] aribb24-0:1.0.3^20160216git5e 100% | 975.9 KiB/s | 41.0 KiB | 00m00s [185/328] codec2-0:1.2.0-10.fc45.x86_64 100% | 14.3 MiB/s | 643.4 KiB | 00m00s [186/328] fdk-aac-free-0:2.0.3-3.fc45.x 100% | 8.1 MiB/s | 349.1 KiB | 00m00s [187/328] gsm-0:1.0.24-3.fc45.x86_64 100% | 859.4 KiB/s | 36.1 KiB | 00m00s [188/328] ilbc-0:3.0.4-22.fc46.x86_64 100% | 1.4 MiB/s | 57.3 KiB | 00m00s [189/328] lame-libs-0:4.0-1.fc46.x86_64 100% | 6.4 MiB/s | 276.4 KiB | 00m00s [190/328] libaribcaption-0:1.1.1-5.fc45 100% | 2.8 MiB/s | 117.0 KiB | 00m00s [191/328] libaom-0:3.15.3-1.fc46.x86_64 100% | 32.0 MiB/s | 1.9 MiB | 00m00s [192/328] libdav1d-0:1.5.5-1.fc46.x86_6 100% | 14.8 MiB/s | 665.4 KiB | 00m00s [193/328] libjxl-1:0.11.2-3.fc46.x86_64 100% | 25.9 MiB/s | 1.2 MiB | 00m00s [194/328] liblc3-0:1.1.3-9.fc45.x86_64 100% | 2.4 MiB/s | 105.9 KiB | 00m00s [195/328] librsvg2-0:2.63.4-1.fc46.x86_ 100% | 37.8 MiB/s | 1.9 MiB | 00m00s [196/328] libvpl-1:2.17.0-2.fc45.x86_64 100% | 3.9 MiB/s | 165.4 KiB | 00m00s [197/328] libvpx-0:1.17.0-1.fc46.x86_64 100% | 24.2 MiB/s | 1.2 MiB | 00m00s [198/328] openapv-libs-0:1.1.3.0-1.fc46 100% | 1.9 MiB/s | 79.1 KiB | 00m00s [199/328] opencore-amr-0:0.1.6-11.fc45. 100% | 4.4 MiB/s | 182.7 KiB | 00m00s [200/328] rav1e-libs-0:0.8.1-5.fc46.x86 100% | 21.7 MiB/s | 1.0 MiB | 00m00s [201/328] speex-0:1.2.0-22.fc45.x86_64 100% | 1.7 MiB/s | 71.6 KiB | 00m00s [202/328] svt-av1-libs-0:3.1.2-3.fc45.x 100% | 38.9 MiB/s | 2.0 MiB | 00m00s [203/328] vo-amrwbenc-0:0.1.3-25.fc45.x 100% | 2.1 MiB/s | 84.9 KiB | 00m00s [204/328] twolame-libs-0:0.4.0-10.fc45. 100% | 1.5 MiB/s | 68.2 KiB | 00m00s [205/328] xevd-libs-0:0.8.0-1.fc46.x86_ 100% | 4.2 MiB/s | 176.7 KiB | 00m00s [206/328] xeve-libs-0:0.7.1-1.fc46.x86_ 100% | 6.9 MiB/s | 289.0 KiB | 00m00s [207/328] xvidcore-0:1.3.7-20.fc45.x86_ 100% | 5.9 MiB/s | 267.4 KiB | 00m00s [208/328] zvbi-0:0.2.46-1.fc46.x86_64 100% | 10.3 MiB/s | 443.0 KiB | 00m00s [209/328] game-music-emu-0:0.6.5-2.fc45 100% | 4.1 MiB/s | 172.0 KiB | 00m00s [210/328] libbluray-0:1.4.0-5.fc46.x86_ 100% | 3.4 MiB/s | 149.4 KiB | 00m00s [211/328] libchromaprint-0:1.6.2-1.fc46 100% | 1.1 MiB/s | 44.8 KiB | 00m00s [212/328] libdvdnav-0:7.0.0-2.fc45.x86_ 100% | 1.4 MiB/s | 58.8 KiB | 00m00s [213/328] libdvdread-0:7.1.1-1.fc45.x86 100% | 2.1 MiB/s | 92.0 KiB | 00m00s [214/328] libmodplug-1:0.8.9.2-1.fc46.x 100% | 4.4 MiB/s | 185.1 KiB | 00m00s [215/328] libopenmpt-0:0.8.10-2.fc46.x8 100% | 17.6 MiB/s | 810.4 KiB | 00m00s [216/328] librabbitmq-0:0.18.1-1.fc46.x 100% | 1.0 MiB/s | 44.6 KiB | 00m00s [217/328] librist-0:0.2.11-2.fc45.x86_6 100% | 2.1 MiB/s | 87.7 KiB | 00m00s [218/328] libsmbclient-2:4.25.1-1.fc46. 100% | 2.0 MiB/s | 81.7 KiB | 00m00s [219/328] srt-libs-0:1.5.7-1.fc46.x86_6 100% | 9.3 MiB/s | 428.8 KiB | 00m00s [220/328] zeromq-0:4.3.5-26.fc46.x86_64 100% | 11.3 MiB/s | 497.1 KiB | 00m00s [221/328] libvdpau-0:1.5-12.fc45.x86_64 100% | 408.3 KiB/s | 16.3 KiB | 00m00s [222/328] soxr-0:0.1.3-23.fc46.x86_64 100% | 2.0 MiB/s | 87.6 KiB | 00m00s [223/328] mesa-filesystem-0:26.3.1-1.fc 100% | 389.5 KiB/s | 15.6 KiB | 00m00s [224/328] libasyncns-0:0.8-35.fc45.x86_ 100% | 760.4 KiB/s | 30.4 KiB | 00m00s [225/328] libsndfile-0:1.2.2-12.fc45.x8 100% | 5.1 MiB/s | 223.8 KiB | 00m00s [226/328] poly2tri-0:0.0^20240130.a9220 100% | 805.3 KiB/s | 32.2 KiB | 00m00s [227/328] pugixml-0:1.16-2.fc45.x86_64 100% | 2.8 MiB/s | 114.9 KiB | 00m00s [228/328] jsoncpp-0:1.9.6-3.fc44.x86_64 100% | 2.6 MiB/s | 110.0 KiB | 00m00s [229/328] fftw-libs-single-0:3.3.10-19. 100% | 25.9 MiB/s | 1.2 MiB | 00m00s [230/328] libebur128-0:1.2.6-16.fc45.x8 100% | 633.9 KiB/s | 25.4 KiB | 00m00s [231/328] libldac-0:2.0.2.6-1.fc45.x86_ 100% | 1.0 MiB/s | 43.2 KiB | 00m00s [232/328] libsbc-0:2.2-1.fc46.x86_64 100% | 1.2 MiB/s | 49.5 KiB | 00m00s [233/328] spandsp-0:0.0.6-23.fc45.x86_6 100% | 7.8 MiB/s | 334.6 KiB | 00m00s [234/328] webrtc-audio-processing-0:2.1 100% | 9.6 MiB/s | 440.3 KiB | 00m00s [235/328] abseil-cpp-0:20260817.0-1.fc4 100% | 18.0 MiB/s | 830.3 KiB | 00m00s [236/328] google-noto-sans-vf-fonts-0:2 100% | 13.6 MiB/s | 614.2 KiB | 00m00s [237/328] nss-softokn-freebl-0:3.134.0- 100% | 8.5 MiB/s | 390.7 KiB | 00m00s [238/328] hwdata-0:0.413-1.fc46.noarch 100% | 34.4 MiB/s | 1.7 MiB | 00m00s [239/328] libXxf86vm-0:1.1.6-5.fc45.x86 100% | 428.2 KiB/s | 18.0 KiB | 00m00s [240/328] SDL3-0:3.4.20-1.fc46.x86_64 100% | 24.8 MiB/s | 1.2 MiB | 00m00s [241/328] libwacom-data-0:2.20.0-1.fc46 100% | 4.6 MiB/s | 349.7 KiB | 00m00s [242/328] mesa-dri-drivers-0:26.3.1-1.f 100% | 105.9 MiB/s | 14.1 MiB | 00m00s [243/328] gupnp-igd-0:1.6.0-15.fc45.x86 100% | 803.5 KiB/s | 33.7 KiB | 00m00s [244/328] fribidi-0:1.0.18-1.fc46.x86_6 100% | 2.6 MiB/s | 105.0 KiB | 00m00s [245/328] libXft-0:2.3.8-11.fc45.x86_64 100% | 1.6 MiB/s | 73.7 KiB | 00m00s [246/328] libthai-0:0.1.30-3.fc45.x86_6 100% | 4.7 MiB/s | 216.1 KiB | 00m00s [247/328] lpcnetfreedv-0:0.5-11.fc45.x8 100% | 89.4 MiB/s | 7.3 MiB | 00m00s [248/328] mpg123-libs-0:1.33.6-3.fc45.x 100% | 5.5 MiB/s | 363.8 KiB | 00m00s [249/328] libvmaf-0:3.2.1-1.fc46.x86_64 100% | 7.0 MiB/s | 316.9 KiB | 00m00s [250/328] highway-0:1.3.0-3.fc45.x86_64 100% | 15.6 MiB/s | 705.1 KiB | 00m00s [251/328] cairo-gobject-0:1.18.6-1.fc46 100% | 379.3 KiB/s | 16.7 KiB | 00m00s [252/328] gdk-pixbuf2-0:2.44.8-3.fc46.x 100% | 11.1 MiB/s | 509.8 KiB | 00m00s [253/328] libudfread-0:1.2.0-4.fc45.x86 100% | 860.8 KiB/s | 34.4 KiB | 00m00s [254/328] cjson-0:1.7.19-2.fc45.x86_64 100% | 814.0 KiB/s | 32.6 KiB | 00m00s [255/328] nettle3.10-0:3.10.1-7.fc45.x8 100% | 7.7 MiB/s | 352.8 KiB | 00m00s [256/328] libtalloc-0:2.5.0-4.fc46.x86_ 100% | 906.9 KiB/s | 36.3 KiB | 00m00s [257/328] libtevent-0:0.17.2-2.fc46.x86 100% | 1.3 MiB/s | 53.2 KiB | 00m00s [258/328] samba-client-libs-2:4.25.1-1. 100% | 52.7 MiB/s | 3.3 MiB | 00m00s [259/328] samba-common-2:4.25.1-1.fc46. 100% | 4.4 MiB/s | 184.4 KiB | 00m00s [260/328] samba-core-libs-2:4.25.1-1.fc 100% | 11.4 MiB/s | 513.5 KiB | 00m00s [261/328] samba-ndr-libs-2:4.25.1-1.fc4 100% | 25.4 MiB/s | 1.3 MiB | 00m00s [262/328] libsodium-0:1.0.22-2.fc45.x86 100% | 4.9 MiB/s | 209.8 KiB | 00m00s [263/328] openpgm-0:5.3.128-7.fc45.x86_ 100% | 4.4 MiB/s | 184.3 KiB | 00m00s [264/328] flac-libs-0:1.5.0-9.fc45.x86_ 100% | 5.3 MiB/s | 220.8 KiB | 00m00s [265/328] google-noto-fonts-common-0:20 100% | 404.1 KiB/s | 17.0 KiB | 00m00s [266/328] libxshmfence-0:1.3.2-9.fc45.x 100% | 335.6 KiB/s | 13.1 KiB | 00m00s [267/328] libdecor-0:0.2.5-3.fc45.x86_6 100% | 1.4 MiB/s | 59.9 KiB | 00m00s [268/328] gssdp-0:1.6.6-3.fc45.x86_64 100% | 1.4 MiB/s | 60.5 KiB | 00m00s [269/328] gupnp-0:1.6.10-4.fc46.x86_64 100% | 2.5 MiB/s | 109.4 KiB | 00m00s [270/328] libdatrie-0:0.2.14-3.fc45.x86 100% | 782.6 KiB/s | 32.9 KiB | 00m00s [271/328] glycin-libs-0:2.2.6-1.fc46.x8 100% | 32.2 MiB/s | 1.8 MiB | 00m00s [272/328] llvm-libs-0:23.1.6-1.fc46.x86 100% | 131.6 MiB/s | 36.2 MiB | 00m00s [273/328] lm_sensors-libs-0:3.6.0-25.fc 100% | 150.6 KiB/s | 41.4 KiB | 00m00s [274/328] libldb-2:4.25.1-1.fc46.x86_64 100% | 4.1 MiB/s | 198.8 KiB | 00m00s [275/328] libtdb-0:1.4.15-4.fc45.x86_64 100% | 1.4 MiB/s | 56.8 KiB | 00m00s [276/328] libwbclient-2:4.25.1-1.fc46.x 100% | 1.2 MiB/s | 48.5 KiB | 00m00s [277/328] ngtcp2-crypto-gnutls-0:1.22.1 100% | 589.1 KiB/s | 24.7 KiB | 00m00s [278/328] libedit-0:3.1-60.20260512cvs. 100% | 2.6 MiB/s | 110.0 KiB | 00m00s [279/328] llvm-filesystem-0:23.1.6-1.fc 100% | 346.2 KiB/s | 14.2 KiB | 00m00s [280/328] gtk3-0:3.24.52-6.fc45.x86_64 100% | 77.8 MiB/s | 6.1 MiB | 00m00s [281/328] libsoup3-0:3.8.1-1.fc46.x86_6 100% | 9.6 MiB/s | 423.3 KiB | 00m00s [282/328] dbus-1:1.16.4-2.fc46.x86_64 100% | 185.5 KiB/s | 8.0 KiB | 00m00s [283/328] libseccomp-0:2.6.1-3.fc45.x86 100% | 1.8 MiB/s | 75.6 KiB | 00m00s [284/328] lmdb-libs-0:0.9.34-3.fc45.x86 100% | 1.5 MiB/s | 63.3 KiB | 00m00s [285/328] glycin-loaders-0:2.2.6-1.fc46 100% | 53.9 MiB/s | 3.4 MiB | 00m00s [286/328] adwaita-icon-theme-0:51.0-1.f 100% | 9.1 MiB/s | 399.9 KiB | 00m00s [287/328] at-spi2-atk-0:2.62.2-1.fc46.x 100% | 2.0 MiB/s | 89.7 KiB | 00m00s [288/328] atk-0:2.62.2-1.fc46.x86_64 100% | 1.9 MiB/s | 83.1 KiB | 00m00s [289/328] colord-libs-0:1.4.8-5.fc45.x8 100% | 5.5 MiB/s | 234.6 KiB | 00m00s [290/328] gtk-update-icon-cache-0:3.24. 100% | 817.3 KiB/s | 34.3 KiB | 00m00s [291/328] hicolor-icon-theme-0:0.18-6.f 100% | 1.5 MiB/s | 65.8 KiB | 00m00s [292/328] libXcursor-0:1.2.3-5.fc45.x86 100% | 805.1 KiB/s | 32.2 KiB | 00m00s [293/328] libXinerama-0:1.1.5-11.fc45.x 100% | 363.2 KiB/s | 14.2 KiB | 00m00s [294/328] libcloudproviders-0:0.4.2-1.f 100% | 1.1 MiB/s | 47.4 KiB | 00m00s [295/328] libepoxy-0:1.5.10-13.fc45.x86 100% | 5.3 MiB/s | 229.9 KiB | 00m00s [296/328] libtinysparql-0:3.12.0-1.fc46 100% | 8.0 MiB/s | 361.4 KiB | 00m00s [297/328] glib-networking-0:2.90.1-1.fc 100% | 4.9 MiB/s | 215.0 KiB | 00m00s [298/328] bubblewrap-0:0.13.1-1.fc46.x8 100% | 1.7 MiB/s | 67.8 KiB | 00m00s [299/328] libheif-0:1.23.7-1.fc46.x86_6 100% | 18.9 MiB/s | 871.2 KiB | 00m00s [300/328] adwaita-cursor-theme-0:51.0-1 100% | 8.3 MiB/s | 380.2 KiB | 00m00s [301/328] adwaita-icon-theme-legacy-0:4 100% | 44.3 MiB/s | 2.5 MiB | 00m00s [302/328] at-spi2-core-0:2.62.2-1.fc46. 100% | 7.8 MiB/s | 401.4 KiB | 00m00s [303/328] libgusb-0:0.4.9-6.fc45.x86_64 100% | 1.5 MiB/s | 64.7 KiB | 00m00s [304/328] avahi-glib-0:0.9~rc2-9.fc45.x 100% | 379.2 KiB/s | 15.2 KiB | 00m00s [305/328] json-glib-0:1.10.8-11.fc45.x8 100% | 4.2 MiB/s | 176.1 KiB | 00m00s [306/328] libopenjph-0:0.32.0-1.fc46.x8 100% | 4.1 MiB/s | 184.8 KiB | 00m00s [307/328] xprop-0:1.2.8-6.fc45.x86_64 100% | 882.4 KiB/s | 35.3 KiB | 00m00s [308/328] glx-utils-0:9.0.0-12.fc45.x86 100% | 1.7 MiB/s | 69.9 KiB | 00m00s [309/328] python3-0:3.15.2-1.fc46.x86_6 100% | 663.0 KiB/s | 27.8 KiB | 00m00s [310/328] gsettings-desktop-schemas-0:5 100% | 19.9 MiB/s | 938.7 KiB | 00m00s [311/328] dbus-broker-0:37-9.fc45.x86_6 100% | 3.6 MiB/s | 179.0 KiB | 00m00s [312/328] systemd-0:262.2-7.fc46.x86_64 100% | 55.9 MiB/s | 4.3 MiB | 00m00s [313/328] systemd-shared-0:262.2-7.fc46 100% | 41.4 MiB/s | 2.3 MiB | 00m00s [314/328] systemd-tools-0:262.2-7.fc46. 100% | 13.7 MiB/s | 645.7 KiB | 00m00s [315/328] dbus-common-1:1.16.4-2.fc46.n 100% | 367.2 KiB/s | 14.7 KiB | 00m00s [316/328] systemd-rpm-macros-0:262.2-7. 100% | 542.5 KiB/s | 21.7 KiB | 00m00s [317/328] pyproject-rpm-macros-0:1.24.0 100% | 1.3 MiB/s | 58.0 KiB | 00m00s [318/328] python-rpm-macros-0:3.15-2.fc 100% | 494.3 KiB/s | 19.8 KiB | 00m00s [319/328] python3-rpm-generators-0:14-3 100% | 720.8 KiB/s | 28.8 KiB | 00m00s [320/328] python3-rpm-macros-0:3.15-2.f 100% | 291.2 KiB/s | 12.2 KiB | 00m00s [321/328] authselect-libs-0:1.8.0-1.fc4 100% | 6.2 MiB/s | 260.9 KiB | 00m00s [322/328] pam-0:1.7.2-4.fc45.x86_64 100% | 12.4 MiB/s | 559.9 KiB | 00m00s [323/328] libnsl2-0:2.0.1-6.fc45.x86_64 100% | 744.9 KiB/s | 29.8 KiB | 00m00s [324/328] authselect-0:1.8.0-1.fc46.x86 100% | 5.0 MiB/s | 227.1 KiB | 00m00s [325/328] libpwquality-0:1.4.5-18.fc45. 100% | 2.8 MiB/s | 118.4 KiB | 00m00s [326/328] libtirpc-0:1.3.8-0.rc1.fc46.x 100% | 2.4 MiB/s | 99.1 KiB | 00m00s [327/328] cracklib-0:2.10.3-2.fc45.x86_ 100% | 2.2 MiB/s | 96.6 KiB | 00m00s [328/328] gdbm-1:1.26-1.fc46.x86_64 100% | 4.1 MiB/s | 173.7 KiB | 00m00s -------------------------------------------------------------------------------- [328/328] Total 100% | 60.8 MiB/s | 373.1 MiB | 00m06s Running transaction [ 1/330] Verify package files 100% | 256.0 B/s | 328.0 B | 00m01s [ 2/330] Prepare transaction 100% | 3.0 KiB/s | 328.0 B | 00m00s [ 3/330] Installing glib2-0:2.90.1-1.f 100% | 280.1 MiB/s | 15.7 MiB | 00m00s [ 4/330] Installing libjpeg-turbo-0:3. 100% | 402.1 MiB/s | 823.6 KiB | 00m00s [ 5/330] Installing libpng-2:1.6.59-1. 100% | 248.9 MiB/s | 254.9 KiB | 00m00s [ 6/330] Installing libwayland-client- 100% | 0.0 B/s | 67.2 KiB | 00m00s [ 7/330] Installing dbus-libs-1:1.16.4 100% | 350.2 MiB/s | 358.6 KiB | 00m00s [ 8/330] Installing expat-0:2.9.0-1.fc 100% | 20.2 MiB/s | 351.7 KiB | 00m00s [ 9/330] Installing nspr-0:4.41.0-1.fc 100% | 321.2 MiB/s | 329.0 KiB | 00m00s [ 10/330] Installing libtalloc-0:2.5.0- 100% | 0.0 B/s | 65.1 KiB | 00m00s [ 11/330] Installing libogg-2:1.3.6-4.f 100% | 0.0 B/s | 51.0 KiB | 00m00s [ 12/330] Installing libX11-xcb-0:1.8.1 100% | 0.0 B/s | 11.7 KiB | 00m00s [ 13/330] Installing libicu-0:78.3-9.fc 100% | 425.2 MiB/s | 37.8 MiB | 00m00s [ 14/330] Installing libwebp-0:1.6.0-4. 100% | 316.5 MiB/s | 972.2 KiB | 00m00s [ 15/330] Installing lcms2-0:2.16-8.fc4 100% | 218.5 MiB/s | 447.4 KiB | 00m00s [ 16/330] Installing libtevent-0:0.17.2 100% | 104.1 MiB/s | 106.6 KiB | 00m00s [ 17/330] Installing nss-util-0:3.134.0 100% | 204.7 MiB/s | 209.6 KiB | 00m00s [ 18/330] Installing opus-0:1.6-3.fc45. 100% | 453.9 MiB/s | 464.8 KiB | 00m00s [ 19/330] Installing openjpeg-0:2.5.4-5 100% | 227.6 MiB/s | 466.2 KiB | 00m00s [ 20/330] Installing libvorbis-1:1.3.7- 100% | 409.9 MiB/s | 839.6 KiB | 00m00s [ 21/330] Installing avahi-libs-0:0.9~r 100% | 169.7 MiB/s | 173.8 KiB | 00m00s [ 22/330] Installing libwayland-cursor- 100% | 37.4 MiB/s | 38.3 KiB | 00m00s [ 23/330] Installing shared-mime-info-0 100% | 107.9 MiB/s | 3.2 MiB | 00m00s [ 24/330] Installing python-rpm-macros- 100% | 0.0 B/s | 28.9 KiB | 00m00s [ 25/330] Installing libtdb-0:1.4.15-4. 100% | 107.0 MiB/s | 109.5 KiB | 00m00s [ 26/330] Installing mpg123-libs-0:1.33 100% | 271.1 MiB/s | 832.8 KiB | 00m00s [ 27/330] Installing libdav1d-0:1.5.5-1 100% | 352.0 MiB/s | 1.8 MiB | 00m00s [ 28/330] Installing libglvnd-1:1.7.0-1 100% | 515.1 MiB/s | 527.4 KiB | 00m00s [ 29/330] Installing noopenh264-0:2.6.0 100% | 39.7 MiB/s | 40.6 KiB | 00m00s [ 30/330] Installing alsa-lib-0:1.2.16. 100% | 71.9 MiB/s | 1.5 MiB | 00m00s [ 31/330] Installing qt6-qttools-common 100% | 0.0 B/s | 7.9 KiB | 00m00s [ 32/330] Installing libwayland-egl-0:1 100% | 0.0 B/s | 13.4 KiB | 00m00s [ 33/330] Installing libglvnd-opengl-1: 100% | 142.1 MiB/s | 145.5 KiB | 00m00s [ 34/330] Installing lame-libs-0:4.0-1. 100% | 449.4 MiB/s | 920.3 KiB | 00m00s [ 35/330] Installing python3-rpm-macros 100% | 0.0 B/s | 6.8 KiB | 00m00s [ 36/330] Installing libtheora-1:1.1.1- 100% | 476.0 MiB/s | 487.4 KiB | 00m00s [ 37/330] Installing libgudev-0:238-10. 100% | 87.1 MiB/s | 89.2 KiB | 00m00s [ 38/330] Installing json-glib-0:1.10.8 100% | 148.5 MiB/s | 608.3 KiB | 00m00s [ 39/330] Installing libtirpc-0:1.3.8-0 100% | 205.4 MiB/s | 210.3 KiB | 00m00s [ 40/330] Installing systemd-shared-0:2 100% | 390.1 MiB/s | 6.2 MiB | 00m00s [ 41/330] Installing libseccomp-0:2.6.1 100% | 43.8 MiB/s | 224.0 KiB | 00m00s [ 42/330] Installing libwbclient-2:4.25 100% | 70.1 MiB/s | 71.7 KiB | 00m00s [ 43/330] Installing nettle3.10-0:3.10. 100% | 235.7 MiB/s | 724.1 KiB | 00m00s [ 44/330] Installing fribidi-0:1.0.18-1 100% | 21.1 MiB/s | 409.9 KiB | 00m00s [ 45/330] Installing abseil-cpp-0:20260 100% | 265.2 MiB/s | 2.7 MiB | 00m00s [ 46/330] Installing mesa-filesystem-0: 100% | 0.0 B/s | 4.3 KiB | 00m00s [ 47/330] Installing libdvdread-0:7.1.1 100% | 201.1 MiB/s | 205.9 KiB | 00m00s [ 48/330] Installing svt-av1-libs-0:3.1 100% | 400.5 MiB/s | 5.6 MiB | 00m00s [ 49/330] Installing rav1e-libs-0:0.8.1 100% | 433.7 MiB/s | 3.0 MiB | 00m00s [ 50/330] Installing libvpl-1:2.17.0-2. 100% | 212.7 MiB/s | 435.6 KiB | 00m00s [ 51/330] Installing liblc3-0:1.1.3-9.f 100% | 167.6 MiB/s | 171.7 KiB | 00m00s [ 52/330] Installing gsm-0:1.0.24-3.fc4 100% | 0.0 B/s | 67.3 KiB | 00m00s [ 53/330] Installing fdk-aac-free-0:2.0 100% | 307.5 MiB/s | 629.8 KiB | 00m00s [ 54/330] Installing libevdev-0:1.14.0- 100% | 85.0 MiB/s | 87.0 KiB | 00m00s [ 55/330] Installing spirv-tools-libs-0 100% | 341.9 MiB/s | 6.5 MiB | 00m00s [ 56/330] Installing xml-common-0:0.6.3 100% | 79.2 MiB/s | 81.1 KiB | 00m00s [ 57/330] Installing fonts-filesystem-1 100% | 0.0 B/s | 788.0 B | 00m00s [ 58/330] Installing snappy-0:1.2.2-6.f 100% | 79.6 MiB/s | 81.6 KiB | 00m00s [ 59/330] Installing bluez-libs-0:5.88- 100% | 198.7 MiB/s | 203.4 KiB | 00m00s [ 60/330] Installing mtdev-0:1.1.6-13.f 100% | 0.0 B/s | 30.3 KiB | 00m00s [ 61/330] Installing libICE-0:1.1.2-5.f 100% | 195.1 MiB/s | 199.8 KiB | 00m00s [ 62/330] Installing libstemmer-0:3.1.1 100% | 329.5 MiB/s | 674.9 KiB | 00m00s [ 63/330] Installing libSM-0:1.2.5-5.fc 100% | 49.9 MiB/s | 102.3 KiB | 00m00s [ 64/330] Installing iso-codes-0:4.20.1 100% | 341.4 MiB/s | 22.5 MiB | 00m00s [ 65/330] Installing libdvdnav-0:7.0.0- 100% | 123.6 MiB/s | 126.5 KiB | 00m00s [ 66/330] Installing re2-2:20251105-23. 100% | 289.0 MiB/s | 591.9 KiB | 00m00s [ 67/330] Installing webrtc-audio-proce 100% | 354.2 MiB/s | 1.1 MiB | 00m00s [ 68/330] Installing srt-libs-0:1.5.7-1 100% | 349.9 MiB/s | 1.0 MiB | 00m00s [ 69/330] Installing systemd-tools-0:26 100% | 36.7 MiB/s | 1.6 MiB | 00m00s >>> Running sysusers scriptlet: systemd-0:262.2-7.fc46.x86_64 >>> Finished sysusers scriptlet: systemd-0:262.2-7.fc46.x86_64 >>> Scriptlet output: >>> Creating group 'empower' with GID 999. >>> >>> Running sysusers scriptlet: systemd-0:262.2-7.fc46.x86_64 >>> Finished sysusers scriptlet: systemd-0:262.2-7.fc46.x86_64 >>> Scriptlet output: >>> Creating group 'systemd-journal' with GID 190. >>> >>> Running sysusers scriptlet: systemd-0:262.2-7.fc46.x86_64 >>> Finished sysusers scriptlet: systemd-0:262.2-7.fc46.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. >>> [ 70/330] Installing systemd-0:262.2-7. 100% | 102.9 MiB/s | 13.5 MiB | 00m00s >>> Running sysusers scriptlet: samba-common-2:4.25.1-1.fc46.noarch >>> Finished sysusers scriptlet: samba-common-2:4.25.1-1.fc46.noarch >>> Scriptlet output: >>> Creating group 'printadmin' with GID 997. >>> [ 71/330] Installing samba-common-2:4.2 100% | 29.4 MiB/s | 210.5 KiB | 00m00s [ 72/330] Installing samba-core-libs-2: 100% | 336.7 MiB/s | 1.7 MiB | 00m00s [ 73/330] Installing samba-ndr-libs-2:4 100% | 390.9 MiB/s | 4.7 MiB | 00m00s [ 74/330] Installing libnsl2-0:2.0.1-6. 100% | 57.5 MiB/s | 58.9 KiB | 00m00s [ 75/330] Installing libgusb-0:0.4.9-6. 100% | 159.8 MiB/s | 163.7 KiB | 00m00s [ 76/330] Installing colord-libs-0:1.4. 100% | 271.4 MiB/s | 833.6 KiB | 00m00s [ 77/330] Installing pyproject-rpm-macr 100% | 167.4 MiB/s | 171.5 KiB | 00m00s [ 78/330] Installing libopenmpt-0:0.8.1 100% | 374.8 MiB/s | 1.9 MiB | 00m00s [ 79/330] Installing libxmlb-0:0.3.30-1 100% | 16.0 MiB/s | 294.9 KiB | 00m00s [ 80/330] Installing avahi-glib-0:0.9~r 100% | 0.0 B/s | 20.3 KiB | 00m00s [ 81/330] Installing nss-softokn-freebl 100% | 358.2 MiB/s | 1.1 MiB | 00m00s [ 82/330] Installing nss-softokn-0:3.13 100% | 417.1 MiB/s | 2.1 MiB | 00m00s [ 83/330] Installing nss-0:3.134.0-1.fc 100% | 222.5 MiB/s | 2.0 MiB | 00m00s [ 84/330] Installing nss-sysinit-0:3.13 100% | 1.3 MiB/s | 23.1 KiB | 00m00s [ 85/330] Installing libmng-0:2.0.3-26. 100% | 271.6 MiB/s | 556.3 KiB | 00m00s [ 86/330] Installing flac-libs-0:1.5.0- 100% | 296.0 MiB/s | 606.2 KiB | 00m00s [ 87/330] Installing libsndfile-0:1.2.2 100% | 271.2 MiB/s | 555.4 KiB | 00m00s [ 88/330] Installing aribb24-0:1.0.3^20 100% | 82.4 MiB/s | 84.4 KiB | 00m00s [ 89/330] Installing zvbi-0:0.2.46-1.fc 100% | 41.8 MiB/s | 1.2 MiB | 00m00s [ 90/330] Installing qpdf-libs-0:12.4.2 100% | 381.9 MiB/s | 3.1 MiB | 00m00s [ 91/330] Installing graphene-0:1.10.8- 100% | 156.3 MiB/s | 160.1 KiB | 00m00s [ 92/330] Installing libcloudproviders- 100% | 127.1 MiB/s | 130.1 KiB | 00m00s [ 93/330] Installing gsettings-desktop- 100% | 478.5 MiB/s | 6.7 MiB | 00m00s [ 94/330] Installing gdbm-1:1.26-1.fc46 100% | 29.6 MiB/s | 575.4 KiB | 00m00s [ 95/330] Installing cracklib-0:2.10.3- 100% | 12.7 MiB/s | 246.7 KiB | 00m00s [ 96/330] Installing libpwquality-0:1.4 100% | 21.8 MiB/s | 425.1 KiB | 00m00s [ 97/330] Installing authselect-libs-0: 100% | 44.2 MiB/s | 950.4 KiB | 00m00s >>> Running %post scriptlet: authselect-libs-0:1.8.0-1.fc46.x86_64 >>> Finished %post scriptlet: authselect-libs-0:1.8.0-1.fc46.x86_64 >>> Scriptlet output: >>> Created symlink '/etc/systemd/system/multi-user.target.wants/authselect-apply-changes.service' → '/usr/lib/systemd/system/authselect-apply-changes.service'. >>> >>> Running sysusers scriptlet: dbus-common-1:1.16.4-2.fc46.noarch >>> Finished sysusers scriptlet: dbus-common-1:1.16.4-2.fc46.noarch >>> Scriptlet output: >>> Creating group 'dbus' with GID 81. >>> Creating user 'dbus' (System Message Bus) with UID 81 and GID 81. >>> [ 98/330] Installing dbus-common-1:1.16 100% | 797.1 KiB/s | 13.6 KiB | 00m00s >>> Running %post scriptlet: dbus-common-1:1.16.4-2.fc46.noarch >>> Finished %post scriptlet: dbus-common-1:1.16.4-2.fc46.noarch >>> Scriptlet output: >>> Created symlink '/etc/systemd/system/sockets.target.wants/dbus.socket' → '/usr/lib/systemd/system/dbus.socket'. >>> Created symlink '/etc/systemd/user/sockets.target.wants/dbus.socket' → '/usr/lib/systemd/user/dbus.socket'. >>> [ 99/330] Installing dbus-broker-0:37-9 100% | 12.5 MiB/s | 397.6 KiB | 00m00s >>> Running %post scriptlet: dbus-broker-0:37-9.fc45.x86_64 >>> Finished %post scriptlet: dbus-broker-0:37-9.fc45.x86_64 >>> Scriptlet output: >>> Created symlink '/etc/systemd/system/dbus.service' → '/usr/lib/systemd/system/dbus-broker.service'. >>> Created symlink '/etc/systemd/user/dbus.service' → '/usr/lib/systemd/user/dbus-broker.service'. >>> [100/330] Installing dbus-1:1.16.4-2.fc 100% | 0.0 B/s | 124.0 B | 00m00s [101/330] Installing libopenjph-0:0.32. 100% | 103.8 MiB/s | 531.6 KiB | 00m00s [102/330] Installing adwaita-icon-theme 100% | 83.1 MiB/s | 2.4 MiB | 00m00s [103/330] Installing adwaita-cursor-the 100% | 634.9 MiB/s | 11.4 MiB | 00m00s [104/330] Installing adwaita-icon-theme 100% | 71.9 MiB/s | 1.0 MiB | 00m00s [105/330] Installing bubblewrap-0:0.13. 100% | 8.2 MiB/s | 142.1 KiB | 00m00s [106/330] Installing libepoxy-0:1.5.10- 100% | 362.0 MiB/s | 1.1 MiB | 00m00s [107/330] Installing hicolor-icon-theme 100% | 25.1 MiB/s | 179.7 KiB | 00m00s [108/330] Installing lmdb-libs-0:0.9.34 100% | 108.7 MiB/s | 111.4 KiB | 00m00s [109/330] Installing libldb-2:4.25.1-1. 100% | 230.1 MiB/s | 471.2 KiB | 00m00s [110/330] Installing llvm-filesystem-0: 100% | 0.0 B/s | 1.1 KiB | 00m00s [111/330] Installing libedit-0:3.1-60.2 100% | 244.1 MiB/s | 250.0 KiB | 00m00s [112/330] Installing llvm-libs-0:23.1.6 100% | 465.5 MiB/s | 146.2 MiB | 00m00s [113/330] Installing ngtcp2-crypto-gnut 100% | 43.3 MiB/s | 44.4 KiB | 00m00s [114/330] Installing samba-client-libs- 100% | 392.9 MiB/s | 11.4 MiB | 00m00s [115/330] Installing libsmbclient-2:4.2 100% | 168.4 MiB/s | 172.5 KiB | 00m00s [116/330] Installing libdatrie-0:0.2.14 100% | 0.0 B/s | 58.8 KiB | 00m00s [117/330] Installing libthai-0:0.1.30-3 100% | 261.3 MiB/s | 802.7 KiB | 00m00s [118/330] Installing lm_sensors-libs-0: 100% | 0.0 B/s | 90.8 KiB | 00m00s [119/330] Installing libxshmfence-0:1.3 100% | 0.0 B/s | 13.4 KiB | 00m00s [120/330] Installing google-noto-fonts- 100% | 0.0 B/s | 18.5 KiB | 00m00s [121/330] Installing google-noto-sans-v 100% | 347.8 MiB/s | 1.4 MiB | 00m00s [122/330] Installing default-fonts-core 100% | 17.8 MiB/s | 18.2 KiB | 00m00s [123/330] Installing openpgm-0:5.3.128- 100% | 310.3 MiB/s | 317.7 KiB | 00m00s [124/330] Installing libsodium-0:1.0.22 100% | 235.6 MiB/s | 482.6 KiB | 00m00s [125/330] Installing zeromq-0:4.3.5-26. 100% | 47.3 MiB/s | 968.3 KiB | 00m00s [126/330] Installing cjson-0:1.7.19-2.f 100% | 0.0 B/s | 65.2 KiB | 00m00s [127/330] Installing librist-0:0.2.11-2 100% | 179.3 MiB/s | 183.6 KiB | 00m00s [128/330] Installing libudfread-0:1.2.0 100% | 0.0 B/s | 63.4 KiB | 00m00s [129/330] Installing highway-0:1.3.0-3. 100% | 561.7 MiB/s | 5.6 MiB | 00m00s [130/330] Installing libjxl-1:0.11.2-3. 100% | 458.4 MiB/s | 4.1 MiB | 00m00s [131/330] Installing libvmaf-0:3.2.1-1. 100% | 396.8 MiB/s | 1.2 MiB | 00m00s [132/330] Installing libaom-0:3.15.3-1. 100% | 446.3 MiB/s | 5.4 MiB | 00m00s [133/330] Installing libheif-0:1.23.7-1 100% | 397.2 MiB/s | 2.4 MiB | 00m00s [134/330] Installing lpcnetfreedv-0:0.5 100% | 617.6 MiB/s | 14.8 MiB | 00m00s [135/330] Installing codec2-0:1.2.0-10. 100% | 273.0 MiB/s | 1.4 MiB | 00m00s [136/330] Installing libwacom-data-0:2. 100% | 121.0 MiB/s | 1.6 MiB | 00m00s [137/330] Installing hwdata-0:0.413-1.f 100% | 564.5 MiB/s | 10.2 MiB | 00m00s [138/330] Installing libpciaccess-0:0.1 100% | 0.0 B/s | 49.8 KiB | 00m00s [139/330] Installing libdrm-0:2.4.134-2 100% | 200.1 MiB/s | 409.8 KiB | 00m00s [140/330] Installing libsbc-0:2.2-1.fc4 100% | 0.0 B/s | 94.4 KiB | 00m00s [141/330] Installing libldac-0:2.0.2.6- 100% | 78.0 MiB/s | 79.9 KiB | 00m00s [142/330] Installing libebur128-0:1.2.6 100% | 0.0 B/s | 40.6 KiB | 00m00s [143/330] Installing fftw-libs-single-0 100% | 329.0 MiB/s | 3.6 MiB | 00m00s [144/330] Installing jsoncpp-0:1.9.6-3. 100% | 280.4 MiB/s | 287.1 KiB | 00m00s [145/330] Installing openxr-libs-0:1.1. 100% | 271.0 MiB/s | 277.5 KiB | 00m00s [146/330] Installing pugixml-0:1.16-2.f 100% | 281.4 MiB/s | 288.1 KiB | 00m00s [147/330] Installing poly2tri-0:0.0^202 100% | 59.8 MiB/s | 61.2 KiB | 00m00s [148/330] Installing assimp-0:6.0.6-1.f 100% | 221.9 MiB/s | 7.5 MiB | 00m00s [149/330] Installing libasyncns-0:0.8-3 100% | 59.4 MiB/s | 60.8 KiB | 00m00s [150/330] Installing soxr-0:0.1.3-23.fc 100% | 188.8 MiB/s | 193.3 KiB | 00m00s [151/330] Installing librabbitmq-0:0.18 100% | 92.4 MiB/s | 94.6 KiB | 00m00s [152/330] Installing libmodplug-1:0.8.9 100% | 363.6 MiB/s | 372.3 KiB | 00m00s [153/330] Installing game-music-emu-0:0 100% | 357.0 MiB/s | 365.6 KiB | 00m00s [154/330] Installing xvidcore-0:1.3.7-2 100% | 431.6 MiB/s | 883.9 KiB | 00m00s [155/330] Installing xeve-libs-0:0.7.1- 100% | 448.2 MiB/s | 917.9 KiB | 00m00s [156/330] Installing xevd-libs-0:0.8.0- 100% | 383.9 MiB/s | 393.1 KiB | 00m00s [157/330] Installing vo-amrwbenc-0:0.1. 100% | 151.7 MiB/s | 155.3 KiB | 00m00s [158/330] Installing twolame-libs-0:0.4 100% | 162.6 MiB/s | 166.5 KiB | 00m00s [159/330] Installing speex-0:1.2.0-22.f 100% | 127.3 MiB/s | 130.3 KiB | 00m00s [160/330] Installing opencore-amr-0:0.1 100% | 346.8 MiB/s | 355.1 KiB | 00m00s [161/330] Installing openapv-libs-0:1.1 100% | 147.6 MiB/s | 151.1 KiB | 00m00s [162/330] Installing libvpx-0:1.17.0-1. 100% | 412.3 MiB/s | 3.3 MiB | 00m00s [163/330] Installing ilbc-0:3.0.4-22.fc 100% | 90.7 MiB/s | 92.8 KiB | 00m00s [164/330] Installing orc-0:0.4.41-4.fc4 100% | 39.3 MiB/s | 724.5 KiB | 00m00s [165/330] Installing libvisual-1:0.4.2- 100% | 228.0 MiB/s | 467.0 KiB | 00m00s [166/330] Installing cdparanoia-libs-0: 100% | 112.0 MiB/s | 114.7 KiB | 00m00s [167/330] Installing vulkan-loader-0:1. 100% | 212.7 MiB/s | 653.3 KiB | 00m00s [168/330] Installing xkeyboard-config-0 100% | 364.1 MiB/s | 6.6 MiB | 00m00s [169/330] Installing libxkbcommon-0:1.1 100% | 423.8 MiB/s | 433.9 KiB | 00m00s [170/330] Installing cups-filesystem-1: 100% | 0.0 B/s | 1.8 KiB | 00m00s [171/330] Installing cups-libs-1:2.4.19 100% | 312.6 MiB/s | 640.1 KiB | 00m00s [172/330] Installing duktape-0:2.7.0-12 100% | 611.0 MiB/s | 625.7 KiB | 00m00s [173/330] Installing libproxy-0:0.5.12- 100% | 105.8 MiB/s | 108.4 KiB | 00m00s [174/330] Installing glib-networking-0: 100% | 162.5 MiB/s | 832.0 KiB | 00m00s [175/330] Installing libsoup3-0:3.8.1-1 100% | 245.7 MiB/s | 1.2 MiB | 00m00s [176/330] Installing gssdp-0:1.6.6-3.fc 100% | 145.6 MiB/s | 149.1 KiB | 00m00s [177/330] Installing gupnp-0:1.6.10-4.f 100% | 306.4 MiB/s | 313.8 KiB | 00m00s [178/330] Installing gupnp-igd-0:1.6.0- 100% | 70.7 MiB/s | 72.4 KiB | 00m00s [179/330] Installing libnice-0:0.1.23-3 100% | 29.5 MiB/s | 512.8 KiB | 00m00s [180/330] Installing libtinysparql-0:3. 100% | 333.1 MiB/s | 1.0 MiB | 00m00s [181/330] Installing cmake-filesystem-0 100% | 9.7 MiB/s | 9.9 KiB | 00m00s [182/330] Installing liblerc-0:4.3.0-1. 100% | 325.6 MiB/s | 666.8 KiB | 00m00s [183/330] Installing jbigkit-libs-0:2.1 100% | 116.4 MiB/s | 119.2 KiB | 00m00s [184/330] Installing libtiff-0:4.7.2-3. 100% | 315.8 MiB/s | 646.8 KiB | 00m00s [185/330] Installing spandsp-0:0.0.6-23 100% | 421.1 MiB/s | 862.5 KiB | 00m00s [186/330] Installing gpgme-0:2.3.1-1.fc 100% | 34.3 MiB/s | 632.2 KiB | 00m00s [187/330] Installing gpgmepp-1:2.2.0-1. 100% | 306.6 MiB/s | 627.8 KiB | 00m00s [188/330] Installing graphite2-0:1.3.14 100% | 11.8 MiB/s | 193.5 KiB | 00m00s [189/330] Installing harfbuzz-0:15.2.0- 100% | 410.1 MiB/s | 3.7 MiB | 00m00s [190/330] Installing freetype-0:2.15.0- 100% | 308.8 MiB/s | 948.5 KiB | 00m00s [191/330] Installing fontconfig-0:2.18. 100% | 1.0 MiB/s | 1.1 MiB | 00m01s [192/330] Installing libaribcaption-0:1 100% | 125.7 MiB/s | 257.5 KiB | 00m00s [193/330] Installing libbluray-0:1.4.0- 100% | 316.3 MiB/s | 323.9 KiB | 00m00s [194/330] Installing libXau-0:1.0.12-5. 100% | 72.6 MiB/s | 74.3 KiB | 00m00s [195/330] Installing libxcb-0:1.17.0-8. 100% | 270.3 MiB/s | 1.1 MiB | 00m00s [196/330] Installing mesa-dri-drivers-0 100% | 473.0 MiB/s | 53.9 MiB | 00m00s [197/330] Installing mesa-libgbm-0:26.3 100% | 0.0 B/s | 20.3 KiB | 00m00s [198/330] Installing xcb-util-renderuti 100% | 25.1 MiB/s | 25.7 KiB | 00m00s [199/330] Installing pulseaudio-libs-0: 100% | 339.8 MiB/s | 3.4 MiB | 00m00s [200/330] Installing pipewire-libs-0:1. 100% | 337.5 MiB/s | 9.8 MiB | 00m00s [201/330] Installing libxkbcommon-x11-0 100% | 0.0 B/s | 40.3 KiB | 00m00s [202/330] Installing xcb-util-keysyms-0 100% | 0.0 B/s | 17.7 KiB | 00m00s [203/330] Installing xcb-util-wm-0:0.4. 100% | 0.0 B/s | 79.0 KiB | 00m00s [204/330] Installing xcb-util-0:0.4.1-1 100% | 0.0 B/s | 27.6 KiB | 00m00s [205/330] Installing xcb-util-image-0:0 100% | 0.0 B/s | 27.5 KiB | 00m00s [206/330] Installing xcb-util-cursor-0: 100% | 27.8 MiB/s | 28.5 KiB | 00m00s [207/330] Installing libX11-common-0:1. 100% | 169.3 MiB/s | 1.2 MiB | 00m00s [208/330] Installing libX11-0:1.8.13-3. 100% | 337.0 MiB/s | 1.3 MiB | 00m00s [209/330] Installing libXext-0:1.3.6-6. 100% | 89.0 MiB/s | 91.1 KiB | 00m00s [210/330] Installing libXrender-0:0.9.1 100% | 0.0 B/s | 51.2 KiB | 00m00s [211/330] Installing libXfixes-0:6.0.1- 100% | 0.0 B/s | 31.4 KiB | 00m00s [212/330] Installing libXi-0:1.8.4-1.fc 100% | 0.0 B/s | 81.7 KiB | 00m00s [213/330] Installing libXrandr-0:1.5.4- 100% | 0.0 B/s | 52.9 KiB | 00m00s [214/330] Installing libXtst-0:1.2.5-5. 100% | 0.0 B/s | 34.4 KiB | 00m00s [215/330] Installing libXdamage-0:1.1.6 100% | 0.0 B/s | 41.1 KiB | 00m00s [216/330] Installing libXcomposite-0:0. 100% | 0.0 B/s | 45.9 KiB | 00m00s [217/330] Installing libXcursor-0:1.2.3 100% | 53.7 MiB/s | 55.0 KiB | 00m00s [218/330] Installing libXft-0:2.3.8-11. 100% | 165.8 MiB/s | 169.8 KiB | 00m00s [219/330] Installing libXv-0:1.0.13-5.f 100% | 0.0 B/s | 27.1 KiB | 00m00s [220/330] Installing libvdpau-0:1.5-12. 100% | 0.0 B/s | 22.3 KiB | 00m00s [221/330] Installing libXxf86vm-0:1.1.6 100% | 0.0 B/s | 26.4 KiB | 00m00s [222/330] Installing mesa-libGL-0:26.3. 100% | 382.2 MiB/s | 391.4 KiB | 00m00s [223/330] Installing libglvnd-glx-1:1.7 100% | 292.3 MiB/s | 598.5 KiB | 00m00s [224/330] Installing libva-0:2.24.1-2.f 100% | 341.8 MiB/s | 350.0 KiB | 00m00s [225/330] Installing libavutil-free-0:9 100% | 320.5 MiB/s | 984.7 KiB | 00m00s [226/330] Installing libswresample-free 100% | 152.9 MiB/s | 156.5 KiB | 00m00s [227/330] Installing libswscale-free-0: 100% | 354.7 MiB/s | 1.1 MiB | 00m00s [228/330] Installing libchromaprint-0:1 100% | 74.2 MiB/s | 76.0 KiB | 00m00s [229/330] Installing glx-utils-0:9.0.0- 100% | 22.7 MiB/s | 419.2 KiB | 00m00s [230/330] Installing libXinerama-0:1.1. 100% | 0.0 B/s | 15.9 KiB | 00m00s [231/330] Installing libxkbfile-0:1.1.3 100% | 198.3 MiB/s | 203.1 KiB | 00m00s [232/330] Installing mesa-libEGL-0:26.3 100% | 393.8 MiB/s | 403.2 KiB | 00m00s [233/330] Installing libglvnd-egl-1:1.7 100% | 68.6 MiB/s | 70.2 KiB | 00m00s [234/330] Installing xprop-0:1.2.8-6.fc 100% | 3.4 MiB/s | 55.9 KiB | 00m00s [235/330] Installing minizip-ng-compat- 100% | 143.5 MiB/s | 146.9 KiB | 00m00s [236/330] Installing libxslt-0:1.1.43-1 100% | 27.3 MiB/s | 474.9 KiB | 00m00s [237/330] Installing qt6-filesystem-0:6 100% | 3.4 MiB/s | 3.5 KiB | 00m00s [238/330] Installing pcre2-utf16-0:10.4 100% | 322.3 MiB/s | 660.0 KiB | 00m00s [239/330] Installing libb2-0:0.98.1-16. 100% | 0.0 B/s | 43.0 KiB | 00m00s [240/330] Installing double-conversion- 100% | 101.2 MiB/s | 103.6 KiB | 00m00s [241/330] Installing qt6-qtbase-0:6.12. 100% | 268.0 MiB/s | 14.2 MiB | 00m00s [242/330] Installing qt6-qtbase-common- 100% | 0.0 B/s | 352.0 B | 00m00s [243/330] Installing qt6-qtserialport-0 100% | 227.2 MiB/s | 232.7 KiB | 00m00s [244/330] Installing qt6-qtwebsockets-0 100% | 327.1 MiB/s | 335.0 KiB | 00m00s [245/330] Installing qt6-qthttpserver-0 100% | 339.9 MiB/s | 348.1 KiB | 00m00s [246/330] Installing qt6-qtserialbus-0: 100% | 320.7 MiB/s | 985.1 KiB | 00m00s [247/330] Installing qt6-qtconnectivity 100% | 230.3 MiB/s | 1.6 MiB | 00m00s [248/330] Installing tzdata-0:2026f-1.f 100% | 58.6 MiB/s | 1.5 MiB | 00m00s [249/330] Installing python-pip-wheel-0 100% | 698.2 MiB/s | 1.4 MiB | 00m00s [250/330] Installing mpdecimal-0:4.0.1- 100% | 36.2 MiB/s | 222.7 KiB | 00m00s [251/330] Installing python3-libs-0:3.1 100% | 366.1 MiB/s | 48.7 MiB | 00m00s [252/330] Installing python3-0:3.15.2-1 100% | 1.7 MiB/s | 30.4 KiB | 00m00s [253/330] Installing gstreamer1-0:1.28. 100% | 176.2 MiB/s | 5.5 MiB | 00m00s [254/330] Installing python3-packaging- 100% | 326.5 MiB/s | 1.3 MiB | 00m00s [255/330] Installing at-spi2-core-0:2.6 100% | 227.9 MiB/s | 1.6 MiB | 00m00s [256/330] Installing atk-0:2.62.2-1.fc4 100% | 248.0 MiB/s | 254.0 KiB | 00m00s [257/330] Installing at-spi2-atk-0:2.62 100% | 283.3 MiB/s | 290.1 KiB | 00m00s [258/330] Installing python3-rpm-genera 100% | 0.0 B/s | 83.1 KiB | 00m00s [259/330] Installing python3-iniconfig- 100% | 52.7 MiB/s | 54.0 KiB | 00m00s [260/330] Installing python3-pluggy-0:1 100% | 62.3 MiB/s | 255.2 KiB | 00m00s [261/330] Installing python3-pygments-0 100% | 225.2 MiB/s | 11.7 MiB | 00m00s [262/330] Installing python3-shiboken6- 100% | 214.2 MiB/s | 657.9 KiB | 00m00s [263/330] Installing libwacom-0:2.20.0- 100% | 6.6 MiB/s | 108.2 KiB | 00m00s [264/330] Installing libinput-0:1.32.0- 100% | 30.8 MiB/s | 726.2 KiB | 00m00s [265/330] Installing giflib-0:6.1.3-3.f 100% | 120.9 MiB/s | 123.8 KiB | 00m00s [266/330] Installing leptonica-0:1.87.0 100% | 400.3 MiB/s | 3.2 MiB | 00m00s [267/330] Installing poppler-data-0:0.4 100% | 399.7 MiB/s | 12.4 MiB | 00m00s [268/330] Installing poppler-0:26.08.0- 100% | 415.0 MiB/s | 4.2 MiB | 00m00s [269/330] Installing pixman-0:0.46.2-4. 100% | 351.3 MiB/s | 719.4 KiB | 00m00s [270/330] Installing lzo-0:2.10-17.fc45 100% | 176.2 MiB/s | 180.4 KiB | 00m00s [271/330] Installing cairo-0:1.18.6-1.f 100% | 366.4 MiB/s | 1.8 MiB | 00m00s [272/330] Installing pango-0:1.58.2-1.f 100% | 48.7 MiB/s | 1.0 MiB | 00m00s [273/330] Installing gstreamer1-plugins 100% | 289.8 MiB/s | 7.5 MiB | 00m00s [274/330] Installing cairo-gobject-0:1. 100% | 0.0 B/s | 31.8 KiB | 00m00s [275/330] Installing glycin-loaders-0:2 100% | 440.5 MiB/s | 15.0 MiB | 00m00s [276/330] Installing glycin-libs-0:2.2. 100% | 371.0 MiB/s | 4.8 MiB | 00m00s [277/330] Installing gdk-pixbuf2-0:2.44 100% | 104.7 MiB/s | 2.6 MiB | 00m00s [278/330] Installing librsvg2-0:2.63.4- 100% | 419.2 MiB/s | 5.0 MiB | 00m00s [279/330] Installing libavcodec-free-0: 100% | 386.6 MiB/s | 11.2 MiB | 00m00s [280/330] Installing libavformat-free-0 100% | 410.7 MiB/s | 2.9 MiB | 00m00s [281/330] Installing gtk-update-icon-ca 100% | 3.6 MiB/s | 63.2 KiB | 00m00s [282/330] Installing gtk3-0:3.24.52-6.f 100% | 316.7 MiB/s | 22.8 MiB | 00m00s [283/330] Installing libdecor-0:0.2.5-3 100% | 171.4 MiB/s | 175.5 KiB | 00m00s [284/330] Installing SDL3-0:3.4.20-1.fc 100% | 404.0 MiB/s | 3.2 MiB | 00m00s [285/330] Installing sdl2-compat-0:2.32 100% | 202.3 MiB/s | 414.4 KiB | 00m00s [286/330] Installing tslib-0:1.24-3.fc4 100% | 21.8 MiB/s | 423.3 KiB | 00m00s [287/330] Installing qt6-qtbase-gui-0:6 100% | 407.4 MiB/s | 27.7 MiB | 00m00s [288/330] Installing qt6-qtsvg-0:6.12.0 100% | 133.2 MiB/s | 954.6 KiB | 00m00s [289/330] Installing qt6-qtdeclarative- 100% | 432.5 MiB/s | 68.8 MiB | 00m00s [290/330] Installing qt6-qtpositioning- 100% | 395.9 MiB/s | 1.6 MiB | 00m00s [291/330] Installing qt6-qtpdf-0:6.140. 100% | 428.8 MiB/s | 24.9 MiB | 00m00s [292/330] Installing qt6-qtwebchannel-0 100% | 224.7 MiB/s | 460.2 KiB | 00m00s [293/330] Installing qt6-qtwebengine-0: 100% | 436.4 MiB/s | 278.0 MiB | 00m01s [294/330] Installing qt6-qtshadertools- 100% | 212.4 MiB/s | 7.2 MiB | 00m00s [295/330] Installing qt6-qtwebview-0:6. 100% | 140.9 MiB/s | 288.6 KiB | 00m00s [296/330] Installing qt6-qtlocation-0:6 100% | 418.6 MiB/s | 2.9 MiB | 00m00s [297/330] Installing qt6-qtcharts-0:6.1 100% | 390.3 MiB/s | 3.5 MiB | 00m00s [298/330] Installing qt6-qtdatavis3d-0: 100% | 405.0 MiB/s | 2.4 MiB | 00m00s [299/330] Installing qt6-qtremoteobject 100% | 388.3 MiB/s | 1.6 MiB | 00m00s [300/330] Installing qt6-qtscxml-0:6.12 100% | 388.5 MiB/s | 1.9 MiB | 00m00s [301/330] Installing qt6-qtsensors-0:6. 100% | 310.9 MiB/s | 954.9 KiB | 00m00s [302/330] Installing qt6-qttools-libs-d 100% | 503.7 MiB/s | 6.0 MiB | 00m00s [303/330] Installing qt6-qtquicktimelin 100% | 97.7 MiB/s | 300.2 KiB | 00m00s [304/330] Installing qt6-qtquick3d-0:6. 100% | 379.5 MiB/s | 15.9 MiB | 00m00s [305/330] Installing qt6-qtgraphs-0:6.1 100% | 402.3 MiB/s | 4.0 MiB | 00m00s [306/330] Installing qt6-qtnetworkauth- 100% | 368.5 MiB/s | 377.4 KiB | 00m00s [307/330] Installing qt6-qttools-0:6.12 100% | 50.9 MiB/s | 938.4 KiB | 00m00s [308/330] Installing qt6-qttools-libs-h 100% | 318.5 MiB/s | 652.3 KiB | 00m00s [309/330] Installing qt6-qtimageformats 100% | 192.0 MiB/s | 393.3 KiB | 00m00s [310/330] Installing qt6-qt3d-0:6.12.0- 100% | 435.1 MiB/s | 15.2 MiB | 00m00s [311/330] Installing gstreamer1-plugins 100% | 331.4 MiB/s | 3.6 MiB | 00m00s [312/330] Installing qt6-qtmultimedia-0 100% | 388.5 MiB/s | 4.7 MiB | 00m00s [313/330] Installing qt6-qtspeech-0:6.1 100% | 187.4 MiB/s | 383.8 KiB | 00m00s [314/330] Installing libfyaml-0:0.9.6-1 100% | 338.3 MiB/s | 692.9 KiB | 00m00s [315/330] Installing tesseract-tessdata 100% | 0.0 B/s | 15.7 KiB | 00m00s [316/330] Installing tesseract-langpack 100% | 435.9 MiB/s | 3.9 MiB | 00m00s [317/330] Installing tesseract-common-0 100% | 20.4 MiB/s | 20.9 KiB | 00m00s [318/330] Installing tesseract-libs-0:5 100% | 435.1 MiB/s | 3.5 MiB | 00m00s [319/330] Installing emacs-filesystem-1 100% | 0.0 B/s | 1.2 KiB | 00m00s [320/330] Installing desktop-file-utils 100% | 13.5 MiB/s | 235.0 KiB | 00m00s [321/330] Installing tesseract-0:5.5.5- 100% | 4.9 MiB/s | 86.1 KiB | 00m00s [322/330] Installing appstream-0:1.2.3- 100% | 177.7 MiB/s | 5.3 MiB | 00m00s [323/330] Installing python3-pyside6-0: 100% | 496.8 MiB/s | 55.6 MiB | 00m00s [324/330] Installing poppler-utils-0:26 100% | 38.5 MiB/s | 827.7 KiB | 00m00s [325/330] Installing python3-pytest-0:9 100% | 376.0 MiB/s | 24.4 MiB | 00m00s [326/330] Installing python3-devel-0:3. 100% | 101.9 MiB/s | 2.5 MiB | 00m00s [327/330] Installing authselect-0:1.8.0 100% | 12.9 MiB/s | 238.4 KiB | 00m00s [328/330] Installing pam-0:1.7.2-4.fc45 100% | 67.2 MiB/s | 1.7 MiB | 00m00s [329/330] Installing qpdf-0:12.4.2-1.fc 100% | 15.9 MiB/s | 277.1 KiB | 00m00s [330/330] Installing systemd-rpm-macros 100% | 20.5 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.fc46.src.rpm Updating and loading repositories: fedora 100% | 115.1 KiB/s | 18.1 KiB | 00m00s Copr repository 100% | 10.9 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package "appstream-1.2.3-1.fc46.x86_64" is already installed. Package "desktop-file-utils-0.29-2.fc46.x86_64" is already installed. Package "poppler-utils-26.08.0-2.fc46.x86_64" is already installed. Package "python3-devel-3.15.2-1.fc46.x86_64" is already installed. Package "python3-pyside6-6.12.0-2.fc46.x86_64" is already installed. Package "python3-pytest-9.1.1-1.fc45.noarch" is already installed. Package "qpdf-12.4.2-1.fc46.x86_64" is already installed. Package "tesseract-5.5.5-1.fc46.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.fc46.src.rpm Start: rpmbuild py-pdftools-1.32.0-1.fc46.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.fIZ8Xw 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.fc46" 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.E2X8Cw + 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.bxY2t8 + 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=46 + 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.fc46.x86_64-pyproject-buildrequires --dep-overrides-file /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc46.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.fc46.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.fc46.buildreqs.nosrc.rpm INFO: Going to install missing dynamic buildrequires Updating and loading repositories: fedora 100% | 74.7 KiB/s | 18.1 KiB | 00m00s Copr repository 100% | 8.1 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package "appstream-1.2.3-1.fc46.x86_64" is already installed. Package "desktop-file-utils-0.29-2.fc46.x86_64" is already installed. Package "poppler-utils-26.08.0-2.fc46.x86_64" is already installed. Package "pyproject-rpm-macros-1.24.0-1.fc46.noarch" is already installed. Package "python3-devel-3.15.2-1.fc46.x86_64" is already installed. Package "python3-pyside6-6.12.0-2.fc46.x86_64" is already installed. Package "python3-pytest-9.1.1-1.fc45.noarch" is already installed. Package "python3-packaging-26.3-1.fc46.noarch" is already installed. Package "qpdf-12.4.2-1.fc46.x86_64" is already installed. Package "tesseract-5.5.5-1.fc46.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.3-1.fc46 fedora 13.4 MiB python3-uv-build x86_64 0:0.13.10-1.fc46 fedora 3.9 MiB Transaction Summary: Installing: 2 packages Total size of inbound packages is 4 MiB. Need to download 4 MiB. After this operation, 17 MiB extra will be used (install 17 MiB, remove 0 B). [1/2] python3-uv-build-0:0.13.10-1.fc46 100% | 21.8 MiB/s | 1.4 MiB | 00m00s [2/2] python3-pip-0:26.3-1.fc46.noarch 100% | 32.7 MiB/s | 2.9 MiB | 00m00s -------------------------------------------------------------------------------- [2/2] Total 100% | 46.9 MiB/s | 4.3 MiB | 00m00s Running transaction [1/4] Verify package files 100% | 125.0 B/s | 2.0 B | 00m00s [2/4] Prepare transaction 100% | 31.0 B/s | 2.0 B | 00m00s [3/4] Installing python3-pip-0:26.3-1.f 100% | 187.6 MiB/s | 13.7 MiB | 00m00s [4/4] Installing python3-uv-build-0:0.1 100% | 65.4 MiB/s | 3.9 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.cor0OO + 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=46 + 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.fc46.x86_64-pyproject-buildrequires --dep-overrides-file /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc46.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.10) 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.fc46.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.fc46.buildreqs.nosrc.rpm INFO: Going to install missing dynamic buildrequires Updating and loading repositories: fedora 100% | 95.1 KiB/s | 18.1 KiB | 00m00s Copr repository 100% | 14.1 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package "appstream-1.2.3-1.fc46.x86_64" is already installed. Package "desktop-file-utils-0.29-2.fc46.x86_64" is already installed. Package "poppler-utils-26.08.0-2.fc46.x86_64" is already installed. Package "pyproject-rpm-macros-1.24.0-1.fc46.noarch" is already installed. Package "python3-devel-3.15.2-1.fc46.x86_64" is already installed. Package "python3-pyside6-6.12.0-2.fc46.x86_64" is already installed. Package "python3-pytest-9.1.1-1.fc45.noarch" is already installed. Package "python3-packaging-26.3-1.fc46.noarch" is already installed. Package "python3-pip-26.3-1.fc46.noarch" is already installed. Package "qpdf-12.4.2-1.fc46.x86_64" is already installed. Package "tesseract-5.5.5-1.fc46.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.fc46 fedora 4.2 MiB python3-pikepdf x86_64 0:10.8.0-3.fc45 fedora 1.9 MiB python3-reportlab noarch 0:5.1.2-1.fc46 fedora 11.5 MiB Installing dependencies: dejavu-sans-fonts noarch 0:2.37-30.fc45 fedora 5.5 MiB gumbo-parser x86_64 1:0.14.1-1.fc46 fedora 338.3 KiB jbig2dec-libs x86_64 0:0.20-9.fc45 fedora 168.9 KiB libimagequant x86_64 0:4.1.0-4.fc46 fedora 687.5 KiB libraqm x86_64 0:0.10.1-5.fc45 fedora 32.5 KiB mupdf-cpp-libs x86_64 0:1.28.2-4.fc46 fedora 2.3 MiB mupdf-libs x86_64 0:1.28.2-4.fc46 fedora 51.5 MiB python3-charset-normalizer noarch 0:3.5.2-2.fc46 fedora 477.6 KiB python3-lxml x86_64 0:6.1.2-1.fc46 fedora 5.8 MiB python3-mupdf x86_64 0:1.28.2-4.fc46 fedora 21.3 MiB python3-olefile noarch 0:0.47-15.fc45 fedora 347.3 KiB python3-pillow x86_64 0:13.0.0-1.fc46 fedora 4.6 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% | 3.3 MiB/s | 581.9 KiB | 00m00s [ 2/16] python3-PyMuPDF-0:1.28.2-2.fc46 100% | 4.6 MiB/s | 855.8 KiB | 00m00s [ 3/16] mupdf-cpp-libs-0:1.28.2-4.fc46. 100% | 8.1 MiB/s | 465.4 KiB | 00m00s [ 4/16] python3-reportlab-0:5.1.2-1.fc4 100% | 14.4 MiB/s | 3.5 MiB | 00m00s [ 5/16] python3-lxml-0:6.1.2-1.fc46.x86 100% | 17.9 MiB/s | 1.7 MiB | 00m00s [ 6/16] python3-mupdf-0:1.28.2-4.fc46.x 100% | 37.6 MiB/s | 2.9 MiB | 00m00s [ 7/16] dejavu-sans-fonts-0:2.37-30.fc4 100% | 13.4 MiB/s | 1.3 MiB | 00m00s [ 8/16] python3-charset-normalizer-0:3. 100% | 2.5 MiB/s | 141.4 KiB | 00m00s [ 9/16] mupdf-libs-0:1.28.2-4.fc46.x86_ 100% | 85.4 MiB/s | 28.3 MiB | 00m00s [10/16] gumbo-parser-1:0.14.1-1.fc46.x8 100% | 464.9 KiB/s | 93.0 KiB | 00m00s [11/16] jbig2dec-libs-0:0.20-9.fc45.x86 100% | 395.9 KiB/s | 75.6 KiB | 00m00s [12/16] zxing-cpp-0:2.2.1-9.fc45.x86_64 100% | 13.4 MiB/s | 630.4 KiB | 00m00s [13/16] python3-pillow-0:13.0.0-1.fc46. 100% | 16.9 MiB/s | 1.1 MiB | 00m00s [14/16] libimagequant-0:4.1.0-4.fc46.x8 100% | 3.8 MiB/s | 315.3 KiB | 00m00s [15/16] libraqm-0:0.10.1-5.fc45.x86_64 100% | 571.2 KiB/s | 22.8 KiB | 00m00s [16/16] python3-olefile-0:0.47-15.fc45. 100% | 2.1 MiB/s | 75.0 KiB | 00m00s -------------------------------------------------------------------------------- [16/16] Total 100% | 57.7 MiB/s | 41.9 MiB | 00m01s Running transaction [ 1/18] Verify package files 100% | 111.0 B/s | 16.0 B | 00m00s [ 2/18] Prepare transaction 100% | 266.0 B/s | 16.0 B | 00m00s [ 3/18] Installing python3-olefile-0:0. 100% | 171.2 MiB/s | 350.7 KiB | 00m00s [ 4/18] Installing libraqm-0:0.10.1-5.f 100% | 0.0 B/s | 33.6 KiB | 00m00s [ 5/18] Installing libimagequant-0:4.1. 100% | 224.3 MiB/s | 689.1 KiB | 00m00s [ 6/18] Installing python3-pillow-0:13. 100% | 308.8 MiB/s | 4.6 MiB | 00m00s [ 7/18] Installing zxing-cpp-0:2.2.1-9. 100% | 328.7 MiB/s | 1.3 MiB | 00m00s [ 8/18] Installing jbig2dec-libs-0:0.20 100% | 166.4 MiB/s | 170.4 KiB | 00m00s [ 9/18] Installing gumbo-parser-1:0.14. 100% | 331.4 MiB/s | 339.4 KiB | 00m00s [10/18] Installing mupdf-libs-0:1.28.2- 100% | 352.6 MiB/s | 51.5 MiB | 00m00s [11/18] Installing mupdf-cpp-libs-0:1.2 100% | 469.9 MiB/s | 2.3 MiB | 00m00s [12/18] Installing python3-mupdf-0:1.28 100% | 591.4 MiB/s | 21.3 MiB | 00m00s [13/18] Installing python3-charset-norm 100% | 25.1 MiB/s | 487.7 KiB | 00m00s [14/18] Installing dejavu-sans-fonts-0: 100% | 459.1 MiB/s | 5.5 MiB | 00m00s [15/18] Installing python3-lxml-0:6.1.2 100% | 345.1 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% | 52.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.TXPb87 + 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=46 + 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.fc46.x86_64-pyproject-buildrequires --dep-overrides-file /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc46.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.10) 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.2) 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.fc46.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.fc46.buildreqs.nosrc.rpm INFO: Going to install missing dynamic buildrequires Updating and loading repositories: fedora 100% | 73.2 KiB/s | 18.1 KiB | 00m00s Copr repository 100% | 14.3 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Nothing to do. Package "appstream-1.2.3-1.fc46.x86_64" is already installed. Package "desktop-file-utils-0.29-2.fc46.x86_64" is already installed. Package "poppler-utils-26.08.0-2.fc46.x86_64" is already installed. Package "pyproject-rpm-macros-1.24.0-1.fc46.noarch" is already installed. Package "python3-devel-3.15.2-1.fc46.x86_64" is already installed. Package "python3-pyside6-6.12.0-2.fc46.x86_64" is already installed. Package "python3-pytest-9.1.1-1.fc45.noarch" is already installed. Package "python3-packaging-26.3-1.fc46.noarch" is already installed. Package "python3-pikepdf-10.8.0-3.fc45.x86_64" is already installed. Package "python3-pip-26.3-1.fc46.noarch" is already installed. Package "python3-PyMuPDF-1.28.2-2.fc46.x86_64" is already installed. Package "python3-reportlab-5.1.2-1.fc46.noarch" is already installed. Package "qpdf-12.4.2-1.fc46.x86_64" is already installed. Package "tesseract-5.5.5-1.fc46.x86_64" is already installed. Package "tesseract-langpack-eng-4.1.0-13.fc45.noarch" is already installed. 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.yFPpz5 + 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=46 + 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.fc46.x86_64-pyproject-buildrequires --dep-overrides-file /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc46.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.10) 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.2) 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.fc46.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.O5jLgs + 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=1798138 sha256=73a5a57661436169fbbfffc4aa4760de5a82a9d8d35ca5499929e172cd2d0af7 Stored in directory: /builddir/build/BUILD/py-pdftools-1.32.0-build/.pyproject-builddir/pip-ephem-wheel-cache-sy8ktbd_/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.RRgJNz + 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.3 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.fc46.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.fc46.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.fc46.x86_64-pyproject-dep-overrides ']' ++ wc -l /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc46.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.fc46.x86_64-pyproject-files --output-modules /builddir/build/BUILD/py-pdftools-1.32.0-build/py-pdftools-1.32.0-1.fc46.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.fc46.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__/__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/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__/__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/__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/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/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/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__/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__/__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__/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__/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/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__/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__/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/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/__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__/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__/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__/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__/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/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/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/__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__/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__/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__/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/__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__/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__/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/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__/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/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/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/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/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__/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__/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__/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/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/__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/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/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/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/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/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/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/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__/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__/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/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__/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/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__/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/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/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/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__/__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__/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__/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__/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__/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__/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/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/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__/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__/__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/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/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__/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__/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__/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__/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__/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__/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 70 files, linked 10 files, 0 errors sum of sizes of linked files: 101238 bytes Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.sabGVC + 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.fc46.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.fc46.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, 10.2s, FAILED [2/158] test_ocr.py: 11 passed, 11.8s, FAILED [3/158] redact/test_gui.py: 0 passed, 13.3s, FAILED [4/158] pages/test_reduce.py: 10 passed, 21.4s, FAILED [5/158] test_navigation.py: 3 passed, 32.3s, FAILED [7/158] test_renderer.py: 8 passed, 9.4s, FAILED [10/158] test_large_documents.py: 0 passed, 6.1s, FAILED [14/158] annotate/test_link_edit.py: 1 passed, 2.6s, FAILED [17/158] forms/test_data.py: 8 passed, 1.7s, FAILED [19/158] forms/test_fill.py: 2 passed, 2.2s, FAILED [21/158] pages/test_arrange.py: 10 passed, 2.8s, FAILED [22/158] annotate/test_gui.py: 2 passed, 48.0s, FAILED [23/158] annotate/test_sidecar_gui.py: 0 passed, 7.5s, FAILED [27/158] pages/test_combine.py: 6 passed, 1.8s, FAILED [28/158] pages/test_crop.py: 5 passed, 2.1s, FAILED [29/158] pages/test_export.py: 8 passed, 1.8s, FAILED [30/158] pages/test_from_images.py: 5 passed, 1.6s, FAILED [33/158] pages/test_outlines.py: 2 passed, 1.7s, FAILED [34/158] pages/test_overlay.py: 4 passed, 1.5s, FAILED [35/158] pages/test_labels_shown.py: 0 passed, 2.5s, FAILED [37/158] pages/test_recolor.py: 3 passed, 1.7s, FAILED [38/158] pages/test_rasterize.py: 6 passed, 2.1s, FAILED [39/158] pages/test_gui.py: 0 passed, 7.1s, FAILED [40/158] pages/test_sorter.py: 1 passed, 1.9s, FAILED [41/158] pages/test_split.py: 4 passed, 2.5s, FAILED [42/158] pages/test_tables.py: 3 passed, 1.7s, FAILED [44/158] pages/test_version.py: 7 passed, 1.7s, FAILED [46/158] pages/test_scans.py: 4 passed, 6.0s, FAILED [49/158] redact/test_covered.py: 9 passed, 2.2s, FAILED [53/158] test_accessibility.py: 4 passed, 1.3s, FAILED [54/158] test_attachments.py: 2 passed, 1.5s, FAILED [56/158] pages/test_working.py: 1 passed, 5.2s, FAILED [57/158] test_ask.py: 2 passed, 3.3s, FAILED [58/158] test_bookmarkfile.py: 9 passed, 1.8s, FAILED [59/158] test_backends.py: 18 passed, 2.8s, FAILED [60/158] test_boxes.py: 0 passed, 2.5s, FAILED [61/158] test_caret.py: 0 passed, 2.6s, FAILED [63/158] test_checkfile.py: 2 passed, 1.7s, FAILED [64/158] test_carry_over.py: 2 passed, 2.7s, FAILED [66/158] test_columns.py: 0 passed, 2.0s, FAILED [67/158] test_comment_sign.py: 1 passed, 1.5s, FAILED [68/158] test_close_document.py: 1 passed, 3.3s, FAILED [69/158] test_close_many.py: 0 passed, 3.3s, FAILED [70/158] test_contents_page.py: 3 passed, 1.6s, FAILED [71/158] test_contrast.py: 2 passed, 1.5s, FAILED [72/158] test_docinfo.py: 1 passed, 1.7s, FAILED [74/158] test_ebooks.py: 2 passed, 1.8s, FAILED [75/158] test_delete_pages.py: 0 passed, 2.6s, FAILED [77/158] test_filename.py: 8 passed, 1.6s, FAILED [81/158] test_formats.py: 8 passed, 1.7s, FAILED [83/158] test_findbar.py: 0 passed, 3.8s, FAILED [84/158] test_hide_pictures.py: 1 passed, 1.6s, FAILED [86/158] test_history.py: 1 passed, 1.5s, FAILED [91/158] test_layers_panel.py: 1 passed, 1.4s, FAILED [92/158] test_large_pages.py: 1 passed, 2.6s, FAILED [93/158] test_lookup.py: 2 passed, 1.3s, FAILED [94/158] test_linkpreview.py: 0 passed, 2.6s, FAILED [95/158] test_lookups.py: 1 passed, 1.5s, FAILED [97/158] test_objects.py: 4 passed, 1.1s, FAILED [98/158] test_mystamps.py: 2 passed, 1.6s, FAILED [99/158] test_modes.py: 0 passed, 2.8s, FAILED [101/158] test_one_width.py: 0 passed, 1.4s, FAILED [104/158] test_open_recent.py: 0 passed, 1.5s, FAILED [106/158] test_pagepick.py: 1 passed, 1.5s, FAILED [108/158] test_pandoc.py: 1 passed, 1.4s, FAILED [109/158] test_paste_picture.py: 0 passed, 1.5s, FAILED [110/158] test_performance.py: 6 passed, 1.5s, FAILED [113/158] test_pictures.py: 0 passed, 2.6s, FAILED [114/158] test_readingorder.py: 1 passed, 1.5s, FAILED [115/158] test_instance.py: 8 passed, 14.8s, FAILED [116/158] test_protection.py: 6 passed, 2.4s, FAILED [117/158] test_readingbar.py: 0 passed, 2.6s, FAILED [121/158] test_rtl.py: 0 passed, 1.5s, FAILED [122/158] test_revert.py: 0 passed, 2.1s, FAILED [123/158] test_runnable.py: 1 passed, 2.6s, FAILED [124/158] test_scanner.py: 2 passed, 2.1s, FAILED [126/158] test_selectionbar.py: 0 passed, 2.6s, FAILED [129/158] test_snapshots.py: 0 passed, 1.5s, FAILED [131/158] test_snippets.py: 0 passed, 2.5s, FAILED [133/158] test_signature_picture.py: 8 passed, 3.5s, FAILED [134/158] test_settings_more.py: 9 passed, 5.2s, FAILED [138/158] test_stabilizer.py: 0 passed, 2.0s, FAILED [140/158] test_startup.py: 8 passed, 2.3s, FAILED [141/158] test_steps.py: 6 passed, 1.7s, FAILED [144/158] test_textindex.py: 42 passed, 3.1s, FAILED [145/158] test_thumbcache.py: 3 passed, 1.6s, FAILED [146/158] test_textselect.py: 0 passed, 3.7s, FAILED [147/158] test_thisfile.py: 1 passed, 2.6s, FAILED [154/158] test_visualcompare.py: 3 passed, 1.8s, FAILED [156/158] test_wordcount.py: 1 passed, 1.6s, FAILED [157/158] test_wordfinder.py: 6 passed, 1.6s, FAILED [158/158] test_work_counts.py: 0 passed, 1.4s, FAILED ====================================================================== impose/test_gui.py ====================================================================== ...............FFF....F...FF...Fs [100%] =================================== FAILURES =================================== ___________________________ test_preview_apply_undo ____________________________ app = window = tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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-f2nmfuvy/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-f2nmfuvy/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-f2nmfuvy/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-f2nmfuvy/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-f2nmfuvy/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-f2nmfuvy/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-f2nmfuvy/impose_test_gui.py/tmp/test_save_saves_what_the_resul0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbcd376ac80> 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-f2nmfuvy/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-f2nmfuvy/impose_test_gui.py/tmp/test_a_save_is_not_lost_to_the0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbcd35062e0> 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-f2nmfuvy/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-f2nmfuvy/impose_test_gui.py/tmp/test_save_as_pdfa_or_pdfx0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbcd3542ac0> 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-f2nmfuvy/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 7.74s ====================================================================== test_ocr.py ====================================================================== ...sss..FF....F.. [100%] =================================== FAILURES =================================== ____________________ test_text_recognised_into_the_document ____________________ window = tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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-f2nmfuvy/test_ocr.py/tmp/test_the_mode_ocr0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f94507d6450> @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-f2nmfuvy/test_ocr.py/tmp/test_an_area_read_again0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f9450752ea0> @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.19s ====================================================================== redact/test_gui.py ====================================================================== EEEEEEEEEEEEEEEEEEEE [100%] ==================================== ERRORS ==================================== ___________________ ERROR at setup of test_draw_move_resize ____________________ app = sample = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/redact_test_gui.py/tmp/test_draw_move_resize0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/redact_test_gui.py/tmp/test_draw_move_resize0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3674140640> @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-f2nmfuvy/redact_test_gui.py/tmp/test_tiny_drag_draws_nothing0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/redact_test_gui.py/tmp/test_tiny_drag_draws_nothing0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f367b3a5220> @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-f2nmfuvy/redact_test_gui.py/tmp/test_over_text_marks_it_ctrl_d0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/redact_test_gui.py/tmp/test_over_text_marks_it_ctrl_d0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f36734db770> @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-f2nmfuvy/redact_test_gui.py/tmp/test_double_click_a_word0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/redact_test_gui.py/tmp/test_double_click_a_word0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f36734ee9c0> @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-f2nmfuvy/redact_test_gui.py/tmp/test_repeat_on_pages_then_save0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/redact_test_gui.py/tmp/test_repeat_on_pages_then_save0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f36734ef8a0> @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-f2nmfuvy/redact_test_gui.py/tmp/test_a_box_moved_on_another_pa0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/redact_test_gui.py/tmp/test_a_box_moved_on_another_pa0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f367329ba50> @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-f2nmfuvy/redact_test_gui.py/tmp/test_default_colour_is_kept0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/redact_test_gui.py/tmp/test_default_colour_is_kept0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3673299150> @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-f2nmfuvy/redact_test_gui.py/tmp/test_find_and_redact0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/redact_test_gui.py/tmp/test_find_and_redact0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3670d90320> @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-f2nmfuvy/redact_test_gui.py/tmp/test_find_several_and_patterns0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/redact_test_gui.py/tmp/test_find_several_and_patterns0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3670d919a0> @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-f2nmfuvy/redact_test_gui.py/tmp/test_properties_codes_and_defa0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/redact_test_gui.py/tmp/test_properties_codes_and_defa0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f36732ab690> @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-f2nmfuvy/redact_test_gui.py/tmp/test_modes_keep_to_their_own0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/redact_test_gui.py/tmp/test_modes_keep_to_their_own0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3670c76dd0> @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-f2nmfuvy/redact_test_gui.py/tmp/test_marks_are_saved_with_the_0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/redact_test_gui.py/tmp/test_marks_are_saved_with_the_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3670308940> @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-f2nmfuvy/redact_test_gui.py/tmp/test_copy_asks_to_save_other_c0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/redact_test_gui.py/tmp/test_copy_asks_to_save_other_c0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3673fd37d0> @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-f2nmfuvy/redact_test_gui.py/tmp/test_never_over_the_document0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/redact_test_gui.py/tmp/test_never_over_the_document0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3670cf34d0> @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-f2nmfuvy/redact_test_gui.py/tmp/test_flattened_copies_leave_th0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/redact_test_gui.py/tmp/test_flattened_copies_leave_th0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3670dccf70> @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-f2nmfuvy/redact_test_gui.py/tmp/test_bookmarks_that_give_away_0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/redact_test_gui.py/tmp/test_bookmarks_that_give_away_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3670123070> @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-f2nmfuvy/redact_test_gui.py/tmp/test_sanitize_and_metadata0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/redact_test_gui.py/tmp/test_sanitize_and_metadata0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f365bba3930> @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-f2nmfuvy/redact_test_gui.py/tmp/test_the_result0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/redact_test_gui.py/tmp/test_the_result0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f365baeeb70> @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-f2nmfuvy/redact_test_gui.py/tmp/test_box_menu0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/redact_test_gui.py/tmp/test_box_menu0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f36703664e0> @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-f2nmfuvy/redact_test_gui.py/tmp/test_saving_in_another_process0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/redact_test_gui.py/tmp/test_saving_in_another_process0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f36701bbbd0> @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 11.91s ====================================================================== pages/test_reduce.py ====================================================================== ........F.. [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ heavy = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_reduce.py/tmp/test_in_the_window0/heavy.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_reduce.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f9b74bb2e40> 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 20.81s ====================================================================== test_navigation.py ====================================================================== EEEFEEE.EEEFEEEEEEEEEEEEEEEEEEEFEFFEEEEEE.EEFE. [100%] ==================================== ERRORS ==================================== __________________ ERROR at setup of test_the_bookmarks_panel __________________ book = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_the_bookmarks_panel0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_the_bookmarks_panel0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3b8549d0> @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-f2nmfuvy/test_navigation.py/tmp/test_the_panel_in_every_mode0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_the_panel_in_every_mode0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3b854510> @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-f2nmfuvy/test_navigation.py/tmp/test_editing_bookmarks0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_editing_bookmarks0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe49aff0b0> @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-f2nmfuvy/test_navigation.py/tmp/test_following_links0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_following_links0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3b79b460> @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-f2nmfuvy/test_navigation.py/tmp/test_the_history_of_jumps0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_the_history_of_jumps0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3a5a5a50> @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-f2nmfuvy/test_navigation.py/tmp/test_find_leaves_places_in_the0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_find_leaves_places_in_the0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3a5a7350> @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-f2nmfuvy/test_navigation.py/tmp/test_opening_where_it_was_left0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_opening_where_it_was_left0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3a5c8d70> @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-f2nmfuvy/test_navigation.py/tmp/test_opening_as_the_document_a0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_opening_as_the_document_a0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe49a01550> @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-f2nmfuvy/test_navigation.py/tmp/test_the_bookmarks_start_hidde0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_the_bookmarks_start_hidde0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe49a02430> @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-f2nmfuvy/test_navigation.py/tmp/test_two_pages_side_by_side0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_two_pages_side_by_side0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe4a2af7d0> @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-f2nmfuvy/test_navigation.py/tmp/test_a_document_asking_for_two0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_a_document_asking_for_two0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3b7d3f50> @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-f2nmfuvy/test_navigation.py/tmp/test_more_zooms0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_more_zooms0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3995eba0> @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-f2nmfuvy/test_navigation.py/tmp/test_rotating_the_view0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_rotating_the_view0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3a164d60> @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-f2nmfuvy/test_navigation.py/tmp/test_reading_colours0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_reading_colours0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe397544b0> @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-f2nmfuvy/test_navigation.py/tmp/test_full_screen_presentation0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_full_screen_presentation0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe397540f0> @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-f2nmfuvy/test_navigation.py/tmp/test_f11_from_the_page_in_view0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_f11_from_the_page_in_view0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3aa38cb0> @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-f2nmfuvy/test_navigation.py/tmp/test_a_presentation_with_timed0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_a_presentation_with_timed0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe38354ad0> @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-f2nmfuvy/test_navigation.py/tmp/test_tabs_and_a_split_view0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_tabs_and_a_split_view0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe38354750> @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-f2nmfuvy/test_navigation.py/tmp/test_reloading_a_file_changed_0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_reloading_a_file_changed_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe39d8e7b0> @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-f2nmfuvy/test_navigation.py/tmp/test_the_details_of_a_page_on_0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_the_details_of_a_page_on_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3a07d390> @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-f2nmfuvy/test_navigation.py/tmp/test_scrolling_with_space_the_0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_scrolling_with_space_the_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3a7af9a0> @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-f2nmfuvy/test_navigation.py/tmp/test_hiding_the_gaps_between_p0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_hiding_the_gaps_between_p0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3a7aeeb0> @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-f2nmfuvy/test_navigation.py/tmp/test_the_page_navigation_bar0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_the_page_navigation_bar0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3a881940> @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-f2nmfuvy/test_navigation.py/tmp/test_ocr_from_the_thumbnails_i0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_ocr_from_the_thumbnails_i0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3a234a60> @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-f2nmfuvy/test_navigation.py/tmp/test_extracted_pages_open_in_a0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_extracted_pages_open_in_a0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3a237a10> @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-f2nmfuvy/test_navigation.py/tmp/test_the_thumbnails_are_in_the0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_the_thumbnails_are_in_the0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe380ca970> @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-f2nmfuvy/test_navigation.py/tmp/test_f5_is_preview_in_impose_a0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_f5_is_preview_in_impose_a0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe33efd1d0> @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-f2nmfuvy/test_navigation.py/tmp/test_left_and_right_turn_the_p0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_left_and_right_turn_the_p0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe33efff50> @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-f2nmfuvy/test_navigation.py/tmp/test_bookmark_keys_as_in_okula0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_bookmark_keys_as_in_okula0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3830e970> @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-f2nmfuvy/test_navigation.py/tmp/test_down_a_screen0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_down_a_screen0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3a982ba0> @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-f2nmfuvy/test_navigation.py/tmp/test_the_overlap_in_the_settin0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_the_overlap_in_the_settin0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3a935400> @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-f2nmfuvy/test_navigation.py/tmp/test_halfway0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_halfway0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe38387a80> @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-f2nmfuvy/test_navigation.py/tmp/test_find_in_this_chapter0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_find_in_this_chapter0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe38387770> @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-f2nmfuvy/test_navigation.py/tmp/test_the_marked_place0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_the_marked_place0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe39456120> @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-f2nmfuvy/test_navigation.py/tmp/test_previous_view_comes_back_0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_previous_view_comes_back_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe33a6fee0> @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-f2nmfuvy/test_navigation.py/tmp/test_near_in_the_dialog0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_near_in_the_dialog0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe33a6f150> @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-f2nmfuvy/test_navigation.py/tmp/test_each_document_keeps_its_l0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_each_document_keeps_its_l0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3a4c63c0> @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-f2nmfuvy/test_navigation.py/tmp/test_the_thumbnails_frame_the_0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_the_thumbnails_frame_the_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3a4cfe00> @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-f2nmfuvy/test_navigation.py/tmp/test_bookmarks_from_the_headin0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3b79af10> 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-f2nmfuvy/test_navigation.py/tmp/test_the_last_session_opened_a0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_the_last_session_opened_a0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3a0bd640> 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-f2nmfuvy/test_navigation.py/tmp/test_floating_parts_go_with_th0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_navigation.py/tmp/test_floating_parts_go_with_th0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe33e9e970> 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-f2nmfuvy/test_navigation.py/tmp/test_trimmed_margins0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe33b18ec0> 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-f2nmfuvy/test_navigation.py/tmp/test_a_change_of_the_document_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe33b18c90> 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-f2nmfuvy/test_navigation.py/tmp/test_links_by_their_letters0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbe3a4cd1d0> 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 26.72s ====================================================================== test_renderer.py ====================================================================== ........FFFF [100%] =================================== FAILURES =================================== _____________________ test_the_canvas_shows_a_skipped_page _____________________ app = slow_pdf = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_renderer.py/tmp/slow0/slow.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_renderer.py/tmp/test_the_canvas_shows_a_skippe0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f1cbf5467b0> 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-f2nmfuvy/test_renderer.py/tmp/test_thumbnails_only_near_thos0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f1cbf62dd30> 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-f2nmfuvy/test_renderer.py/tmp/test_deep_zoom_in_tiles0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f1cbf4c6c10> 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-f2nmfuvy/test_renderer.py/tmp/test_tiles_waiting_here_are_as0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f1cbf72bd40> 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.77s ====================================================================== test_large_documents.py ====================================================================== EEEEEEE [100%] ==================================== ERRORS ==================================== ____________________ ERROR at setup of test_rows_worked_out ____________________ long_pdf = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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-f2nmfuvy/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-f2nmfuvy/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-f2nmfuvy/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-f2nmfuvy/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-f2nmfuvy/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-f2nmfuvy/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.35s ====================================================================== annotate/test_link_edit.py ====================================================================== FFF. [100%] =================================== FAILURES =================================== _________________________ test_draw_change_remove_undo _________________________ window = tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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-f2nmfuvy/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-f2nmfuvy/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 1.97s ====================================================================== forms/test_data.py ====================================================================== .......F. [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ form = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/forms_test_data.py/tmp/test_in_the_window0/form.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/forms_test_data.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3c4b018050> 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.26s ====================================================================== forms/test_fill.py ====================================================================== ..FF [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ form = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/forms_test_fill.py/tmp/test_in_the_window0/form.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/forms_test_fill.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fdf2451b9b0> 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-f2nmfuvy/forms_test_fill.py/tmp/test_formats_checks_and_sums0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fdf246b7ce0> 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.72s ====================================================================== pages/test_arrange.py ====================================================================== .......F... [100%] =================================== FAILURES =================================== _________________________________ test_window __________________________________ book = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_arrange.py/tmp/test_window0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_arrange.py/tmp/test_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fec866e05f0> @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.33s ====================================================================== annotate/test_gui.py ====================================================================== EEEEEEEEEEEEFEEEEEEEEEEEEEEEEEEEEEEEEEEEEEFEEEEEE.EEEEEEEEEE.EEEEE [100%] ==================================== ERRORS ==================================== ____________________ ERROR at setup of test_highlight_text _____________________ app = sample = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_highlight_text0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_highlight_text0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8788c12190> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_draw_move_resize0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_draw_move_resize0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8788c116e0> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_lines_and_drawings0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_lines_and_drawings0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f87881c3650> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_note_and_text_box0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_note_and_text_box0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f87881c6ad0> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_a_box_dragged_shows_a_fra0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_a_box_dragged_shows_a_fra0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f87881c7460> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_a_note_shows_where_it_goe0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_a_note_shows_where_it_goe0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f87812aa650> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_a_note_dragged_has_its_po0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_a_note_dragged_has_its_po0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f87812ab950> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_a_tool_buttons_tip_has_it0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_a_tool_buttons_tip_has_it0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f87881f7980> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_comment_in_the_panel0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_comment_in_the_panel0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8781500500> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_new_colour_is_kept0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_new_colour_is_kept0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f879016e430> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_save_and_open_again0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_save_and_open_again0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f879016f230> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_save_as0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_save_as0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8781015230> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_language0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_language0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f87802dfd10> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_new_tools0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_new_tools0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8788b08310> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_polygon_by_clicks0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_polygon_by_clicks0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8781904470> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_eraser0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_eraser0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8772d0d950> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_select_by_frame_copy_past0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_select_by_frame_copy_past0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8772d99130> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_lock0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_lock0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8780293bf0> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_filters_and_navigation0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_filters_and_navigation0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f87800cc650> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_tool_behaviour0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_tool_behaviour0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8771b6e650> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_recovery0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_recovery0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8780877b60> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_export_import0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_export_import0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8771bbea50> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_settings_dialog0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_settings_dialog0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8780943d90> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_save_as_pdfa0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_save_as_pdfa0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f878117aeb0> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_panel_can_be_hidden0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_panel_can_be_hidden0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f878117b230> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_text_written_on_the_page0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_text_written_on_the_page0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f877175a430> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_escape_steps_back0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_escape_steps_back0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8772861240> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_escape_in_the_panel0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_escape_in_the_panel0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8772863e70> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_replies_status_and_tags_i0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_replies_status_and_tags_i0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8772449b70> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_find_and_highlight0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_find_and_highlight0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8772449ef0> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_continuous_and_one_page0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_continuous_and_one_page0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8780ce4d70> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_marker_and_pressure0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_marker_and_pressure0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8780ce78c0> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_thumbnail_size0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_thumbnail_size0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f87813da7b0> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_print_and_exports0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_print_and_exports0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f87817217f0> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_many_annotations_are_list0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_many_annotations_are_list0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8780f2d390> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_items_made_again_only_whe0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_items_made_again_only_whe0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8780f2d2b0> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_file_changed_elsewhere_be0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_file_changed_elsewhere_be0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8780f2f230> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_formatting_written_on_the0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_formatting_written_on_the0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f87705abe00> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_border_colour_in_the_prop0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_border_colour_in_the_prop0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f87803f6890> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_groups_in_the_window0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_groups_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f87803f6ba0> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_textual_criticism_in_the_0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_textual_criticism_in_the_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f87691a47c0> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_exports_leave_out_other_k0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_exports_leave_out_other_k0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f87691a7a80> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_pressure_along_a_stroke0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_pressure_along_a_stroke0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f87676c64a0> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_layers_in_the_window0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_layers_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f876773d470> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_searchable_copy0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_searchable_copy0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f877098cf30> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_pen_eraser_end0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_pen_eraser_end0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f87669cda20> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_pen_strokes0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_pen_strokes0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f87669ce0b0> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_pen_side_button_moves_the0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_pen_side_button_moves_the0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f876ab2f7e0> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_thumbnails_hidden0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_thumbnails_hidden0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f876ab2cd00> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_writing_by_hand0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_writing_by_hand0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f877002ac10> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_pen_dots_and_freehand_hig0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_pen_dots_and_freehand_hig0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8765d352b0> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_replace_text0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_replace_text0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8780a534d0> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_compare_in_the_window0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_compare_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8780a53700> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_typewriter_and_marks0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_typewriter_and_marks0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f876959a5f0> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_attach_a_file0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_attach_a_file0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8769571080> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_signature0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_signature0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8769573e70> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_find_dialog_steps_and_his0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_find_dialog_steps_and_his0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8766f1ef90> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_panel_when_the_mode_is_ch0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_panel_when_the_mode_is_ch0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8768405f60> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_save_keeps_the_view0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_save_keeps_the_view0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8766e6f9a0> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_changes_of_the_document_k0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_changes_of_the_document_k0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8766e6fbd0> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_eraser_between_two_positi0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_eraser_between_two_positi0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f87629e2b30> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_flatten_in_the_document0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_flatten_in_the_document0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f876184da20> @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-f2nmfuvy/annotate_test_gui.py/tmp/test_pages_rendered_elsewhere0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_pages_rendered_elsewhere0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8788c7c890> 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-f2nmfuvy/annotate_test_gui.py/tmp/test_other_kinds_listed_not_ch0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_gui.py/tmp/test_other_kinds_listed_not_ch0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f87691a7770> 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 41.18s ====================================================================== annotate/test_sidecar_gui.py ====================================================================== FFFFFFFFFFF [100%] =================================== FAILURES =================================== _____________________ test_apart_without_touching_the_pdf ______________________ make = .make at 0x7f0b1de3bab0> book = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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 0x7f0b1d126820> book = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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 0x7f0b1d126a30> sample = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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 0x7f0b1778e820> book = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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 0x7f0b1de3bb60> book = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_sidecar_gui.py/tmp/test_save_as_and_a_copy_with_t0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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 0x7f0b1de3af00> book = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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 0x7f0b1699b530> book = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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 0x7f0b1606bcc0> book = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/annotate_test_sidecar_gui.py/tmp/test_import_skim_notes0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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 0x7f0b1699b530> book = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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 0x7f0b16b0ada0> book = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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 0x7f0b170237f0> book = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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 6.61s ====================================================================== pages/test_combine.py ====================================================================== ......F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ two = (PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_combine.py/tmp/test_in_the_window0/a.pdf'), PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_combine.py/tmp/test_in_the_window0/b.pdf')) tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_combine.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3e86c00050> 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.34s ====================================================================== pages/test_crop.py ====================================================================== ...F..F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ doc = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_crop.py/tmp/test_in_the_window0/c.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_crop.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3c547485a0> 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-f2nmfuvy/pages_test_crop.py/tmp/test_removing_in_the_window0/c.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_crop.py/tmp/test_removing_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f3c53eed550> 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.63s ====================================================================== pages/test_export.py ====================================================================== .......F. [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ doc = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_export.py/tmp/test_in_the_window0/doc.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_export.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f5bdc1fbc50> 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.38s ====================================================================== pages/test_from_images.py ====================================================================== .....F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ pics = (PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_from_images.py/tmp/test_in_the_window0/wide.png'), PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_from_images.py/tmp/test_in_the_window0/tall.jpg')) tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_from_images.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f1acdd63c50> 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.16s ====================================================================== pages/test_outlines.py ====================================================================== ..F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ doc = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_outlines.py/tmp/test_in_the_window0/t.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_outlines.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f1b1bd83d10> 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.21s ====================================================================== pages/test_overlay.py ====================================================================== ...F. [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ files = (PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_overlay.py/tmp/test_in_the_window0/body.pdf'), PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_overlay.py/tmp/test_in_the_window0/head.pdf')) tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_overlay.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb1e5878050> 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.08s ====================================================================== 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-f2nmfuvy/pages_test_labels_shown.py/tmp/test_number_this_page_in_read_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facbbe5fce0> @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-f2nmfuvy/pages_test_labels_shown.py/tmp/test_nothing_to_change_is_said0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facbbe5fa80> @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-f2nmfuvy/pages_test_labels_shown.py/tmp/test_select_all_thumbnails0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7facbb0c6e70> @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.04s ====================================================================== pages/test_recolor.py ====================================================================== ...F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ doc = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_recolor.py/tmp/test_in_the_window0/c.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_recolor.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f6d1df04490> 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.24s ====================================================================== pages/test_rasterize.py ====================================================================== ......F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ sample = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_rasterize.py/tmp/test_in_the_window0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_rasterize.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f53788ec450> 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.70s ====================================================================== 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-f2nmfuvy/pages_test_gui.py/tmp/test_labels_in_the_table_and_t0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8290a403e0> @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-f2nmfuvy/pages_test_gui.py/tmp/test_list_of_labels0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8290a40050> @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-f2nmfuvy/pages_test_gui.py/tmp/test_header_footer_and_waterma0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f829013ac30> @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-f2nmfuvy/pages_test_gui.py/tmp/test_annotations_stay_on_their0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f829017a9c0> @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-f2nmfuvy/pages_test_gui.py/tmp/test_view_on_opening_and_menus0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f82901799d0> @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-f2nmfuvy/pages_test_gui.py/tmp/test_the_page_actions_belong_t0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f828fd45a50> @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-f2nmfuvy/pages_test_gui.py/tmp/test_the_page_box_shows_and_ta0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f828fd47650> @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-f2nmfuvy/pages_test_gui.py/tmp/test_the_page_box_is_shown_onc0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f82901aa030> @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-f2nmfuvy/pages_test_gui.py/tmp/test_several_thumbnails_chosen0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f82901ab110> @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-f2nmfuvy/pages_test_gui.py/tmp/test_the_menu_of_pages_in_grou0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f828f436190> @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-f2nmfuvy/pages_test_gui.py/tmp/test_pages_copied_and_moved_to0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f828f435710> @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.26s ====================================================================== pages/test_sorter.py ====================================================================== .EE [100%] ==================================== ERRORS ==================================== ______________________ ERROR at setup of test_the_dialog _______________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_sorter.py/tmp/test_the_dialog0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fa235c7c2b0> @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-f2nmfuvy/pages_test_sorter.py/tmp/test_one_step_of_the_history0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fa24471b410> @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.46s ====================================================================== pages/test_split.py ====================================================================== ....F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ book = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_split.py/tmp/test_in_the_window0/book.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_split.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fdb2b7408d0> 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 1.99s ====================================================================== pages/test_tables.py ====================================================================== ...F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ doc = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_tables.py/tmp/test_in_the_window0/t.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_tables.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f59f13cc380> 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.23s ====================================================================== pages/test_version.py ====================================================================== .......F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ doc = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_version.py/tmp/test_in_the_window0/d.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_version.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f81b3b51400> 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.25s ====================================================================== pages/test_scans.py ====================================================================== ....F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_scans.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f2de08b5590> 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.55s ====================================================================== redact/test_covered.py ====================================================================== .........FF [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/redact_test_covered.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb8466dc4b0> 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-f2nmfuvy/redact_test_covered.py/tmp/test_nothing_found_in_the_wind0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb8466dc670> sample = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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.57s ====================================================================== test_accessibility.py ====================================================================== ...F. [100%] =================================== FAILURES =================================== ________________________ test_quick_fixes_in_the_window ________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_accessibility.py/tmp/test_quick_fixes_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f2f4346c270> 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 0.91s ====================================================================== test_attachments.py ====================================================================== E.. [100%] ==================================== ERRORS ==================================== ____________ ERROR at setup of test_the_panel_of_the_attached_files ____________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_attachments.py/tmp/test_the_panel_of_the_attached0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f24061ffbb0> @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 1.01s ====================================================================== 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-f2nmfuvy/pages_test_working.py/tmp/test_labels_then_undo_redo_and0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_working.py/tmp/test_labels_then_undo_redo_and0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe20c5a4510> @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-f2nmfuvy/pages_test_working.py/tmp/test_pages_moved_with_their_an0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_working.py/tmp/test_pages_moved_with_their_an0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe20c5a4180> @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-f2nmfuvy/pages_test_working.py/tmp/test_redacted_copy_from_the_wo0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_working.py/tmp/test_redacted_copy_from_the_wo0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe20bad6f90> @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-f2nmfuvy/pages_test_working.py/tmp/test_save_as_after_undoing_a_c0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_working.py/tmp/test_save_as_after_undoing_a_c0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe20bb4a250> @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-f2nmfuvy/pages_test_working.py/tmp/test_change_of_language_keeps_0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_working.py/tmp/test_change_of_language_keeps_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe20b893a50> @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-f2nmfuvy/pages_test_working.py/tmp/test_working_copies_on_disk_no0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_working.py/tmp/test_working_copies_on_disk_no0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe20b890d50> @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-f2nmfuvy/pages_test_working.py/tmp/test_a_change_writes_the_annot0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_working.py/tmp/test_a_change_writes_the_annot0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe20bb7bc50> @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-f2nmfuvy/pages_test_working.py/tmp/test_the_history_keeps_ten_cha0/sample.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/pages_test_working.py/tmp/test_the_history_keeps_ten_cha0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe20bb7b4d0> @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.52s ====================================================================== test_ask.py ====================================================================== .F. [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ server = 'http://127.0.0.1:36941/v1' tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_ask.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fcf18dd3a80> 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.68s ====================================================================== test_bookmarkfile.py ====================================================================== .........FF [100%] =================================== FAILURES =================================== _____________________ test_the_panel_writes_and_reads_them _____________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_bookmarkfile.py/tmp/test_the_panel_writes_and_read0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f27675feb30> 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-f2nmfuvy/test_bookmarkfile.py/tmp/test_the_branches_left_open_co0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f27675ff230> 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.42s ====================================================================== test_backends.py ====================================================================== .................FF. [100%] =================================== FAILURES =================================== ______________________ test_the_setting_and_the_question _______________________ window = pdf = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_backends.py/tmp/test_the_setting_and_the_quest0/engines.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_backends.py/tmp/test_the_setting_and_the_quest0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f406b30f430> 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-f2nmfuvy/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.34s ====================================================================== test_boxes.py ====================================================================== FFF [100%] =================================== FAILURES =================================== _________________________________ test_frames __________________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_boxes.py/tmp/test_frames0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f40d95402b0> 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-f2nmfuvy/test_boxes.py/tmp/test_form_fields_framed0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f40d9540050> 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-f2nmfuvy/test_boxes.py/tmp/test_page_boxes_framed0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f40d2f51370> 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.05s ====================================================================== test_caret.py ====================================================================== EEE [100%] ==================================== ERRORS ==================================== _________________________ ERROR at setup of test_moves _________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_caret.py/tmp/test_moves0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fcfd4963230> @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-f2nmfuvy/test_caret.py/tmp/test_selecting_and_copying0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fcfd4962fd0> @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-f2nmfuvy/test_caret.py/tmp/test_the_shortcuts_are_the_car0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fcfcbdc6690> @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.01s ====================================================================== test_checkfile.py ====================================================================== ..F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ files = (PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_checkfile.py/tmp/test_in_the_window0/ok.pdf'), PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_checkfile.py/tmp/test_in_the_window0/bad.pdf')) tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_checkfile.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f82380b7d10> 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.18s ====================================================================== 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-f2nmfuvy/test_carry_over.py/tmp/test_a_change_draws_only_the_p0/d.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_carry_over.py/tmp/test_a_change_draws_only_the_p0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f534eafc290> @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-f2nmfuvy/test_carry_over.py/tmp/test_saving_draws_nothing_agai0/d.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_carry_over.py/tmp/test_saving_draws_nothing_agai0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f534e8fe690> @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-f2nmfuvy/test_carry_over.py/tmp/test_other_settings_of_drawing0/d.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_carry_over.py/tmp/test_other_settings_of_drawing0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f534e8fd260> @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.12s ====================================================================== test_columns.py ====================================================================== EE [100%] ==================================== ERRORS ==================================== _________________________ ERROR at setup of test_rows __________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_columns.py/tmp/test_rows0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f9ee00842b0> @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-f2nmfuvy/test_columns.py/tmp/test_kept_with_the_document_an0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f9ee0084050> @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.53s ====================================================================== test_comment_sign.py ====================================================================== .E [100%] ==================================== ERRORS ==================================== _________________ ERROR at setup of test_the_sign_on_the_page __________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_comment_sign.py/tmp/test_the_sign_on_the_page0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f72211aeb10> @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.03s ====================================================================== test_close_document.py ====================================================================== .FFFF [100%] =================================== FAILURES =================================== __________________________________ test_tabs ___________________________________ pdfs = [PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_close_document.py/tmp/test_tabs0/one.pdf'), PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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-f2nmfuvy/test_close_document.py/tmp/test_a_window_by_itself0/one.pdf'), PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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-f2nmfuvy/test_close_document.py/tmp/test_it_asks_before_the_empty_0/one.pdf'), PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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-f2nmfuvy/test_close_document.py/tmp/test_it_asks_before_the_empty_1/one.pdf'), PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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 2.77s ====================================================================== test_close_many.py ====================================================================== FFFF [100%] =================================== FAILURES =================================== ____________________________ test_a_window_of_tabs _____________________________ pdfs = [PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_close_many.py/tmp/test_a_window_of_tabs0/one.pdf'), PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_close_many.py/tmp/test_a_window_of_tabs0/two.pdf')] monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f2a1c108640> 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-f2nmfuvy/test_close_many.py/tmp/test_one_document_and_the_sett0/one.pdf'), PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_close_many.py/tmp/test_one_document_and_the_sett0/two.pdf')] monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f2a1c1083e0> 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-f2nmfuvy/test_close_many.py/tmp/test_quit0/one.pdf'), PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_close_many.py/tmp/test_quit0/two.pdf')] monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f2a143b1c70> 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-f2nmfuvy/test_close_many.py/tmp/test_the_setting_in_the_dialog0/one.pdf'), PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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.69s ====================================================================== test_contents_page.py ====================================================================== ..F. [100%] =================================== FAILURES =================================== ____________________ test_the_panel_makes_it_as_one_change _____________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_contents_page.py/tmp/test_the_panel_makes_it_as_one0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f0566568710> 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.18s ====================================================================== test_contrast.py ====================================================================== ..F [100%] =================================== FAILURES =================================== ___________________________ test_the_field_of_a_note ___________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_contrast.py/tmp/test_the_field_of_a_note0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f604c66f650> 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.06s ====================================================================== test_docinfo.py ====================================================================== .F [100%] =================================== FAILURES =================================== _______________________________ test_the_dialog ________________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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.25s ====================================================================== test_ebooks.py ====================================================================== ..F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_ebooks.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fad622a3e30> 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.30s ====================================================================== 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-f2nmfuvy/test_delete_pages.py/tmp/test_delete_in_the_thumbnails_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4cbe58f490> @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-f2nmfuvy/test_delete_pages.py/tmp/test_no_answer_nothing_deleted0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4cbe58f230> @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-f2nmfuvy/test_delete_pages.py/tmp/test_keybindings_opens_the_sho0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4cb99dae70> @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.05s ====================================================================== test_filename.py ====================================================================== ........F [100%] =================================== FAILURES =================================== ___________________________ test_save_as_proposes_it ___________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_filename.py/tmp/test_save_as_proposes_it0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faa75739f40> 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.11s ====================================================================== test_formats.py ====================================================================== ....F.... [100%] =================================== FAILURES =================================== ___________________ test_a_document_opened_as_with_open_with ___________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_formats.py/tmp/test_a_document_opened_as_with0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f077ac81040> 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.24s ====================================================================== test_findbar.py ====================================================================== EEEEE [100%] ==================================== ERRORS ==================================== ________________ ERROR at setup of test_comes_down_from_the_top ________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_findbar.py/tmp/test_comes_down_from_the_top0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb3432bf360> @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-f2nmfuvy/test_findbar.py/tmp/test_the_first_place_at_once0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb3432befd0> @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-f2nmfuvy/test_findbar.py/tmp/test_as_you_type0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb340f0e9f0> @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-f2nmfuvy/test_findbar.py/tmp/test_history_close_and_the_res0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb340f296a0> @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-f2nmfuvy/test_findbar.py/tmp/test_f3_and_the_toolbar0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb340f2a030> @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.15s ====================================================================== test_hide_pictures.py ====================================================================== .F [100%] =================================== FAILURES =================================== _______________________________ test_the_window ________________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_hide_pictures.py/tmp/test_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8874428770> 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.07s ====================================================================== test_history.py ====================================================================== .E [100%] ==================================== ERRORS ==================================== _______________________ ERROR at setup of test_the_panel _______________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_history.py/tmp/test_the_panel0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f1aae8adcd0> @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.07s ====================================================================== test_layers_panel.py ====================================================================== .F [100%] =================================== FAILURES =================================== ________________________________ test_the_panel ________________________________ layered = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_layers_panel.py/tmp/test_the_panel0/l.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_layers_panel.py/tmp/test_the_panel0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f25502df230> 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.01s ====================================================================== test_large_pages.py ====================================================================== .EEE [100%] ==================================== ERRORS ==================================== ____________ ERROR at setup of test_new_annotations_follow_the_page ____________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_large_pages.py/tmp/test_new_annotations_follow_th0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f563eda1480> @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-f2nmfuvy/test_large_pages.py/tmp/test_a_note_is_written_in_lett0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f564ce47410> @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-f2nmfuvy/test_large_pages.py/tmp/test_a_note_icon_can_be_seen_a0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f563c7e67a0> @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 2.06s ====================================================================== test_lookup.py ====================================================================== ..EE [100%] ==================================== ERRORS ==================================== _____________ ERROR at setup of test_in_the_menu_of_the_selection ______________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_lookup.py/tmp/test_in_the_menu_of_the_select0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f88b299bd10> @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-f2nmfuvy/test_lookup.py/tmp/test_in_the_settings0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f88b21de140> @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 0.95s ====================================================================== test_linkpreview.py ====================================================================== EEE [100%] ==================================== ERRORS ==================================== ______________________ ERROR at setup of test_the_target _______________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_linkpreview.py/tmp/test_the_target0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ff4047b8180> @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-f2nmfuvy/test_linkpreview.py/tmp/test_the_picture0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ff40494be10> @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-f2nmfuvy/test_linkpreview.py/tmp/test_on_the_bookmarks0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ff4024a2690> @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.02s ====================================================================== test_lookups.py ====================================================================== .F [100%] =================================== FAILURES =================================== _____________________________ test_from_the_window _____________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_lookups.py/tmp/test_from_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f130c1e4510> 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 1.03s ====================================================================== test_objects.py ====================================================================== ....F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ window = tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_objects.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb428ae8050> 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.73s ====================================================================== test_mystamps.py ====================================================================== ..F [100%] =================================== FAILURES =================================== _________________________ test_put_on_a_page_and_saved _________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_mystamps.py/tmp/test_put_on_a_page_and_saved0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ff8327c8050> 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 1.09s ====================================================================== test_modes.py ====================================================================== FFFF [100%] =================================== FAILURES =================================== ___________________________ test_the_modes_in_order ____________________________ app = sample = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_modes.py/tmp/test_the_modes_in_order0/sample.pdf') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4fb6937ce0> 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-f2nmfuvy/test_modes.py/tmp/test_read_touches_nothing0/sample.pdf') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4fb6937820> 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-f2nmfuvy/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-f2nmfuvy/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.26s ====================================================================== test_one_width.py ====================================================================== F [100%] =================================== FAILURES =================================== ________________________________ test_one_width ________________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_one_width.py/tmp/test_one_width0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb69d1dc050> 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.89s ====================================================================== test_open_recent.py ====================================================================== F [100%] =================================== FAILURES =================================== _______________________________ test_open_recent _______________________________ pdfs = [PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_open_recent.py/tmp/test_open_recent0/one.pdf'), PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_open_recent.py/tmp/test_open_recent0/two.pdf')] tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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.08s ====================================================================== test_pagepick.py ====================================================================== .F [100%] =================================== FAILURES =================================== ________________________ test_chosen_in_the_thumbnails _________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_pagepick.py/tmp/test_chosen_in_the_thumbnails0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f962a2215b0> 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.02s ====================================================================== test_pandoc.py ====================================================================== .ssssssssssE [100%] ==================================== ERRORS ==================================== ____________________ ERROR at setup of test_without_pandoc _____________________ doc = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_pandoc.py/tmp/test_without_pandoc0/doc.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_pandoc.py/tmp/test_without_pandoc0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f756cdf8b00> @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.97s ====================================================================== test_paste_picture.py ====================================================================== F [100%] =================================== FAILURES =================================== ______________________________ test_paste_picture ______________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_paste_picture.py/tmp/test_paste_picture0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7ff8b67d8510> 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.01s ====================================================================== test_performance.py ====================================================================== .F.F.... [100%] =================================== FAILURES =================================== __________________ test_every_thumbnail_with_the_profile_all ___________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_performance.py/tmp/test_every_thumbnail_with_the_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f77c291b100> 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-f2nmfuvy/test_performance.py/tmp/test_the_dialog_and_transparen0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f77cb1748d0> text_pdf = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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.03s ====================================================================== test_pictures.py ====================================================================== EEE [100%] ==================================== ERRORS ==================================== ________________ ERROR at setup of test_the_picture_of_an_area _________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_pictures.py/tmp/test_the_picture_of_an_area0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f793d0d6ea0> @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-f2nmfuvy/test_pictures.py/tmp/test_with_the_annotations_of_n0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f793d0d6c40> @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-f2nmfuvy/test_pictures.py/tmp/test_the_picture_and_the_link_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7938436d50> @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.03s ====================================================================== test_readingorder.py ====================================================================== .F [100%] =================================== FAILURES =================================== __________________________ test_selection_by_columns ___________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_readingorder.py/tmp/test_selection_by_columns0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fbbd07043e0> 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.06s ====================================================================== test_instance.py ====================================================================== F..F...FF..F. [100%] =================================== FAILURES =================================== ___________________ test_files_given_to_the_program_running ____________________ app = tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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-f2nmfuvy/test_instance.py/tmp/test_quit_and_the_setting0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f97977ffbd0> 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-f2nmfuvy/test_instance.py/tmp/test_a_window_kept_ready0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f979479d9a0> 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-f2nmfuvy/test_instance.py/tmp/test_start_with_the_session0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f9794561b80> 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-f2nmfuvy/test_instance.py/tmp/test_what_macos_says_to_the_pr0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f9798689640> 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.05s ====================================================================== test_protection.py ====================================================================== ......FF [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ app = plain = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_protection.py/tmp/test_in_the_window0/plain.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_protection.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faccda93350> 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-f2nmfuvy/test_protection.py/tmp/test_a_protection_that_fails_l0/plain.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_protection.py/tmp/test_a_protection_that_fails_l0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7faccd4ffb60> 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 1.89s ====================================================================== test_readingbar.py ====================================================================== EEE [100%] ==================================== ERRORS ==================================== _______________________ ERROR at setup of test_the_lines _______________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_readingbar.py/tmp/test_the_lines0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe1bc9d36f0> @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-f2nmfuvy/test_readingbar.py/tmp/test_moving_it0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe1bc9d3490> @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-f2nmfuvy/test_readingbar.py/tmp/test_the_arrows_scroll_without0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe1b3cf67b0> @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.07s ====================================================================== test_rtl.py ====================================================================== F [100%] =================================== FAILURES =================================== ______________________________ test_right_to_left ______________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_rtl.py/tmp/test_right_to_left0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f45d5412b10> 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.06s ====================================================================== test_revert.py ====================================================================== EE [100%] ==================================== ERRORS ==================================== ________________________ ERROR at setup of test_revert _________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_revert.py/tmp/test_revert0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7feb8a3449d0> @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-f2nmfuvy/test_revert.py/tmp/test_impose_keeps_f50') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7feb8a344770> @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.56s ====================================================================== test_runnable.py ====================================================================== .EEE [100%] ==================================== ERRORS ==================================== ___________ ERROR at setup of test_an_attached_program_is_not_opened ___________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_runnable.py/tmp/test_an_attached_program_is_no0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f2ae42e42b0> @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-f2nmfuvy/test_runnable.py/tmp/test_nor_from_its_annotation0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f2af3f0f410> @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-f2nmfuvy/test_runnable.py/tmp/test_nor_a_link_to_one0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f2ae389d9d0> @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.06s ====================================================================== test_scanner.py ====================================================================== ..F [100%] =================================== FAILURES =================================== ______________________________ test_in_the_window ______________________________ fake = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_scanner.py/tmp/test_in_the_window0/bin/scanimage') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_scanner.py/tmp/test_in_the_window0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f20b206bad0> 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.60s ====================================================================== test_selectionbar.py ====================================================================== EEE [100%] ==================================== ERRORS ==================================== ________________________ ERROR at setup of test_the_bar ________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_selectionbar.py/tmp/test_the_bar0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f2c999383e0> @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-f2nmfuvy/test_selectionbar.py/tmp/test_it_goes_away0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f2c99938180> @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-f2nmfuvy/test_selectionbar.py/tmp/test_in_a_document_that_cannot0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f2c932ea690> @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.09s ====================================================================== test_snapshots.py ====================================================================== F [100%] =================================== FAILURES =================================== ________________________ test_a_snapshot_kept_and_back _________________________ window = tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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.03s ====================================================================== test_snippets.py ====================================================================== EEE [100%] ==================================== ERRORS ==================================== ________________ ERROR at setup of test_a_comment_put_as_a_note ________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_snippets.py/tmp/test_a_comment_put_as_a_note0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f473d79c510> @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-f2nmfuvy/test_snippets.py/tmp/test_without_comments_it_says_0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f473d79c2b0> @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-f2nmfuvy/test_snippets.py/tmp/test_written_in_the_settings0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f47371da690> @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.01s ====================================================================== test_signature_picture.py ====================================================================== ..F..F.... [100%] =================================== FAILURES =================================== ____________________________ test_put_with_the_tool ____________________________ scan = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_signature_picture.py/tmp/test_put_with_the_tool0/scan.jpg') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_signature_picture.py/tmp/test_put_with_the_tool0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f9cdcff0ef0> 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-f2nmfuvy/test_signature_picture.py/tmp/test_the_size0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f9cdc466f50> scan = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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-f2nmfuvy/test_settings_more.py/tmp/test_documents0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7efd51728250> 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-f2nmfuvy/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.21s ====================================================================== test_stabilizer.py ====================================================================== EE [100%] ==================================== ERRORS ==================================== _______________________ ERROR at setup of test_steadier ________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_stabilizer.py/tmp/test_steadier0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f097ae5b100> @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-f2nmfuvy/test_stabilizer.py/tmp/test_the_setting0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f097ae5aea0> @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.57s ====================================================================== test_startup.py ====================================================================== .......F. [100%] =================================== FAILURES =================================== _____________________ test_first_drawing_without_the_pause _____________________ window = tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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.66s ====================================================================== test_steps.py ====================================================================== .....F. [100%] =================================== FAILURES =================================== _______________________________ test_the_dialog ________________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_steps.py/tmp/test_the_dialog0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f8d5ee36350> 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.21s ====================================================================== test_textindex.py ====================================================================== ........................................FF.. [100%] =================================== FAILURES =================================== _______________________ test_one_index_for_every_search ________________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_textindex.py/tmp/test_one_index_for_every_searc0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f0911e2a740> 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-f2nmfuvy/test_textindex.py/tmp/test_find_all_page_by_page_and0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f09117eb230> 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.61s ====================================================================== test_thumbcache.py ====================================================================== ...F [100%] =================================== FAILURES =================================== ___________ test_a_document_opened_again_shows_them_without_drawing ____________ pdf = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_thumbcache.py/tmp/test_a_document_opened_again_s0/d.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_thumbcache.py/tmp/test_a_document_opened_again_s0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f7462074160> 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.09s ====================================================================== test_textselect.py ====================================================================== EEEEE [100%] ==================================== ERRORS ==================================== ___________________ ERROR at setup of test_a_word_and_a_line ___________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_textselect.py/tmp/test_a_word_and_a_line0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f25d7107e10> @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-f2nmfuvy/test_textselect.py/tmp/test_a_drag_across_pages_copie0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f25d7107bb0> @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-f2nmfuvy/test_textselect.py/tmp/test_column_shift_click_escape0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f25d642a690> @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-f2nmfuvy/test_textselect.py/tmp/test_in_every_mode0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f25d70419d0> @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-f2nmfuvy/test_textselect.py/tmp/test_copied_without_line_break0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f25d64da030> @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.10s ====================================================================== test_thisfile.py ====================================================================== .EEE [100%] ==================================== ERRORS ==================================== ___________________ ERROR at setup of test_next_and_previous ___________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_thisfile.py/tmp/test_next_and_previous0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f31a05796e0> @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-f2nmfuvy/test_thisfile.py/tmp/test_rename_keeps_it_open_with0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f31a8bb3410> @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-f2nmfuvy/test_thisfile.py/tmp/test_to_the_trash_and_the_next0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f31982616a0> @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.02s ====================================================================== test_visualcompare.py ====================================================================== .E.. [100%] ==================================== ERRORS ==================================== _____________ ERROR at setup of test_the_window_of_the_comparison ______________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_visualcompare.py/tmp/test_the_window_of_the_compari0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fb428c27e10> @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.25s ====================================================================== test_wordcount.py ====================================================================== .E [100%] ==================================== ERRORS ==================================== ______________________ ERROR at setup of test_the_dialog _______________________ tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_wordcount.py/tmp/test_the_dialog0') monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe4719dc2b0> @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-f2nmfuvy/test_wordfinder.py/tmp/test_the_dialog0/labelled.pdf') tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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.16s ====================================================================== test_work_counts.py ====================================================================== F [100%] =================================== FAILURES =================================== __________________ test_a_long_document_asks_for_no_more_work __________________ pdfs = {50: PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_work_counts.py/tmp/counts0/50.pdf'), 500: PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/test_work_counts.py/tmp/counts0/500.pdf')} monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f85f0e1ad70> tmp_path = PosixPath('/tmp/py-pdftools-tests-f2nmfuvy/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.01s 6 error, 202 errors, 117 failed, 805 passed, 54 skipped (158 files) in 112.7s: FAILED (92 files) RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.sabGVC (%check) Bad exit status from /var/tmp/rpm-tmp.sabGVC (%check) Finish: rpmbuild py-pdftools-1.32.0-1.fc46.src.rpm Finish: build phase for py-pdftools-1.32.0-1.fc46.src.rpm INFO: chroot_scan: 1 files copied to /var/lib/copr-rpmbuild/results/chroot_scan INFO: /var/lib/mock/fedora-rawhide-x86_64-1795997168.508416/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.fc46.src.rpm) Config(fedora-rawhide-x86_64) 2 minutes 26 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 b53115e6e0ce4b049aba51be9970d82f -D /var/lib/mock/fedora-rawhide-x86_64-1795997168.508416/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