Warning: Permanently added '54.236.29.139' (ED25519) to the list of known hosts.
Running (timeout=172800): unbuffer mock --spec /var/lib/copr-rpmbuild/workspace/workdir-3jqdgxvv/python-sqlalchemy-utils/python-sqlalchemy-utils.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-3jqdgxvv/python-sqlalchemy-utils --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1737918962.995286 -r /var/lib/copr-rpmbuild/results/configs/child.cfg
INFO: mock.py version 6.0 starting (python version = 3.13.0, NVR = mock-6.0-1.fc41), args: /usr/libexec/mock/mock --spec /var/lib/copr-rpmbuild/workspace/workdir-3jqdgxvv/python-sqlalchemy-utils/python-sqlalchemy-utils.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-3jqdgxvv/python-sqlalchemy-utils --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1737918962.995286 -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-3jqdgxvv/python-sqlalchemy-utils/python-sqlalchemy-utils.spec)  Config(fedora-41-x86_64)
Start: clean chroot
Finish: clean chroot
Mock Version: 6.0
INFO: Mock Version: 6.0
Start(bootstrap): chroot init
INFO: mounting tmpfs at /var/lib/mock/fedora-41-x86_64-bootstrap-1737918962.995286/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:41
INFO: Pulling image: registry.fedoraproject.org/fedora:41
INFO: Tagging container image as mock-bootstrap-c4ec92e4-00cc-4859-8976-bba88d17f8b8
INFO: Checking that a432b057a522737c229d2aac9b029f55bf2a44eb3f423e4e4ece2acb8a304652 image matches host's architecture
INFO: Copy content of container a432b057a522737c229d2aac9b029f55bf2a44eb3f423e4e4ece2acb8a304652 to /var/lib/mock/fedora-41-x86_64-bootstrap-1737918962.995286/root
INFO: mounting a432b057a522737c229d2aac9b029f55bf2a44eb3f423e4e4ece2acb8a304652 with podman image mount
INFO: image a432b057a522737c229d2aac9b029f55bf2a44eb3f423e4e4ece2acb8a304652 as /var/lib/containers/storage/overlay/c9636add90844f42998958a532f08e880f2904e56e7e03e6d453e29ae1b586c4/merged
INFO: umounting image a432b057a522737c229d2aac9b029f55bf2a44eb3f423e4e4ece2acb8a304652 (/var/lib/containers/storage/overlay/c9636add90844f42998958a532f08e880f2904e56e7e03e6d453e29ae1b586c4/merged) with podman image umount
INFO: Removing image mock-bootstrap-c4ec92e4-00cc-4859-8976-bba88d17f8b8
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-41-x86_64-1737918962.995286/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-4.20.0-1.fc41.x86_64
  rpm-sequoia-1.7.0-3.fc41.x86_64
  dnf5-5.2.8.1-3.fc41.x86_64
  dnf5-plugins-5.2.8.1-3.fc41.x86_64
Start: installing minimal buildroot with dnf5
Updating and loading repositories:
 updates                                100% |   1.0 MiB/s |  31.0 KiB |  00m00s
 fedora                                 100% | 578.9 KiB/s |  31.8 KiB |  00m00s
 Copr repository                        100% |  73.0 KiB/s |   1.5 KiB |  00m00s
 Copr repository                        100% |  37.4 MiB/s |   1.4 MiB |  00m00s
Repositories loaded.
Package                            Arch   Version                     Repository      Size
Installing group/module packages:
 bash                              x86_64 5.2.32-1.fc41               fedora       8.2 MiB
 bzip2                             x86_64 1.0.8-19.fc41               fedora      95.7 KiB
 coreutils                         x86_64 9.5-11.fc41                 updates      5.7 MiB
 cpio                              x86_64 2.15-2.fc41                 fedora       1.1 MiB
 diffutils                         x86_64 3.10-8.fc41                 fedora       1.6 MiB
 fedora-release-common             noarch 41-29                       updates     19.7 KiB
 findutils                         x86_64 1:4.10.0-4.fc41             fedora       1.8 MiB
 gawk                              x86_64 5.3.0-4.fc41                fedora       1.7 MiB
 glibc-minimal-langpack            x86_64 2.40-17.fc41                updates      0.0   B
 grep                              x86_64 3.11-9.fc41                 fedora       1.0 MiB
 gzip                              x86_64 1.13-2.fc41                 fedora     389.0 KiB
 info                              x86_64 7.1-3.fc41                  fedora     361.8 KiB
 patch                             x86_64 2.7.6-25.fc41               fedora     266.7 KiB
 redhat-rpm-config                 noarch 293-1.fc41                  fedora     183.5 KiB
 rpm-build                         x86_64 4.20.0-1.fc41               fedora     194.3 KiB
 sed                               x86_64 4.9-3.fc41                  fedora     861.5 KiB
 shadow-utils                      x86_64 2:4.15.1-12.fc41            fedora       4.1 MiB
 tar                               x86_64 2:1.35-4.fc41               fedora       2.9 MiB
 unzip                             x86_64 6.0-64.fc41                 fedora     386.8 KiB
 util-linux                        x86_64 2.40.4-1.fc41               updates      3.6 MiB
 which                             x86_64 2.21-42.fc41                fedora      80.2 KiB
 xz                                x86_64 1:5.6.2-2.fc41              fedora       1.2 MiB
Installing dependencies:
 add-determinism                   x86_64 0.3.6-3.fc41                updates      2.4 MiB
 alternatives                      x86_64 1.31-1.fc41                 updates     64.8 KiB
 ansible-srpm-macros               noarch 1-16.fc41                   fedora      35.7 KiB
 audit-libs                        x86_64 4.0.3-1.fc41                updates    351.3 KiB
 authselect                        x86_64 1.5.0-8.fc41                fedora     157.6 KiB
 authselect-libs                   x86_64 1.5.0-8.fc41                fedora     822.2 KiB
 basesystem                        noarch 11-21.fc41                  fedora       0.0   B
 binutils                          x86_64 2.43.1-5.fc41               updates     27.4 MiB
 build-reproducibility-srpm-macros noarch 0.3.6-3.fc41                updates    735.0   B
 bzip2-libs                        x86_64 1.0.8-19.fc41               fedora      80.7 KiB
 ca-certificates                   noarch 2024.2.69_v8.0.401-1.0.fc41 fedora       2.4 MiB
 coreutils-common                  x86_64 9.5-11.fc41                 updates     11.2 MiB
 cracklib                          x86_64 2.9.11-6.fc41               fedora     238.9 KiB
 crypto-policies                   noarch 20241029-1.git8baf557.fc41  updates    136.9 KiB
 curl                              x86_64 8.9.1-3.fc41                updates    793.5 KiB
 cyrus-sasl-lib                    x86_64 2.1.28-27.fc41              fedora       2.3 MiB
 debugedit                         x86_64 5.1-4.fc41                  updates    197.7 KiB
 dwz                               x86_64 0.15-8.fc41                 fedora     298.9 KiB
 ed                                x86_64 1.20.2-2.fc41               fedora     146.9 KiB
 efi-srpm-macros                   noarch 5-13.fc41                   updates     40.2 KiB
 elfutils                          x86_64 0.192-7.fc41                updates      2.6 MiB
 elfutils-debuginfod-client        x86_64 0.192-7.fc41                updates     81.4 KiB
 elfutils-default-yama-scope       noarch 0.192-7.fc41                updates      1.8 KiB
 elfutils-libelf                   x86_64 0.192-7.fc41                updates      1.2 MiB
 elfutils-libs                     x86_64 0.192-7.fc41                updates    654.9 KiB
 fedora-gpg-keys                   noarch 41-1                        fedora     126.4 KiB
 fedora-release                    noarch 41-29                       updates      0.0   B
 fedora-release-identity-basic     noarch 41-29                       updates    682.0   B
 fedora-repos                      noarch 41-1                        fedora       4.9 KiB
 file                              x86_64 5.45-7.fc41                 fedora     103.5 KiB
 file-libs                         x86_64 5.45-7.fc41                 fedora       9.9 MiB
 filesystem                        x86_64 3.18-23.fc41                fedora     106.0   B
 fonts-srpm-macros                 noarch 1:2.0.5-17.fc41             fedora      55.8 KiB
 forge-srpm-macros                 noarch 0.4.0-1.fc41                updates     38.9 KiB
 fpc-srpm-macros                   noarch 1.3-13.fc41                 fedora     144.0   B
 gdb-minimal                       x86_64 15.2-4.fc41                 updates     12.7 MiB
 gdbm                              x86_64 1:1.23-7.fc41               fedora     460.9 KiB
 gdbm-libs                         x86_64 1:1.23-7.fc41               fedora     121.9 KiB
 ghc-srpm-macros                   noarch 1.9.1-2.fc41                fedora     747.0   B
 glibc                             x86_64 2.40-17.fc41                updates      6.6 MiB
 glibc-common                      x86_64 2.40-17.fc41                updates      1.0 MiB
 glibc-gconv-extra                 x86_64 2.40-17.fc41                updates      7.8 MiB
 gmp                               x86_64 1:6.3.0-2.fc41              fedora     811.4 KiB
 gnat-srpm-macros                  noarch 6-6.fc41                    fedora       1.0 KiB
 go-srpm-macros                    noarch 3.6.0-5.fc41                updates     60.8 KiB
 jansson                           x86_64 2.13.1-10.fc41              fedora      88.3 KiB
 json-c                            x86_64 0.17-4.fc41                 fedora      82.4 KiB
 kernel-srpm-macros                noarch 1.0-24.fc41                 fedora       1.9 KiB
 keyutils-libs                     x86_64 1.6.3-4.fc41                fedora      54.4 KiB
 krb5-libs                         x86_64 1.21.3-3.fc41               updates      2.3 MiB
 libacl                            x86_64 2.3.2-2.fc41                fedora      40.0 KiB
 libarchive                        x86_64 3.7.4-4.fc41                updates    926.6 KiB
 libattr                           x86_64 2.5.2-4.fc41                fedora      28.5 KiB
 libblkid                          x86_64 2.40.4-1.fc41               updates    257.2 KiB
 libbrotli                         x86_64 1.1.0-5.fc41                fedora     837.6 KiB
 libcap                            x86_64 2.70-4.fc41                 fedora     220.2 KiB
 libcap-ng                         x86_64 0.8.5-3.fc41                fedora      69.2 KiB
 libcom_err                        x86_64 1.47.1-6.fc41               fedora      67.2 KiB
 libcurl                           x86_64 8.9.1-3.fc41                updates    809.3 KiB
 libeconf                          x86_64 0.6.2-3.fc41                fedora      58.0 KiB
 libevent                          x86_64 2.1.12-14.fc41              fedora     895.7 KiB
 libfdisk                          x86_64 2.40.4-1.fc41               updates    356.4 KiB
 libffi                            x86_64 3.4.6-3.fc41                fedora      86.4 KiB
 libgcc                            x86_64 14.2.1-7.fc41               updates    270.9 KiB
 libgomp                           x86_64 14.2.1-7.fc41               updates    514.2 KiB
 libidn2                           x86_64 2.3.7-2.fc41                fedora     329.1 KiB
 libmount                          x86_64 2.40.4-1.fc41               updates    348.8 KiB
 libnghttp2                        x86_64 1.62.1-2.fc41               fedora     166.1 KiB
 libnsl2                           x86_64 2.0.1-2.fc41                fedora      57.9 KiB
 libpkgconf                        x86_64 2.3.0-1.fc41                fedora      78.2 KiB
 libpsl                            x86_64 0.21.5-4.fc41               fedora      80.5 KiB
 libpwquality                      x86_64 1.4.5-11.fc41               fedora     417.8 KiB
 libselinux                        x86_64 3.7-5.fc41                  fedora     181.0 KiB
 libsemanage                       x86_64 3.7-2.fc41                  fedora     293.5 KiB
 libsepol                          x86_64 3.7-2.fc41                  fedora     817.8 KiB
 libsmartcols                      x86_64 2.40.4-1.fc41               updates    176.2 KiB
 libssh                            x86_64 0.10.6-8.fc41               fedora     513.3 KiB
 libssh-config                     noarch 0.10.6-8.fc41               fedora     277.0   B
 libstdc++                         x86_64 14.2.1-7.fc41               updates      2.7 MiB
 libtasn1                          x86_64 4.19.0-9.fc41               fedora     175.7 KiB
 libtirpc                          x86_64 1.3.6-1.rc3.fc41            updates    197.6 KiB
 libtool-ltdl                      x86_64 2.4.7-12.fc41               fedora      66.2 KiB
 libunistring                      x86_64 1.1-8.fc41                  fedora       1.7 MiB
 libutempter                       x86_64 1.2.1-15.fc41               fedora      57.7 KiB
 libuuid                           x86_64 2.40.4-1.fc41               updates     39.9 KiB
 libverto                          x86_64 0.3.2-9.fc41                fedora      29.5 KiB
 libxcrypt                         x86_64 4.4.38-3.fc41               updates    269.9 KiB
 libxml2                           x86_64 2.12.9-1.fc41               updates      1.7 MiB
 libzstd                           x86_64 1.5.6-2.fc41                fedora     795.9 KiB
 lua-libs                          x86_64 5.4.6-6.fc41                fedora     285.0 KiB
 lua-srpm-macros                   noarch 1-14.fc41                   fedora       1.3 KiB
 lz4-libs                          x86_64 1.10.0-1.fc41               fedora     145.5 KiB
 mpfr                              x86_64 4.2.1-5.fc41                fedora     832.1 KiB
 ncurses-base                      noarch 6.5-2.20240629.fc41         fedora     326.3 KiB
 ncurses-libs                      x86_64 6.5-2.20240629.fc41         fedora     975.2 KiB
 ocaml-srpm-macros                 noarch 10-3.fc41                   fedora       1.9 KiB
 openblas-srpm-macros              noarch 2-18.fc41                   fedora     112.0   B
 openldap                          x86_64 2.6.8-7.fc41                updates    631.4 KiB
 openssl-libs                      x86_64 1:3.2.2-11.fc41             updates      7.7 MiB
 p11-kit                           x86_64 0.25.5-3.fc41               fedora       2.2 MiB
 p11-kit-trust                     x86_64 0.25.5-3.fc41               fedora     391.4 KiB
 package-notes-srpm-macros         noarch 0.5-12.fc41                 fedora       1.6 KiB
 pam                               x86_64 1.6.1-7.fc41                updates      1.8 MiB
 pam-libs                          x86_64 1.6.1-7.fc41                updates    139.0 KiB
 pcre2                             x86_64 10.44-1.fc41.1              fedora     653.5 KiB
 pcre2-syntax                      noarch 10.44-1.fc41.1              fedora     251.6 KiB
 perl-srpm-macros                  noarch 1-56.fc41                   fedora     861.0   B
 pkgconf                           x86_64 2.3.0-1.fc41                fedora      88.6 KiB
 pkgconf-m4                        noarch 2.3.0-1.fc41                fedora      14.4 KiB
 pkgconf-pkg-config                x86_64 2.3.0-1.fc41                fedora     989.0   B
 popt                              x86_64 1.19-7.fc41                 fedora     136.9 KiB
 publicsuffix-list-dafsa           noarch 20250116-1.fc41             updates     68.5 KiB
 pyproject-srpm-macros             noarch 1.16.4-1.fc41               copr_base    1.9 KiB
 python-srpm-macros                noarch 3.13-3.fc41                 fedora      51.0 KiB
 qt5-srpm-macros                   noarch 5.15.15-1.fc41              fedora     500.0   B
 qt6-srpm-macros                   noarch 6.8.1-4.fc41                updates    456.0   B
 readline                          x86_64 8.2-10.fc41                 fedora     493.2 KiB
 rpm                               x86_64 4.20.0-1.fc41               fedora       3.1 MiB
 rpm-build-libs                    x86_64 4.20.0-1.fc41               fedora     206.7 KiB
 rpm-libs                          x86_64 4.20.0-1.fc41               fedora     725.9 KiB
 rpm-sequoia                       x86_64 1.7.0-3.fc41                updates      2.3 MiB
 rust-srpm-macros                  noarch 26.3-3.fc41                 fedora       4.8 KiB
 setup                             noarch 2.15.0-8.fc41               updates    720.7 KiB
 sqlite-libs                       x86_64 3.46.1-2.fc41               updates      1.5 MiB
 systemd-libs                      x86_64 256.11-1.fc41               updates      2.0 MiB
 util-linux-core                   x86_64 2.40.4-1.fc41               updates      1.5 MiB
 xxhash-libs                       x86_64 0.8.3-1.fc41                updates     88.5 KiB
 xz-libs                           x86_64 1:5.6.2-2.fc41              fedora     214.4 KiB
 zig-srpm-macros                   noarch 1-3.fc41                    fedora       1.1 KiB
 zip                               x86_64 3.0-41.fc41                 fedora     703.2 KiB
 zlib-ng-compat                    x86_64 2.2.3-1.fc41                updates    138.5 KiB
 zstd                              x86_64 1.5.6-2.fc41                fedora       1.7 MiB
Installing groups:
 Buildsystem building group                                                               

Transaction Summary:
 Installing:       154 packages

Total size of inbound packages is 52 MiB. Need to download 0 B.
After this operation, 180 MiB extra will be used (install 180 MiB, remove 0 B).
[1/1] tar-2:1.35-4.fc41.x86_64          100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[1/1] Total                             100% |   0.0   B/s |   0.0   B |  00m00s
[1/2] bzip2-0:1.0.8-19.fc41.x86_64      100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[2/2] Total                             100% |   0.0   B/s |   0.0   B |  00m00s
[1/3] redhat-rpm-config-0:293-1.fc41.no 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[3/3] Total                             100% |   0.0   B/s |   0.0   B |  00m00s
[1/4] rpm-build-0:4.20.0-1.fc41.x86_64  100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[4/4] Total                             100% |   0.0   B/s |   0.0   B |  00m00s
[1/5] unzip-0:6.0-64.fc41.x86_64        100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[5/5] Total                             100% |   0.0   B/s |   0.0   B |  00m00s
[1/6] cpio-0:2.15-2.fc41.x86_64         100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[6/6] Total                             100% |   0.0   B/s |   0.0   B |  00m00s
[1/7] which-0:2.21-42.fc41.x86_64       100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[7/7] Total                             100% |   0.0   B/s |   0.0   B |  00m00s
[1/8] bash-0:5.2.32-1.fc41.x86_64       100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[8/8] Total                             100% |   0.0   B/s |   0.0   B |  00m00s
[1/9] grep-0:3.11-9.fc41.x86_64         100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[9/9] Total                             100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/10] patch-0:2.7.6-25.fc41.x86_64    100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[10/10] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/11] sed-0:4.9-3.fc41.x86_64         100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[11/11] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/12] shadow-utils-2:4.15.1-12.fc41.x 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[12/12] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/13] diffutils-0:3.10-8.fc41.x86_64  100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[13/13] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/14] findutils-1:4.10.0-4.fc41.x86_6 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[14/14] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/15] gzip-0:1.13-2.fc41.x86_64       100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[15/15] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/16] info-0:7.1-3.fc41.x86_64        100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[16/16] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/17] xz-1:5.6.2-2.fc41.x86_64        100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[17/17] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/18] coreutils-0:9.5-11.fc41.x86_64  100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[18/18] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/19] util-linux-0:2.40.4-1.fc41.x86_ 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[19/19] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/20] fedora-release-common-0:41-29.n 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[20/20] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/21] gawk-0:5.3.0-4.fc41.x86_64      100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[21/21] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/22] glibc-minimal-langpack-0:2.40-1 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[22/22] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/23] libacl-0:2.3.2-2.fc41.x86_64    100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[23/23] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/24] libselinux-0:3.7-5.fc41.x86_64  100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[24/24] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/25] bzip2-libs-0:1.0.8-19.fc41.x86_ 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[25/25] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/26] ansible-srpm-macros-0:1-16.fc41 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[26/26] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/27] dwz-0:0.15-8.fc41.x86_64        100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[27/27] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/28] file-0:5.45-7.fc41.x86_64       100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[28/28] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/29] fonts-srpm-macros-1:2.0.5-17.fc 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[29/29] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/30] fpc-srpm-macros-0:1.3-13.fc41.n 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[30/30] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/31] ghc-srpm-macros-0:1.9.1-2.fc41. 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[31/31] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/32] gnat-srpm-macros-0:6-6.fc41.noa 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[32/32] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/33] kernel-srpm-macros-0:1.0-24.fc4 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[33/33] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/34] lua-srpm-macros-0:1-14.fc41.noa 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[34/34] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/35] ocaml-srpm-macros-0:10-3.fc41.n 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[35/35] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/36] openblas-srpm-macros-0:2-18.fc4 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[36/36] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/37] package-notes-srpm-macros-0:0.5 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[37/37] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/38] perl-srpm-macros-0:1-56.fc41.no 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[38/38] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/39] python-srpm-macros-0:3.13-3.fc4 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[39/39] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/40] qt5-srpm-macros-0:5.15.15-1.fc4 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[40/40] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/41] rpm-0:4.20.0-1.fc41.x86_64      100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[41/41] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/42] rust-srpm-macros-0:26.3-3.fc41. 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[42/42] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/43] zig-srpm-macros-0:1-3.fc41.noar 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[43/43] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/44] zip-0:3.0-41.fc41.x86_64        100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[44/44] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/45] popt-0:1.19-7.fc41.x86_64       100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[45/45] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/46] readline-0:8.2-10.fc41.x86_64   100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[46/46] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/47] rpm-build-libs-0:4.20.0-1.fc41. 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[47/47] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/48] rpm-libs-0:4.20.0-1.fc41.x86_64 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[48/48] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/49] zstd-0:1.5.6-2.fc41.x86_64      100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[49/49] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/50] filesystem-0:3.18-23.fc41.x86_6 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[50/50] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/51] ncurses-libs-0:6.5-2.20240629.f 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[51/51] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/52] pcre2-0:10.44-1.fc41.1.x86_64   100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[52/52] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/53] ed-0:1.20.2-2.fc41.x86_64       100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[53/53] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/54] libattr-0:2.5.2-4.fc41.x86_64   100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[54/54] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/55] libeconf-0:0.6.2-3.fc41.x86_64  100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[55/55] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/56] libsemanage-0:3.7-2.fc41.x86_64 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[56/56] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/57] xz-libs-1:5.6.2-2.fc41.x86_64   100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[57/57] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/58] coreutils-common-0:9.5-11.fc41. 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[58/58] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/59] gmp-1:6.3.0-2.fc41.x86_64       100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[59/59] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/60] libcap-0:2.70-4.fc41.x86_64     100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[60/60] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/61] util-linux-core-0:2.40.4-1.fc41 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[61/61] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/62] libcap-ng-0:0.8.5-3.fc41.x86_64 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[62/62] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/63] libutempter-0:1.2.1-15.fc41.x86 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[63/63] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/64] fedora-repos-0:41-1.noarch      100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[64/64] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/65] mpfr-0:4.2.1-5.fc41.x86_64      100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[65/65] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/66] glibc-common-0:2.40-17.fc41.x86 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[66/66] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/67] libsepol-0:3.7-2.fc41.x86_64    100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[67/67] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/68] file-libs-0:5.45-7.fc41.x86_64  100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[68/68] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/69] lua-libs-0:5.4.6-6.fc41.x86_64  100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[69/69] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/70] libzstd-0:1.5.6-2.fc41.x86_64   100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[70/70] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/71] lz4-libs-0:1.10.0-1.fc41.x86_64 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[71/71] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/72] ncurses-base-0:6.5-2.20240629.f 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[72/72] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/73] pcre2-syntax-0:10.44-1.fc41.1.n 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[73/73] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/74] fedora-gpg-keys-0:41-1.noarch   100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[74/74] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/75] glibc-0:2.40-17.fc41.x86_64     100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[75/75] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/76] glibc-gconv-extra-0:2.40-17.fc4 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[76/76] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/77] basesystem-0:11-21.fc41.noarch  100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[77/77] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/78] libgcc-0:14.2.1-7.fc41.x86_64   100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[78/78] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/79] libstdc++-0:14.2.1-7.fc41.x86_6 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[79/79] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/80] zlib-ng-compat-0:2.2.3-1.fc41.x 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[80/80] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/81] audit-libs-0:4.0.3-1.fc41.x86_6 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[81/81] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/82] libxcrypt-0:4.4.38-3.fc41.x86_6 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[82/82] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/83] pam-libs-0:1.6.1-7.fc41.x86_64  100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[83/83] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/84] setup-0:2.15.0-8.fc41.noarch    100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[84/84] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/85] rpm-sequoia-0:1.7.0-3.fc41.x86_ 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[85/85] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/86] sqlite-libs-0:3.46.1-2.fc41.x86 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[86/86] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/87] elfutils-libelf-0:0.192-7.fc41. 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[87/87] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/88] elfutils-libs-0:0.192-7.fc41.x8 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[88/88] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/89] elfutils-0:0.192-7.fc41.x86_64  100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[89/89] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/90] elfutils-debuginfod-client-0:0. 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[90/90] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/91] json-c-0:0.17-4.fc41.x86_64     100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[91/91] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/92] libgomp-0:14.2.1-7.fc41.x86_64  100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[92/92] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/93] binutils-0:2.43.1-5.fc41.x86_64 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[93/93] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/94] jansson-0:2.13.1-10.fc41.x86_64 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[94/94] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/95] debugedit-0:5.1-4.fc41.x86_64   100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[95/95] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/96] libarchive-0:3.7.4-4.fc41.x86_6 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[96/96] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/97] pkgconf-pkg-config-0:2.3.0-1.fc 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[97/97] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/98] pkgconf-0:2.3.0-1.fc41.x86_64   100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[98/98] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[ 1/99] pkgconf-m4-0:2.3.0-1.fc41.noarc 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[99/99] Total                           100% |   0.0   B/s |   0.0   B |  00m00s
[  1/100] libpkgconf-0:2.3.0-1.fc41.x86 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[100/100] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/101] curl-0:8.9.1-3.fc41.x86_64    100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[101/101] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/102] build-reproducibility-srpm-ma 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[102/102] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/103] add-determinism-0:0.3.6-3.fc4 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[103/103] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/104] efi-srpm-macros-0:5-13.fc41.n 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[104/104] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/105] forge-srpm-macros-0:0.4.0-1.f 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[105/105] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/106] go-srpm-macros-0:3.6.0-5.fc41 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[106/106] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/107] pyproject-srpm-macros-0:1.16. 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[107/107] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/108] qt6-srpm-macros-0:6.8.1-4.fc4 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[108/108] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/109] libblkid-0:2.40.4-1.fc41.x86_ 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[109/109] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/110] libuuid-0:2.40.4-1.fc41.x86_6 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[110/110] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/111] libmount-0:2.40.4-1.fc41.x86_ 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[111/111] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/112] libsmartcols-0:2.40.4-1.fc41. 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[112/112] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/113] systemd-libs-0:256.11-1.fc41. 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[113/113] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/114] libfdisk-0:2.40.4-1.fc41.x86_ 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[114/114] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/115] pam-0:1.6.1-7.fc41.x86_64     100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[115/115] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/116] authselect-0:1.5.0-8.fc41.x86 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[116/116] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/117] gdbm-libs-1:1.23-7.fc41.x86_6 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[117/117] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/118] libnsl2-0:2.0.1-2.fc41.x86_64 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[118/118] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/119] libpwquality-0:1.4.5-11.fc41. 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[119/119] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/120] authselect-libs-0:1.5.0-8.fc4 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[120/120] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/121] cracklib-0:2.9.11-6.fc41.x86_ 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[121/121] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/122] openssl-libs-1:3.2.2-11.fc41. 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[122/122] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/123] ca-certificates-0:2024.2.69_v 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[123/123] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/124] libtirpc-0:1.3.6-1.rc3.fc41.x 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[124/124] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/125] libcom_err-0:1.47.1-6.fc41.x8 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[125/125] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/126] gdbm-1:1.23-7.fc41.x86_64     100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[126/126] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/127] crypto-policies-0:20241029-1. 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[127/127] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/128] krb5-libs-0:1.21.3-3.fc41.x86 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[128/128] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/129] keyutils-libs-0:1.6.3-4.fc41. 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[129/129] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/130] libverto-0:0.3.2-9.fc41.x86_6 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[130/130] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/131] libxml2-0:2.12.9-1.fc41.x86_6 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[131/131] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/132] elfutils-default-yama-scope-0 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[132/132] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/133] alternatives-0:1.31-1.fc41.x8 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[133/133] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/134] libffi-0:3.4.6-3.fc41.x86_64  100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[134/134] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/135] p11-kit-0:0.25.5-3.fc41.x86_6 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[135/135] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/136] libtasn1-0:4.19.0-9.fc41.x86_ 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[136/136] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/137] p11-kit-trust-0:0.25.5-3.fc41 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[137/137] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/138] gdb-minimal-0:15.2-4.fc41.x86 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[138/138] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/139] fedora-release-0:41-29.noarch 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[139/139] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/140] xxhash-libs-0:0.8.3-1.fc41.x8 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[140/140] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/141] fedora-release-identity-basic 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[141/141] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/142] libcurl-0:8.9.1-3.fc41.x86_64 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[142/142] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/143] libbrotli-0:1.1.0-5.fc41.x86_ 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[143/143] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/144] libidn2-0:2.3.7-2.fc41.x86_64 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[144/144] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/145] libnghttp2-0:1.62.1-2.fc41.x8 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[145/145] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/146] libpsl-0:0.21.5-4.fc41.x86_64 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[146/146] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/147] libssh-0:0.10.6-8.fc41.x86_64 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[147/147] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/148] libunistring-0:1.1-8.fc41.x86 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[148/148] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/149] libssh-config-0:0.10.6-8.fc41 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[149/149] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/150] publicsuffix-list-dafsa-0:202 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[150/150] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/151] openldap-0:2.6.8-7.fc41.x86_6 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[151/151] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/152] cyrus-sasl-lib-0:2.1.28-27.fc 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[152/152] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/153] libevent-0:2.1.12-14.fc41.x86 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[153/153] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
[  1/154] libtool-ltdl-0:2.4.7-12.fc41. 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[154/154] Total                         100% |   0.0   B/s |   0.0   B |  00m00s
Running transaction
Importing OpenPGP key 0xE99D6AD1:
 UserID     : "Fedora (41) <fedora-41-primary@fedoraproject.org>"
 Fingerprint: 466CF2D8B60BC3057AA9453ED0622462E99D6AD1
 From       : file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-41-primary
The key was successfully imported.
[  1/156] Verify package files          100% | 895.0   B/s | 154.0   B |  00m00s
>>> Running pre-transaction scriptlet: filesystem-0:3.18-23.fc41.x86_64
>>> Finished pre-transaction scriptlet: filesystem-0:3.18-23.fc41.x86_64
>>> [RPM] /var/lib/mock/fedora-41-x86_64-1737918962.995286/root/var/cache/dnf/co
[  2/156] Prepare transaction           100% |   4.0 KiB/s | 154.0   B |  00m00s
[  3/156] Installing libgcc-0:14.2.1-7. 100% | 266.1 MiB/s | 272.5 KiB |  00m00s
[  4/156] Installing publicsuffix-list- 100% |   0.0   B/s |  69.2 KiB |  00m00s
[  5/156] Installing libssh-config-0:0. 100% |   0.0   B/s | 816.0   B |  00m00s
[  6/156] Installing fedora-release-ide 100% |   0.0   B/s | 940.0   B |  00m00s
[  7/156] Installing fedora-gpg-keys-0: 100% |  42.0 MiB/s | 172.2 KiB |  00m00s
[  8/156] Installing fedora-repos-0:41- 100% |   0.0   B/s |   5.7 KiB |  00m00s
[  9/156] Installing fedora-release-com 100% |  23.4 MiB/s |  24.0 KiB |  00m00s
[ 10/156] Installing fedora-release-0:4 100% |   0.0   B/s | 124.0   B |  00m00s
[ 11/156] Installing setup-0:2.15.0-8.f 100% |  59.1 MiB/s | 726.5 KiB |  00m00s
>>> [RPM] /etc/hosts created as /etc/hosts.rpmnew
[ 12/156] Installing filesystem-0:3.18- 100% |   3.6 MiB/s | 212.5 KiB |  00m00s
[ 13/156] Installing basesystem-0:11-21 100% |   0.0   B/s | 124.0   B |  00m00s
[ 14/156] Installing qt6-srpm-macros-0: 100% |   0.0   B/s | 732.0   B |  00m00s
[ 15/156] Installing pkgconf-m4-0:2.3.0 100% |   0.0   B/s |  14.8 KiB |  00m00s
[ 16/156] Installing pcre2-syntax-0:10. 100% | 248.1 MiB/s | 254.1 KiB |  00m00s
[ 17/156] Installing ncurses-base-0:6.5 100% |  85.9 MiB/s | 351.7 KiB |  00m00s
[ 18/156] Installing glibc-minimal-lang 100% |   0.0   B/s | 124.0   B |  00m00s
[ 19/156] Installing ncurses-libs-0:6.5 100% | 239.7 MiB/s | 981.8 KiB |  00m00s
[ 20/156] Installing glibc-0:2.40-17.fc 100% | 300.6 MiB/s |   6.6 MiB |  00m00s
[ 21/156] Installing bash-0:5.2.32-1.fc 100% | 430.0 MiB/s |   8.2 MiB |  00m00s
[ 22/156] Installing glibc-common-0:2.4 100% | 207.1 MiB/s |   1.0 MiB |  00m00s
[ 23/156] Installing glibc-gconv-extra- 100% | 280.8 MiB/s |   7.9 MiB |  00m00s
[ 24/156] Installing zlib-ng-compat-0:2 100% | 136.1 MiB/s | 139.3 KiB |  00m00s
[ 25/156] Installing bzip2-libs-0:1.0.8 100% |   0.0   B/s |  81.8 KiB |  00m00s
[ 26/156] Installing xz-libs-1:5.6.2-2. 100% | 210.4 MiB/s | 215.5 KiB |  00m00s
[ 27/156] Installing popt-0:1.19-7.fc41 100% |  70.1 MiB/s | 143.5 KiB |  00m00s
[ 28/156] Installing readline-0:8.2-10. 100% | 241.8 MiB/s | 495.3 KiB |  00m00s
[ 29/156] Installing libuuid-0:2.40.4-1 100% |   0.0   B/s |  41.0 KiB |  00m00s
[ 30/156] Installing libblkid-0:2.40.4- 100% | 252.1 MiB/s | 258.2 KiB |  00m00s
[ 31/156] Installing libattr-0:2.5.2-4. 100% |   0.0   B/s |  29.5 KiB |  00m00s
[ 32/156] Installing libacl-0:2.3.2-2.f 100% |   0.0   B/s |  40.7 KiB |  00m00s
[ 33/156] Installing gmp-1:6.3.0-2.fc41 100% | 397.3 MiB/s | 813.7 KiB |  00m00s
[ 34/156] Installing libzstd-0:1.5.6-2. 100% | 389.3 MiB/s | 797.2 KiB |  00m00s
[ 35/156] Installing elfutils-libelf-0: 100% | 389.0 MiB/s |   1.2 MiB |  00m00s
[ 36/156] Installing libstdc++-0:14.2.1 100% | 385.6 MiB/s |   2.7 MiB |  00m00s
[ 37/156] Installing libxcrypt-0:4.4.38 100% | 266.2 MiB/s | 272.6 KiB |  00m00s
[ 38/156] Installing libeconf-0:0.6.2-3 100% |   0.0   B/s |  59.7 KiB |  00m00s
[ 39/156] Installing gdbm-libs-1:1.23-7 100% | 120.7 MiB/s | 123.6 KiB |  00m00s
[ 40/156] Installing dwz-0:0.15-8.fc41. 100% | 293.3 MiB/s | 300.3 KiB |  00m00s
[ 41/156] Installing mpfr-0:4.2.1-5.fc4 100% | 271.4 MiB/s | 833.7 KiB |  00m00s
[ 42/156] Installing gawk-0:5.3.0-4.fc4 100% | 288.7 MiB/s |   1.7 MiB |  00m00s
[ 43/156] Installing unzip-0:6.0-64.fc4 100% | 190.6 MiB/s | 390.3 KiB |  00m00s
[ 44/156] Installing file-libs-0:5.45-7 100% | 709.6 MiB/s |   9.9 MiB |  00m00s
[ 45/156] Installing file-0:5.45-7.fc41 100% |  14.7 MiB/s | 105.0 KiB |  00m00s
>>> Running pre-install scriptlet: crypto-policies-0:20241029-1.git8baf557.fc41.
>>> Finished pre-install scriptlet: crypto-policies-0:20241029-1.git8baf557.fc41
>>> Scriptlet output:
>>> /var/tmp/rpm-tmp.2LY55M: line 2: rm: command not found
>>> 
[ 46/156] Installing crypto-policies-0: 100% |  31.9 MiB/s | 163.3 KiB |  00m00s
[ 47/156] Installing pcre2-0:10.44-1.fc 100% | 319.8 MiB/s | 654.9 KiB |  00m00s
[ 48/156] Installing grep-0:3.11-9.fc41 100% | 250.8 MiB/s |   1.0 MiB |  00m00s
[ 49/156] Installing xz-1:5.6.2-2.fc41. 100% | 241.0 MiB/s |   1.2 MiB |  00m00s
[ 50/156] Installing libcap-ng-0:0.8.5- 100% |  69.4 MiB/s |  71.0 KiB |  00m00s
[ 51/156] Installing audit-libs-0:4.0.3 100% | 172.6 MiB/s | 353.4 KiB |  00m00s
[ 52/156] Installing pam-libs-0:1.6.1-7 100% | 137.9 MiB/s | 141.3 KiB |  00m00s
[ 53/156] Installing libcap-0:2.70-4.fc 100% | 110.0 MiB/s | 225.2 KiB |  00m00s
[ 54/156] Installing systemd-libs-0:256 100% | 331.7 MiB/s |   2.0 MiB |  00m00s
[ 55/156] Installing libsepol-0:3.7-2.f 100% | 399.8 MiB/s | 818.8 KiB |  00m00s
[ 56/156] Installing libselinux-0:3.7-5 100% | 178.0 MiB/s | 182.3 KiB |  00m00s
[ 57/156] Installing sed-0:4.9-3.fc41.x 100% | 212.3 MiB/s | 869.7 KiB |  00m00s
[ 58/156] Installing findutils-1:4.10.0 100% | 371.6 MiB/s |   1.9 MiB |  00m00s
[ 59/156] Installing libmount-0:2.40.4- 100% | 341.6 MiB/s | 349.8 KiB |  00m00s
[ 60/156] Installing lua-libs-0:5.4.6-6 100% | 279.5 MiB/s | 286.2 KiB |  00m00s
[ 61/156] Installing lz4-libs-0:1.10.0- 100% | 143.1 MiB/s | 146.6 KiB |  00m00s
[ 62/156] Installing libsmartcols-0:2.4 100% | 173.2 MiB/s | 177.4 KiB |  00m00s
[ 63/156] Installing libcom_err-0:1.47. 100% |   0.0   B/s |  68.3 KiB |  00m00s
[ 64/156] Installing alternatives-0:1.3 100% |   0.0   B/s |  66.4 KiB |  00m00s
[ 65/156] Installing libffi-0:3.4.6-3.f 100% |  85.7 MiB/s |  87.8 KiB |  00m00s
[ 66/156] Installing libtasn1-0:4.19.0- 100% | 173.3 MiB/s | 177.5 KiB |  00m00s
[ 67/156] Installing p11-kit-0:0.25.5-3 100% | 275.9 MiB/s |   2.2 MiB |  00m00s
[ 68/156] Installing libunistring-0:1.1 100% | 346.1 MiB/s |   1.7 MiB |  00m00s
[ 69/156] Installing libidn2-0:2.3.7-2. 100% | 163.6 MiB/s | 335.1 KiB |  00m00s
[ 70/156] Installing libpsl-0:0.21.5-4. 100% |  79.7 MiB/s |  81.7 KiB |  00m00s
[ 71/156] Installing p11-kit-trust-0:0. 100% |  48.0 MiB/s | 393.1 KiB |  00m00s
[ 72/156] Installing util-linux-core-0: 100% | 245.8 MiB/s |   1.5 MiB |  00m00s
[ 73/156] Installing zstd-0:1.5.6-2.fc4 100% | 422.9 MiB/s |   1.7 MiB |  00m00s
[ 74/156] Installing tar-2:1.35-4.fc41. 100% | 369.8 MiB/s |   3.0 MiB |  00m00s
[ 75/156] Installing libsemanage-0:3.7- 100% | 144.2 MiB/s | 295.2 KiB |  00m00s
[ 76/156] Installing shadow-utils-2:4.1 100% | 173.6 MiB/s |   4.2 MiB |  00m00s
[ 77/156] Installing libutempter-0:1.2. 100% |  58.3 MiB/s |  59.7 KiB |  00m00s
[ 78/156] Installing zip-0:3.0-41.fc41. 100% | 345.2 MiB/s | 707.1 KiB |  00m00s
[ 79/156] Installing gdbm-1:1.23-7.fc41 100% | 227.4 MiB/s | 465.8 KiB |  00m00s
[ 80/156] Installing cyrus-sasl-lib-0:2 100% | 384.3 MiB/s |   2.3 MiB |  00m00s
[ 81/156] Installing libfdisk-0:2.40.4- 100% | 349.0 MiB/s | 357.4 KiB |  00m00s
[ 82/156] Installing libxml2-0:2.12.9-1 100% | 337.2 MiB/s |   1.7 MiB |  00m00s
[ 83/156] Installing bzip2-0:1.0.8-19.f 100% |  97.8 MiB/s | 100.2 KiB |  00m00s
[ 84/156] Installing sqlite-libs-0:3.46 100% | 368.2 MiB/s |   1.5 MiB |  00m00s
[ 85/156] Installing add-determinism-0: 100% | 392.6 MiB/s |   2.4 MiB |  00m00s
[ 86/156] Installing build-reproducibil 100% |   0.0   B/s |   1.0 KiB |  00m00s
[ 87/156] Installing ed-0:1.20.2-2.fc41 100% | 145.7 MiB/s | 149.2 KiB |  00m00s
[ 88/156] Installing patch-0:2.7.6-25.f 100% | 261.9 MiB/s | 268.2 KiB |  00m00s
[ 89/156] Installing elfutils-default-y 100% | 408.6 KiB/s |   2.0 KiB |  00m00s
[ 90/156] Installing elfutils-libs-0:0. 100% | 320.7 MiB/s | 656.7 KiB |  00m00s
[ 91/156] Installing cpio-0:2.15-2.fc41 100% | 274.9 MiB/s |   1.1 MiB |  00m00s
[ 92/156] Installing diffutils-0:3.10-8 100% | 318.1 MiB/s |   1.6 MiB |  00m00s
[ 93/156] Installing json-c-0:0.17-4.fc 100% |  81.7 MiB/s |  83.6 KiB |  00m00s
[ 94/156] Installing libgomp-0:14.2.1-7 100% | 251.7 MiB/s | 515.6 KiB |  00m00s
[ 95/156] Installing jansson-0:2.13.1-1 100% |  87.6 MiB/s |  89.7 KiB |  00m00s
[ 96/156] Installing libpkgconf-0:2.3.0 100% |  77.5 MiB/s |  79.3 KiB |  00m00s
[ 97/156] Installing pkgconf-0:2.3.0-1. 100% |  89.0 MiB/s |  91.1 KiB |  00m00s
[ 98/156] Installing pkgconf-pkg-config 100% |   0.0   B/s |   1.8 KiB |  00m00s
[ 99/156] Installing keyutils-libs-0:1. 100% |  54.5 MiB/s |  55.8 KiB |  00m00s
[100/156] Installing libverto-0:0.3.2-9 100% |   0.0   B/s |  31.3 KiB |  00m00s
[101/156] Installing xxhash-libs-0:0.8. 100% |  87.8 MiB/s |  89.9 KiB |  00m00s
[102/156] Installing libbrotli-0:1.1.0- 100% | 273.4 MiB/s | 839.9 KiB |  00m00s
[103/156] Installing libnghttp2-0:1.62. 100% | 163.2 MiB/s | 167.1 KiB |  00m00s
[104/156] Installing libtool-ltdl-0:2.4 100% |  65.7 MiB/s |  67.3 KiB |  00m00s
[105/156] Installing coreutils-common-0 100% | 399.7 MiB/s |  11.2 MiB |  00m00s
[106/156] Installing openssl-libs-1:3.2 100% | 427.0 MiB/s |   7.7 MiB |  00m00s
[107/156] Installing coreutils-0:9.5-11 100% | 285.3 MiB/s |   5.7 MiB |  00m00s
[108/156] Installing ca-certificates-0: 100% |   3.9 MiB/s |   2.4 MiB |  00m01s
[109/156] Installing krb5-libs-0:1.21.3 100% | 289.9 MiB/s |   2.3 MiB |  00m00s
[110/156] Installing libarchive-0:3.7.4 100% | 302.3 MiB/s | 928.6 KiB |  00m00s
[111/156] Installing libtirpc-0:1.3.6-1 100% | 194.7 MiB/s | 199.4 KiB |  00m00s
[112/156] Installing gzip-0:1.13-2.fc41 100% | 192.7 MiB/s | 394.6 KiB |  00m00s
[113/156] Installing authselect-libs-0: 100% | 163.5 MiB/s | 837.2 KiB |  00m00s
[114/156] Installing cracklib-0:2.9.11- 100% |  81.5 MiB/s | 250.3 KiB |  00m00s
[115/156] Installing libpwquality-0:1.4 100% | 105.0 MiB/s | 430.1 KiB |  00m00s
[116/156] Installing libnsl2-0:2.0.1-2. 100% |  57.7 MiB/s |  59.1 KiB |  00m00s
[117/156] Installing pam-0:1.6.1-7.fc41 100% | 170.7 MiB/s |   1.9 MiB |  00m00s
[118/156] Installing libssh-0:0.10.6-8. 100% | 251.7 MiB/s | 515.4 KiB |  00m00s
[119/156] Installing rpm-sequoia-0:1.7. 100% | 387.3 MiB/s |   2.3 MiB |  00m00s
[120/156] Installing rpm-libs-0:4.20.0- 100% | 355.2 MiB/s | 727.4 KiB |  00m00s
[121/156] Installing rpm-build-libs-0:4 100% | 202.6 MiB/s | 207.5 KiB |  00m00s
[122/156] Installing libevent-0:2.1.12- 100% | 292.8 MiB/s | 899.5 KiB |  00m00s
[123/156] Installing openldap-0:2.6.8-7 100% | 206.8 MiB/s | 635.2 KiB |  00m00s
[124/156] Installing libcurl-0:8.9.1-3. 100% | 263.8 MiB/s | 810.4 KiB |  00m00s
[125/156] Installing elfutils-debuginfo 100% |  81.8 MiB/s |  83.8 KiB |  00m00s
[126/156] Installing elfutils-0:0.192-7 100% | 375.6 MiB/s |   2.6 MiB |  00m00s
[127/156] Installing binutils-0:2.43.1- 100% | 385.7 MiB/s |  27.4 MiB |  00m00s
[128/156] Installing gdb-minimal-0:15.2 100% | 397.4 MiB/s |  12.7 MiB |  00m00s
[129/156] Installing debugedit-0:5.1-4. 100% | 195.7 MiB/s | 200.4 KiB |  00m00s
[130/156] Installing curl-0:8.9.1-3.fc4 100% |  77.7 MiB/s | 796.0 KiB |  00m00s
[131/156] Installing rpm-0:4.20.0-1.fc4 100% | 192.8 MiB/s |   2.5 MiB |  00m00s
[132/156] Installing lua-srpm-macros-0: 100% |   0.0   B/s |   1.9 KiB |  00m00s
[133/156] Installing zig-srpm-macros-0: 100% |   0.0   B/s |   1.7 KiB |  00m00s
[134/156] Installing efi-srpm-macros-0: 100% |   0.0   B/s |  41.2 KiB |  00m00s
[135/156] Installing rust-srpm-macros-0 100% |   0.0   B/s |   5.6 KiB |  00m00s
[136/156] Installing qt5-srpm-macros-0: 100% |   0.0   B/s | 776.0   B |  00m00s
[137/156] Installing perl-srpm-macros-0 100% |   0.0   B/s |   1.1 KiB |  00m00s
[138/156] Installing package-notes-srpm 100% |   0.0   B/s |   2.0 KiB |  00m00s
[139/156] Installing openblas-srpm-macr 100% |   0.0   B/s | 392.0   B |  00m00s
[140/156] Installing ocaml-srpm-macros- 100% |   0.0   B/s |   2.2 KiB |  00m00s
[141/156] Installing kernel-srpm-macros 100% |   0.0   B/s |   2.3 KiB |  00m00s
[142/156] Installing gnat-srpm-macros-0 100% |   0.0   B/s |   1.3 KiB |  00m00s
[143/156] Installing ghc-srpm-macros-0: 100% |   0.0   B/s |   1.0 KiB |  00m00s
[144/156] Installing fpc-srpm-macros-0: 100% |   0.0   B/s | 420.0   B |  00m00s
[145/156] Installing ansible-srpm-macro 100% |   0.0   B/s |  36.2 KiB |  00m00s
[146/156] Installing python-srpm-macros 100% |   0.0   B/s |  52.2 KiB |  00m00s
[147/156] Installing fonts-srpm-macros- 100% |   0.0   B/s |  57.0 KiB |  00m00s
[148/156] Installing forge-srpm-macros- 100% |   0.0   B/s |  40.3 KiB |  00m00s
[149/156] Installing go-srpm-macros-0:3 100% |  60.5 MiB/s |  62.0 KiB |  00m00s
[150/156] Installing redhat-rpm-config- 100% |  92.8 MiB/s | 190.1 KiB |  00m00s
[151/156] Installing rpm-build-0:4.20.0 100% |  99.0 MiB/s | 202.8 KiB |  00m00s
[152/156] Installing pyproject-srpm-mac 100% |   2.4 MiB/s |   2.5 KiB |  00m00s
[153/156] Installing util-linux-0:2.40. 100% | 176.4 MiB/s |   3.7 MiB |  00m00s
[154/156] Installing authselect-0:1.5.0 100% |  79.1 MiB/s | 161.9 KiB |  00m00s
[155/156] Installing which-0:2.21-42.fc 100% |  80.5 MiB/s |  82.4 KiB |  00m00s
[156/156] Installing info-0:7.1-3.fc41. 100% | 445.0 KiB/s | 362.2 KiB |  00m01s
Warning: skipped OpenPGP checks for 1 package from repository: copr_base
Complete!
Finish: installing minimal buildroot with dnf5
Start: creating root cache
Finish: creating root cache
Finish: chroot init
INFO: Installed packages:
INFO: add-determinism-0.3.6-3.fc41.x86_64
alternatives-1.31-1.fc41.x86_64
ansible-srpm-macros-1-16.fc41.noarch
audit-libs-4.0.3-1.fc41.x86_64
authselect-1.5.0-8.fc41.x86_64
authselect-libs-1.5.0-8.fc41.x86_64
basesystem-11-21.fc41.noarch
bash-5.2.32-1.fc41.x86_64
binutils-2.43.1-5.fc41.x86_64
build-reproducibility-srpm-macros-0.3.6-3.fc41.noarch
bzip2-1.0.8-19.fc41.x86_64
bzip2-libs-1.0.8-19.fc41.x86_64
ca-certificates-2024.2.69_v8.0.401-1.0.fc41.noarch
coreutils-9.5-11.fc41.x86_64
coreutils-common-9.5-11.fc41.x86_64
cpio-2.15-2.fc41.x86_64
cracklib-2.9.11-6.fc41.x86_64
crypto-policies-20241029-1.git8baf557.fc41.noarch
curl-8.9.1-3.fc41.x86_64
cyrus-sasl-lib-2.1.28-27.fc41.x86_64
debugedit-5.1-4.fc41.x86_64
diffutils-3.10-8.fc41.x86_64
dwz-0.15-8.fc41.x86_64
ed-1.20.2-2.fc41.x86_64
efi-srpm-macros-5-13.fc41.noarch
elfutils-0.192-7.fc41.x86_64
elfutils-debuginfod-client-0.192-7.fc41.x86_64
elfutils-default-yama-scope-0.192-7.fc41.noarch
elfutils-libelf-0.192-7.fc41.x86_64
elfutils-libs-0.192-7.fc41.x86_64
fedora-gpg-keys-41-1.noarch
fedora-release-41-29.noarch
fedora-release-common-41-29.noarch
fedora-release-identity-basic-41-29.noarch
fedora-repos-41-1.noarch
file-5.45-7.fc41.x86_64
file-libs-5.45-7.fc41.x86_64
filesystem-3.18-23.fc41.x86_64
findutils-4.10.0-4.fc41.x86_64
fonts-srpm-macros-2.0.5-17.fc41.noarch
forge-srpm-macros-0.4.0-1.fc41.noarch
fpc-srpm-macros-1.3-13.fc41.noarch
gawk-5.3.0-4.fc41.x86_64
gdb-minimal-15.2-4.fc41.x86_64
gdbm-1.23-7.fc41.x86_64
gdbm-libs-1.23-7.fc41.x86_64
ghc-srpm-macros-1.9.1-2.fc41.noarch
glibc-2.40-17.fc41.x86_64
glibc-common-2.40-17.fc41.x86_64
glibc-gconv-extra-2.40-17.fc41.x86_64
glibc-minimal-langpack-2.40-17.fc41.x86_64
gmp-6.3.0-2.fc41.x86_64
gnat-srpm-macros-6-6.fc41.noarch
go-srpm-macros-3.6.0-5.fc41.noarch
gpg-pubkey-e99d6ad1-64d2612c
grep-3.11-9.fc41.x86_64
gzip-1.13-2.fc41.x86_64
info-7.1-3.fc41.x86_64
jansson-2.13.1-10.fc41.x86_64
json-c-0.17-4.fc41.x86_64
kernel-srpm-macros-1.0-24.fc41.noarch
keyutils-libs-1.6.3-4.fc41.x86_64
krb5-libs-1.21.3-3.fc41.x86_64
libacl-2.3.2-2.fc41.x86_64
libarchive-3.7.4-4.fc41.x86_64
libattr-2.5.2-4.fc41.x86_64
libblkid-2.40.4-1.fc41.x86_64
libbrotli-1.1.0-5.fc41.x86_64
libcap-2.70-4.fc41.x86_64
libcap-ng-0.8.5-3.fc41.x86_64
libcom_err-1.47.1-6.fc41.x86_64
libcurl-8.9.1-3.fc41.x86_64
libeconf-0.6.2-3.fc41.x86_64
libevent-2.1.12-14.fc41.x86_64
libfdisk-2.40.4-1.fc41.x86_64
libffi-3.4.6-3.fc41.x86_64
libgcc-14.2.1-7.fc41.x86_64
libgomp-14.2.1-7.fc41.x86_64
libidn2-2.3.7-2.fc41.x86_64
libmount-2.40.4-1.fc41.x86_64
libnghttp2-1.62.1-2.fc41.x86_64
libnsl2-2.0.1-2.fc41.x86_64
libpkgconf-2.3.0-1.fc41.x86_64
libpsl-0.21.5-4.fc41.x86_64
libpwquality-1.4.5-11.fc41.x86_64
libselinux-3.7-5.fc41.x86_64
libsemanage-3.7-2.fc41.x86_64
libsepol-3.7-2.fc41.x86_64
libsmartcols-2.40.4-1.fc41.x86_64
libssh-0.10.6-8.fc41.x86_64
libssh-config-0.10.6-8.fc41.noarch
libstdc++-14.2.1-7.fc41.x86_64
libtasn1-4.19.0-9.fc41.x86_64
libtirpc-1.3.6-1.rc3.fc41.x86_64
libtool-ltdl-2.4.7-12.fc41.x86_64
libunistring-1.1-8.fc41.x86_64
libutempter-1.2.1-15.fc41.x86_64
libuuid-2.40.4-1.fc41.x86_64
libverto-0.3.2-9.fc41.x86_64
libxcrypt-4.4.38-3.fc41.x86_64
libxml2-2.12.9-1.fc41.x86_64
libzstd-1.5.6-2.fc41.x86_64
lua-libs-5.4.6-6.fc41.x86_64
lua-srpm-macros-1-14.fc41.noarch
lz4-libs-1.10.0-1.fc41.x86_64
mpfr-4.2.1-5.fc41.x86_64
ncurses-base-6.5-2.20240629.fc41.noarch
ncurses-libs-6.5-2.20240629.fc41.x86_64
ocaml-srpm-macros-10-3.fc41.noarch
openblas-srpm-macros-2-18.fc41.noarch
openldap-2.6.8-7.fc41.x86_64
openssl-libs-3.2.2-11.fc41.x86_64
p11-kit-0.25.5-3.fc41.x86_64
p11-kit-trust-0.25.5-3.fc41.x86_64
package-notes-srpm-macros-0.5-12.fc41.noarch
pam-1.6.1-7.fc41.x86_64
pam-libs-1.6.1-7.fc41.x86_64
patch-2.7.6-25.fc41.x86_64
pcre2-10.44-1.fc41.1.x86_64
pcre2-syntax-10.44-1.fc41.1.noarch
perl-srpm-macros-1-56.fc41.noarch
pkgconf-2.3.0-1.fc41.x86_64
pkgconf-m4-2.3.0-1.fc41.noarch
pkgconf-pkg-config-2.3.0-1.fc41.x86_64
popt-1.19-7.fc41.x86_64
publicsuffix-list-dafsa-20250116-1.fc41.noarch
pyproject-srpm-macros-1.16.4-1.fc41.noarch
python-srpm-macros-3.13-3.fc41.noarch
qt5-srpm-macros-5.15.15-1.fc41.noarch
qt6-srpm-macros-6.8.1-4.fc41.noarch
readline-8.2-10.fc41.x86_64
redhat-rpm-config-293-1.fc41.noarch
rpm-4.20.0-1.fc41.x86_64
rpm-build-4.20.0-1.fc41.x86_64
rpm-build-libs-4.20.0-1.fc41.x86_64
rpm-libs-4.20.0-1.fc41.x86_64
rpm-sequoia-1.7.0-3.fc41.x86_64
rust-srpm-macros-26.3-3.fc41.noarch
sed-4.9-3.fc41.x86_64
setup-2.15.0-8.fc41.noarch
shadow-utils-4.15.1-12.fc41.x86_64
sqlite-libs-3.46.1-2.fc41.x86_64
systemd-libs-256.11-1.fc41.x86_64
tar-1.35-4.fc41.x86_64
unzip-6.0-64.fc41.x86_64
util-linux-2.40.4-1.fc41.x86_64
util-linux-core-2.40.4-1.fc41.x86_64
which-2.21-42.fc41.x86_64
xxhash-libs-0.8.3-1.fc41.x86_64
xz-5.6.2-2.fc41.x86_64
xz-libs-5.6.2-2.fc41.x86_64
zig-srpm-macros-1-3.fc41.noarch
zip-3.0-41.fc41.x86_64
zlib-ng-compat-2.2.3-1.fc41.x86_64
zstd-1.5.6-2.fc41.x86_64
Start: buildsrpm
Start: rpmbuild -bs
Building target platforms: x86_64
Building for target x86_64
setting SOURCE_DATE_EPOCH=1721347200
Wrote: /builddir/build/SRPMS/python-sqlalchemy-utils-0.41.1-7.fc41.src.rpm
Finish: rpmbuild -bs
INFO: chroot_scan: 1 files copied to /var/lib/copr-rpmbuild/results/chroot_scan
INFO: /var/lib/mock/fedora-41-x86_64-1737918962.995286/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-3jqdgxvv/python-sqlalchemy-utils/python-sqlalchemy-utils.spec) Config(child) 0 minutes 8 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/python-sqlalchemy-utils-0.41.1-7.fc41.src.rpm)  Config(fedora-41-x86_64)
Start(bootstrap): chroot init
INFO: mounting tmpfs at /var/lib/mock/fedora-41-x86_64-bootstrap-1737918962.995286/root.
INFO: reusing tmpfs at /var/lib/mock/fedora-41-x86_64-bootstrap-1737918962.995286/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-41-x86_64-1737918962.995286/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-4.20.0-1.fc41.x86_64
  rpm-sequoia-1.7.0-3.fc41.x86_64
  dnf5-5.2.8.1-3.fc41.x86_64
  dnf5-plugins-5.2.8.1-3.fc41.x86_64
Finish: chroot init
Start: build phase for python-sqlalchemy-utils-0.41.1-7.fc41.src.rpm
Start: build setup for python-sqlalchemy-utils-0.41.1-7.fc41.src.rpm
Building target platforms: x86_64
Building for target x86_64
setting SOURCE_DATE_EPOCH=1721347200
Wrote: /builddir/build/SRPMS/python-sqlalchemy-utils-0.41.1-7.fc41.src.rpm
Updating and loading repositories:
 updates                                100% | 554.4 KiB/s |  31.0 KiB |  00m00s
 fedora                                 100% | 183.0 KiB/s |  31.8 KiB |  00m00s
 Copr repository                        100% | 117.9 KiB/s |   1.5 KiB |  00m00s
 Copr repository                        100% |  49.5 MiB/s |   1.4 MiB |  00m00s
Repositories loaded.
Package                 Arch   Version        Repository      Size
Installing:
 python3-colour         noarch 0.1.5-20.fc41  fedora     100.4 KiB
 python3-devel          x86_64 3.13.1-2.fc41  updates      1.8 MiB
 python3-phonenumbers   noarch 8.12.53-8.fc41 fedora      41.5 MiB
 python3-pytest         noarch 8.3.4-1.fc41   copr_base   20.9 MiB
Installing dependencies:
 expat                  x86_64 2.6.4-1.fc41   updates    292.9 KiB
 libb2                  x86_64 0.98.1-12.fc41 fedora      42.2 KiB
 mpdecimal              x86_64 2.5.1-16.fc41  fedora     204.9 KiB
 pyproject-rpm-macros   noarch 1.16.4-1.fc41  copr_base  113.0 KiB
 python-pip-wheel       noarch 24.2-1.fc41    copr_base    1.2 MiB
 python-rpm-macros      noarch 3.13-3.fc41    fedora      22.1 KiB
 python3                x86_64 3.13.1-2.fc41  updates     30.6 KiB
 python3-iniconfig      noarch 1.1.1-24.fc41  copr_base   20.6 KiB
 python3-libs           x86_64 3.13.1-2.fc41  updates     40.2 MiB
 python3-packaging      noarch 24.1-2.fc41    copr_base  422.3 KiB
 python3-pluggy         noarch 1.5.0-1.fc41   copr_base  193.2 KiB
 python3-rpm-generators noarch 14-11.fc41     fedora      81.7 KiB
 python3-rpm-macros     noarch 3.13-3.fc41    fedora       6.4 KiB
 tzdata                 noarch 2024b-1.fc41   updates      1.6 MiB

Transaction Summary:
 Installing:        18 packages

Total size of inbound packages is 18 MiB. Need to download 5 MiB.
After this operation, 109 MiB extra will be used (install 109 MiB, remove 0 B).
[1/3] python3-devel-0:3.13.1-2.fc41.x86 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[2/4] python3-libs-0:3.13.1-2.fc41.x86_ 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[3/5] libb2-0:0.98.1-12.fc41.x86_64     100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[4/6] mpdecimal-0:2.5.1-16.fc41.x86_64  100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[5/7] python3-pytest-0:8.3.4-1.fc41.noa 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[6/8] python3-0:3.13.1-2.fc41.x86_64    100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[7/9] python3-iniconfig-0:1.1.1-24.fc41 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[ 8/10] python3-packaging-0:24.1-2.fc41 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[ 9/11] python3-pluggy-0:1.5.0-1.fc41.n 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[10/12] expat-0:2.6.4-1.fc41.x86_64     100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[11/13] tzdata-0:2024b-1.fc41.noarch    100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[12/14] python-pip-wheel-0:24.2-1.fc41. 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[13/15] python-rpm-macros-0:3.13-3.fc41 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[14/16] python3-rpm-generators-0:14-11. 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[15/17] python3-rpm-macros-0:3.13-3.fc4 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[16/18] pyproject-rpm-macros-0:1.16.4-1 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[17/18] python3-colour-0:0.1.5-20.fc41. 100% | 872.2 KiB/s |  36.6 KiB |  00m00s
[18/18] python3-phonenumbers-0:8.12.53- 100% |  46.1 MiB/s |   4.7 MiB |  00m00s
--------------------------------------------------------------------------------
[18/18] Total                           100% |  30.3 MiB/s |   4.7 MiB |  00m00s
Running transaction
[ 1/20] Verify package files            100% | 315.0   B/s |  18.0   B |  00m00s
[ 2/20] Prepare transaction             100% | 545.0   B/s |  18.0   B |  00m00s
[ 3/20] Installing python-rpm-macros-0: 100% |  22.3 MiB/s |  22.8 KiB |  00m00s
[ 4/20] Installing python3-rpm-macros-0 100% |   0.0   B/s |   6.7 KiB |  00m00s
[ 5/20] Installing pyproject-rpm-macros 100% | 112.3 MiB/s | 115.0 KiB |  00m00s
[ 6/20] Installing python-pip-wheel-0:2 100% | 248.3 MiB/s |   1.2 MiB |  00m00s
[ 7/20] Installing tzdata-0:2024b-1.fc4 100% |  60.8 MiB/s |   1.9 MiB |  00m00s
[ 8/20] Installing expat-0:2.6.4-1.fc41 100% | 288.1 MiB/s | 295.0 KiB |  00m00s
[ 9/20] Installing mpdecimal-0:2.5.1-16 100% | 201.2 MiB/s | 206.0 KiB |  00m00s
[10/20] Installing libb2-0:0.98.1-12.fc 100% |   8.5 MiB/s |  43.3 KiB |  00m00s
[11/20] Installing python3-libs-0:3.13. 100% | 341.2 MiB/s |  40.6 MiB |  00m00s
[12/20] Installing python3-0:3.13.1-2.f 100% |  31.6 MiB/s |  32.4 KiB |  00m00s
[13/20] Installing python3-packaging-0: 100% | 211.5 MiB/s | 433.1 KiB |  00m00s
[14/20] Installing python3-rpm-generato 100% |   0.0   B/s |  82.9 KiB |  00m00s
[15/20] Installing python3-iniconfig-0: 100% |   0.0   B/s |  23.6 KiB |  00m00s
[16/20] Installing python3-pluggy-0:1.5 100% |  97.4 MiB/s | 199.5 KiB |  00m00s
[17/20] Installing python3-pytest-0:8.3 100% | 457.4 MiB/s |  21.0 MiB |  00m00s
[18/20] Installing python3-devel-0:3.13 100% | 226.9 MiB/s |   1.8 MiB |  00m00s
[19/20] Installing python3-colour-0:0.1 100% |  25.2 MiB/s | 103.1 KiB |  00m00s
[20/20] Installing python3-phonenumbers 100% | 370.4 MiB/s |  41.9 MiB |  00m00s
Warning: skipped OpenPGP checks for 6 packages from repository: copr_base
Complete!
Finish: build setup for python-sqlalchemy-utils-0.41.1-7.fc41.src.rpm
Start: rpmbuild python-sqlalchemy-utils-0.41.1-7.fc41.src.rpm
Building target platforms: x86_64
Building for target x86_64
setting SOURCE_DATE_EPOCH=1721347200
Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.pLtIjx
+ umask 022
+ cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build
+ test -d /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build
+ /usr/bin/rm -rf /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build
+ /usr/bin/mkdir -p /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build
+ /usr/bin/mkdir -p /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SPECPARTS
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.NpfML4
+ umask 022
+ cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build
+ cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build
+ rm -rf SQLAlchemy-Utils-0.41.1
+ /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/SQLAlchemy-Utils-0.41.1.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd SQLAlchemy-Utils-0.41.1
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/no-psycopg2cffi.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
+ /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/python-sqlalchemy-utils-0.41.1-no-pyodbc-dep.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
+ /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/python-sqlalchemy-utils-0.41.1-nosqla2.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
+ rm -rf SQLAlchemy-Utils.egg-info
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.PRLeQa
+ umask 022
+ cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build
+ cd SQLAlchemy-Utils-0.41.1
+ echo pyproject-rpm-macros
+ echo python3-devel
+ echo 'python3dist(packaging)'
+ echo 'python3dist(pip) >= 19'
+ '[' -f pyproject.toml ']'
+ '[' -f setup.py ']'
+ echo 'python3dist(setuptools) >= 40.8'
+ rm -rfv '*.dist-info/'
+ '[' -f /usr/bin/python3 ']'
+ mkdir -p /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-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-annobin-cc1  -Wl,--build-id=sha1  '
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ CC=gcc
+ CXX=g++
+ TMPDIR=/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/.pyproject-builddir
+ RPM_TOXENV=py313
+ HOSTNAME=rpmbuild
+ /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/pyproject-wheeldir --output /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-7.fc41.x86_64-pyproject-buildrequires -x test
Handling setuptools >= 40.8 from default build backend
Requirement not satisfied: setuptools >= 40.8
Exiting dependency generation pass: build backend
+ cat /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-7.fc41.x86_64-pyproject-buildrequires
+ rm -rfv '*.dist-info/'
+ RPM_EC=0
++ jobs -p
+ exit 0
Wrote: /builddir/build/SRPMS/python-sqlalchemy-utils-0.41.1-7.fc41.buildreqs.nosrc.rpm
INFO: Going to install missing dynamic buildrequires
Updating and loading repositories:
 updates                                100% | 526.2 KiB/s |  31.0 KiB |  00m00s
 fedora                                 100% |   1.0 MiB/s |  31.8 KiB |  00m00s
 Copr repository                        100% | 117.9 KiB/s |   1.5 KiB |  00m00s
Repositories loaded.
Package "pyproject-rpm-macros-1.16.4-1.fc41.noarch" is already installed.
Package "python3-colour-0.1.5-20.fc41.noarch" is already installed.
Package "python3-devel-3.13.1-2.fc41.x86_64" is already installed.
Package "python3-phonenumbers-8.12.53-8.fc41.noarch" is already installed.
Package "python3-pytest-8.3.4-1.fc41.noarch" is already installed.
Package "python3-packaging-24.1-2.fc41.noarch" is already installed.

Package             Arch   Version       Repository      Size
Installing:
 python3-pip        noarch 24.2-1.fc41   copr_base   11.4 MiB
 python3-setuptools noarch 69.2.0-8.fc41 copr_base    7.2 MiB

Transaction Summary:
 Installing:         2 packages

Total size of inbound packages is 4 MiB. Need to download 0 B.
After this operation, 19 MiB extra will be used (install 19 MiB, remove 0 B).
[1/1] python3-pip-0:24.2-1.fc41.noarch  100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[1/1] Total                             100% |   0.0   B/s |   0.0   B |  00m00s
[1/2] python3-setuptools-0:69.2.0-8.fc4 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[2/2] Total                             100% |   0.0   B/s |   0.0   B |  00m00s
Running transaction
[1/4] Verify package files              100% | 133.0   B/s |   2.0   B |  00m00s
[2/4] Prepare transaction               100% | 117.0   B/s |   2.0   B |  00m00s
[3/4] Installing python3-setuptools-0:6 100% | 236.4 MiB/s |   7.3 MiB |  00m00s
[4/4] Installing python3-pip-0:24.2-1.f 100% | 191.2 MiB/s |  11.7 MiB |  00m00s
Warning: skipped OpenPGP checks for 2 packages from repository: copr_base
Complete!
Building target platforms: x86_64
Building for target x86_64
setting SOURCE_DATE_EPOCH=1721347200
Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.YYdf9o
+ umask 022
+ cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build
+ cd SQLAlchemy-Utils-0.41.1
+ echo pyproject-rpm-macros
+ echo python3-devel
+ echo 'python3dist(packaging)'
+ echo 'python3dist(pip) >= 19'
+ '[' -f pyproject.toml ']'
+ '[' -f setup.py ']'
+ echo 'python3dist(setuptools) >= 40.8'
+ rm -rfv '*.dist-info/'
+ '[' -f /usr/bin/python3 ']'
+ mkdir -p /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-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-annobin-cc1  -Wl,--build-id=sha1  '
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ CC=gcc
+ CXX=g++
+ TMPDIR=/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/.pyproject-builddir
+ RPM_TOXENV=py313
+ HOSTNAME=rpmbuild
+ /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/pyproject-wheeldir --output /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-7.fc41.x86_64-pyproject-buildrequires -x test
Handling setuptools >= 40.8 from default build backend
Requirement satisfied: setuptools >= 40.8
   (installed: setuptools 69.2.0)
running egg_info
writing SQLAlchemy_Utils.egg-info/PKG-INFO
writing dependency_links to SQLAlchemy_Utils.egg-info/dependency_links.txt
writing requirements to SQLAlchemy_Utils.egg-info/requires.txt
writing top-level names to SQLAlchemy_Utils.egg-info/top_level.txt
reading manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files found matching 'docs/_themes/.git'
adding license file 'LICENSE'
writing manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt'
Handling wheel from get_requires_for_build_wheel
Requirement not satisfied: wheel
Exiting dependency generation pass: get_requires_for_build_wheel
+ cat /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-7.fc41.x86_64-pyproject-buildrequires
+ rm -rfv '*.dist-info/'
+ RPM_EC=0
++ jobs -p
+ exit 0
Wrote: /builddir/build/SRPMS/python-sqlalchemy-utils-0.41.1-7.fc41.buildreqs.nosrc.rpm
INFO: Going to install missing dynamic buildrequires
Updating and loading repositories:
 updates                                100% | 304.4 KiB/s |  31.0 KiB |  00m00s
 fedora                                 100% | 357.7 KiB/s |  31.8 KiB |  00m00s
 Copr repository                        100% | 109.5 KiB/s |   1.5 KiB |  00m00s
Repositories loaded.
Package "pyproject-rpm-macros-1.16.4-1.fc41.noarch" is already installed.
Package "python3-colour-0.1.5-20.fc41.noarch" is already installed.
Package "python3-devel-3.13.1-2.fc41.x86_64" is already installed.
Package "python3-phonenumbers-8.12.53-8.fc41.noarch" is already installed.
Package "python3-pytest-8.3.4-1.fc41.noarch" is already installed.
Package "python3-packaging-24.1-2.fc41.noarch" is already installed.
Package "python3-pip-24.2-1.fc41.noarch" is already installed.
Package "python3-setuptools-69.2.0-8.fc41.noarch" is already installed.

Package        Arch   Version         Repository      Size
Installing:
 python3-wheel noarch 1:0.43.0-4.fc41 fedora     516.1 KiB

Transaction Summary:
 Installing:         1 package

Total size of inbound packages is 166 KiB. Need to download 0 B.
After this operation, 516 KiB extra will be used (install 516 KiB, remove 0 B).
[1/1] python3-wheel-1:0.43.0-4.fc41.noa 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
--------------------------------------------------------------------------------
[1/1] Total                             100% |   0.0   B/s |   0.0   B |  00m00s
Running transaction
[1/3] Verify package files              100% |   0.0   B/s |   1.0   B |  00m00s
[2/3] Prepare transaction               100% | 200.0   B/s |   1.0   B |  00m00s
[3/3] Installing python3-wheel-1:0.43.0 100% |  47.5 MiB/s | 535.1 KiB |  00m00s
Complete!
Building target platforms: x86_64
Building for target x86_64
setting SOURCE_DATE_EPOCH=1721347200
Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.AjYYTo
+ umask 022
+ cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build
+ cd SQLAlchemy-Utils-0.41.1
+ echo pyproject-rpm-macros
+ echo python3-devel
+ echo 'python3dist(packaging)'
+ echo 'python3dist(pip) >= 19'
+ '[' -f pyproject.toml ']'
+ '[' -f setup.py ']'
+ echo 'python3dist(setuptools) >= 40.8'
+ rm -rfv '*.dist-info/'
+ '[' -f /usr/bin/python3 ']'
+ mkdir -p /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-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-annobin-cc1  -Wl,--build-id=sha1  '
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ CC=gcc
+ CXX=g++
+ TMPDIR=/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/.pyproject-builddir
+ RPM_TOXENV=py313
+ HOSTNAME=rpmbuild
+ /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/pyproject-wheeldir --output /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-7.fc41.x86_64-pyproject-buildrequires -x test
Handling setuptools >= 40.8 from default build backend
Requirement satisfied: setuptools >= 40.8
   (installed: setuptools 69.2.0)
running egg_info
writing SQLAlchemy_Utils.egg-info/PKG-INFO
writing dependency_links to SQLAlchemy_Utils.egg-info/dependency_links.txt
writing requirements to SQLAlchemy_Utils.egg-info/requires.txt
writing top-level names to SQLAlchemy_Utils.egg-info/top_level.txt
reading manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files found matching 'docs/_themes/.git'
adding license file 'LICENSE'
writing manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt'
Handling wheel from get_requires_for_build_wheel
Requirement satisfied: wheel
   (installed: wheel 0.43.0)
running dist_info
writing SQLAlchemy_Utils.egg-info/PKG-INFO
writing dependency_links to SQLAlchemy_Utils.egg-info/dependency_links.txt
writing requirements to SQLAlchemy_Utils.egg-info/requires.txt
writing top-level names to SQLAlchemy_Utils.egg-info/top_level.txt
reading manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files found matching 'docs/_themes/.git'
adding license file 'LICENSE'
writing manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt'
creating '/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/SQLAlchemy_Utils-0.41.1.dist-info'
Handling SQLAlchemy <2,>=1.3 from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement not satisfied: SQLAlchemy <2,>=1.3
Handling importlib-metadata ; python_version < "3.8" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: importlib-metadata ; python_version < "3.8"
Handling arrow >=0.3.4 ; extra == 'arrow' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: arrow >=0.3.4 ; extra == 'arrow'
Handling Babel >=1.3 ; extra == 'babel' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: Babel >=1.3 ; extra == 'babel'
Handling colour >=0.0.4 ; extra == 'color' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: colour >=0.0.4 ; extra == 'color'
Handling cryptography >=0.6 ; extra == 'encrypted' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: cryptography >=0.6 ; extra == 'encrypted'
Handling intervals >=0.7.1 ; extra == 'intervals' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: intervals >=0.7.1 ; extra == 'intervals'
Handling passlib <2.0,>=1.6 ; extra == 'password' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: passlib <2.0,>=1.6 ; extra == 'password'
Handling pendulum >=2.0.5 ; extra == 'pendulum' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: pendulum >=2.0.5 ; extra == 'pendulum'
Handling phonenumbers >=5.9.2 ; extra == 'phone' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: phonenumbers >=5.9.2 ; extra == 'phone'
Handling pytest >=2.7.1 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: pytest >=2.7.1 ; extra == 'test'
   (installed: pytest 8.3.4)
Handling Pygments >=1.2 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement not satisfied: Pygments >=1.2 ; extra == 'test'
Handling Jinja2 >=2.3 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement not satisfied: Jinja2 >=2.3 ; extra == 'test'
Handling docutils >=0.10 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement not satisfied: docutils >=0.10 ; extra == 'test'
Handling flexmock >=0.9.7 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement not satisfied: flexmock >=0.9.7 ; extra == 'test'
Handling psycopg >=3.1.8 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement not satisfied: psycopg >=3.1.8 ; extra == 'test'
Handling psycopg2 >=2.5.1 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement not satisfied: psycopg2 >=2.5.1 ; extra == 'test'
Handling pg8000 >=1.12.4 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement not satisfied: pg8000 >=1.12.4 ; extra == 'test'
Handling pytz >=2014.2 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement not satisfied: pytz >=2014.2 ; extra == 'test'
Handling python-dateutil >=2.6 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement not satisfied: python-dateutil >=2.6 ; extra == 'test'
Handling pymysql ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement not satisfied: pymysql ; extra == 'test'
Handling flake8 >=2.4.0 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement not satisfied: flake8 >=2.4.0 ; extra == 'test'
Handling isort >=4.2.2 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement not satisfied: isort >=4.2.2 ; extra == 'test'
Handling backports.zoneinfo ; (python_version < "3.9") and extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: backports.zoneinfo ; (python_version < "3.9") and extra == 'test'
Handling Babel >=1.3 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: Babel >=1.3 ; extra == 'test_all'
Handling Jinja2 >=2.3 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: Jinja2 >=2.3 ; extra == 'test_all'
Handling Pygments >=1.2 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: Pygments >=1.2 ; extra == 'test_all'
Handling arrow >=0.3.4 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: arrow >=0.3.4 ; extra == 'test_all'
Handling colour >=0.0.4 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: colour >=0.0.4 ; extra == 'test_all'
Handling cryptography >=0.6 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: cryptography >=0.6 ; extra == 'test_all'
Handling docutils >=0.10 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: docutils >=0.10 ; extra == 'test_all'
Handling flake8 >=2.4.0 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: flake8 >=2.4.0 ; extra == 'test_all'
Handling flexmock >=0.9.7 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: flexmock >=0.9.7 ; extra == 'test_all'
Handling furl >=0.4.1 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: furl >=0.4.1 ; extra == 'test_all'
Handling intervals >=0.7.1 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: intervals >=0.7.1 ; extra == 'test_all'
Handling isort >=4.2.2 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: isort >=4.2.2 ; extra == 'test_all'
Handling passlib <2.0,>=1.6 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: passlib <2.0,>=1.6 ; extra == 'test_all'
Handling pendulum >=2.0.5 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: pendulum >=2.0.5 ; extra == 'test_all'
Handling pg8000 >=1.12.4 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: pg8000 >=1.12.4 ; extra == 'test_all'
Handling phonenumbers >=5.9.2 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: phonenumbers >=5.9.2 ; extra == 'test_all'
Handling psycopg2 >=2.5.1 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: psycopg2 >=2.5.1 ; extra == 'test_all'
Handling psycopg >=3.1.8 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: psycopg >=3.1.8 ; extra == 'test_all'
Handling pymysql ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: pymysql ; extra == 'test_all'
Handling pytest >=2.7.1 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: pytest >=2.7.1 ; extra == 'test_all'
Handling python-dateutil ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: python-dateutil ; extra == 'test_all'
Handling python-dateutil >=2.6 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: python-dateutil >=2.6 ; extra == 'test_all'
Handling pytz >=2014.2 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: pytz >=2014.2 ; extra == 'test_all'
Handling backports.zoneinfo ; (python_version < "3.9") and extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: backports.zoneinfo ; (python_version < "3.9") and extra == 'test_all'
Handling python-dateutil ; extra == 'timezone' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: python-dateutil ; extra == 'timezone'
Handling furl >=0.4.1 ; extra == 'url' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: furl >=0.4.1 ; extra == 'url'
+ cat /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-7.fc41.x86_64-pyproject-buildrequires
+ rm -rfv SQLAlchemy_Utils-0.41.1.dist-info/
removed 'SQLAlchemy_Utils-0.41.1.dist-info/top_level.txt'
removed 'SQLAlchemy_Utils-0.41.1.dist-info/METADATA'
removed 'SQLAlchemy_Utils-0.41.1.dist-info/LICENSE'
removed directory 'SQLAlchemy_Utils-0.41.1.dist-info/'
+ RPM_EC=0
++ jobs -p
+ exit 0
Wrote: /builddir/build/SRPMS/python-sqlalchemy-utils-0.41.1-7.fc41.buildreqs.nosrc.rpm
INFO: Going to install missing dynamic buildrequires
Updating and loading repositories:
 fedora                                 100% | 107.9 KiB/s |  31.8 KiB |  00m00s
 updates                                100% |   1.1 MiB/s |  31.0 KiB |  00m00s
 Copr repository                        100% |  80.7 KiB/s |   1.5 KiB |  00m00s
Repositories loaded.
Package "pyproject-rpm-macros-1.16.4-1.fc41.noarch" is already installed.
Package "python3-colour-0.1.5-20.fc41.noarch" is already installed.
Package "python3-devel-3.13.1-2.fc41.x86_64" is already installed.
Package "python3-phonenumbers-8.12.53-8.fc41.noarch" is already installed.
Package "python3-pytest-8.3.4-1.fc41.noarch" is already installed.
Package "python3-packaging-24.1-2.fc41.noarch" is already installed.
Package "python3-pip-24.2-1.fc41.noarch" is already installed.
Package "python3-pytest-8.3.4-1.fc41.noarch" is already installed.
Package "python3-setuptools-69.2.0-8.fc41.noarch" is already installed.
Package "python3-wheel-1:0.43.0-4.fc41.noarch" is already installed.

Package                    Arch   Version         Repository      Size
Installing:
 python3-PyMySQL           noarch 1.1.1-2.fc41    copr_base  398.9 KiB
 python3-dateutil          noarch 1:2.8.2-16.fc41 fedora     879.2 KiB
 python3-docutils          noarch 0.20.1-7.fc41   copr_base    4.8 MiB
 python3-flake8            noarch 6.1.0-3.fc41    copr_base  438.5 KiB
 python3-flexmock          noarch 0.12.1-3.fc41   copr_base  278.3 KiB
 python3-isort             noarch 5.13.2-5.fc41   fedora     727.7 KiB
 python3-jinja2            noarch 3.1.5-1.fc41    copr_base    2.9 MiB
 python3-pg8000            noarch 1.31.1-3.fc41   copr_base  341.1 KiB
 python3-psycopg2          x86_64 2.9.9-7.fc41    fedora     625.9 KiB
 python3-psycopg3          noarch 3.2.1-3.fc41    fedora       1.9 MiB
 python3-pygments          noarch 2.18.0-2.fc41   copr_base   10.6 MiB
 python3-pytz              noarch 2024.2-1.fc41   fedora     223.7 KiB
 python3-sqlalchemy1.4     x86_64 1.4.54-1.fc41   fedora      17.1 MiB
Installing dependencies:
 libpq                     x86_64 16.4-1.fc41     fedora     965.4 KiB
 python3-asn1crypto        noarch 1.5.1-10.fc41   fedora       1.0 MiB
 python3-greenlet          x86_64 3.1.1-1.fc41    copr_base  943.3 KiB
 python3-markupsafe        x86_64 2.1.5-4.fc41    copr_base   61.5 KiB
 python3-mccabe            noarch 0.7.0-10.fc41   copr_base   38.6 KiB
 python3-pycodestyle       noarch 2.11.1-4.fc41   fedora     363.5 KiB
 python3-pyflakes          noarch 3.1.0-3.fc41    copr_base  351.6 KiB
 python3-scramp            noarch 1.4.5-3.fc41    copr_base  116.4 KiB
 python3-six               noarch 1.16.0-23.fc41  copr_base  118.3 KiB
 python3-typing-extensions noarch 4.12.2-3.fc41   fedora     464.5 KiB

Transaction Summary:
 Installing:        23 packages

Total size of inbound packages is 10 MiB. Need to download 5 MiB.
After this operation, 45 MiB extra will be used (install 45 MiB, remove 0 B).
[1/4] python3-dateutil-1:2.8.2-16.fc41. 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[2/6] python3-docutils-0:0.20.1-7.fc41. 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[3/9] python3-jinja2-0:3.1.5-1.fc41.noa 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[ 4/11] python3-pygments-0:2.18.0-2.fc4 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[ 5/13] python3-typing-extensions-0:4.1 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[ 6/19] python3-markupsafe-0:2.1.5-4.fc 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[ 7/23] python3-six-0:1.16.0-23.fc41.no 100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[ 8/23] python3-psycopg2-0:2.9.9-7.fc41 100% |   9.1 MiB/s | 205.2 KiB |  00m00s
[ 9/23] python3-pytz-0:2024.2-1.fc41.no 100% |  21.0 MiB/s |  64.4 KiB |  00m00s
[10/23] python3-isort-0:5.13.2-5.fc41.n 100% |   7.6 MiB/s | 242.6 KiB |  00m00s
[11/23] python3-flake8-0:6.1.0-3.fc41.n 100% |  18.4 MiB/s | 131.9 KiB |  00m00s
[12/23] python3-flexmock-0:0.12.1-3.fc4 100% |  25.8 MiB/s |  79.2 KiB |  00m00s
[13/23] python3-PyMySQL-0:1.1.1-2.fc41. 100% | 106.2 MiB/s | 108.8 KiB |  00m00s
[14/23] python3-pg8000-0:1.31.1-3.fc41. 100% |  22.4 MiB/s |  91.6 KiB |  00m00s
[15/23] libpq-0:16.4-1.fc41.x86_64      100% | 122.1 MiB/s | 250.1 KiB |  00m00s
[16/23] python3-psycopg3-0:3.2.1-3.fc41 100% |  11.0 MiB/s | 449.6 KiB |  00m00s
[17/23] python3-pycodestyle-0:2.11.1-4. 100% |  34.2 MiB/s | 104.9 KiB |  00m00s
[18/23] python3-scramp-0:1.4.5-3.fc41.n 100% |  33.4 MiB/s |  34.2 KiB |  00m00s
[19/23] python3-mccabe-0:0.7.0-10.fc41. 100% |  22.7 MiB/s |  23.2 KiB |  00m00s
[20/23] python3-asn1crypto-0:1.5.1-10.f 100% |  58.0 MiB/s | 237.6 KiB |  00m00s
[21/23] python3-pyflakes-0:3.1.0-3.fc41 100% |  42.2 MiB/s |  86.4 KiB |  00m00s
[22/23] python3-greenlet-0:3.1.1-1.fc41 100% |  77.4 MiB/s | 237.8 KiB |  00m00s
[23/23] python3-sqlalchemy1.4-0:1.4.54- 100% | 147.4 MiB/s |   2.9 MiB |  00m00s
--------------------------------------------------------------------------------
[23/23] Total                           100% |  57.0 MiB/s |   5.2 MiB |  00m00s
Running transaction
[ 1/25] Verify package files            100% | 696.0   B/s |  23.0   B |  00m00s
[ 2/25] Prepare transaction             100% | 741.0   B/s |  23.0   B |  00m00s
[ 3/25] Installing libpq-0:16.4-1.fc41. 100% | 236.7 MiB/s | 969.6 KiB |  00m00s
[ 4/25] Installing python3-six-0:1.16.0 100% | 117.9 MiB/s | 120.7 KiB |  00m00s
[ 5/25] Installing python3-dateutil-1:2 100% | 218.0 MiB/s | 892.9 KiB |  00m00s
[ 6/25] Installing python3-greenlet-0:3 100% | 190.2 MiB/s | 973.6 KiB |  00m00s
[ 7/25] Installing python3-pyflakes-0:3 100% | 175.5 MiB/s | 359.5 KiB |  00m00s
[ 8/25] Installing python3-mccabe-0:0.7 100% |   0.0   B/s |  40.8 KiB |  00m00s
[ 9/25] Installing python3-markupsafe-0 100% |  64.0 MiB/s |  65.6 KiB |  00m00s
[10/25] Installing python3-asn1crypto-0 100% | 332.8 MiB/s |   1.0 MiB |  00m00s
[11/25] Installing python3-scramp-0:1.4 100% | 117.3 MiB/s | 120.1 KiB |  00m00s
[12/25] Installing python3-pycodestyle- 100% | 358.2 MiB/s | 366.8 KiB |  00m00s
[13/25] Installing python3-typing-exten 100% | 228.0 MiB/s | 466.9 KiB |  00m00s
[14/25] Installing python3-psycopg3-0:3 100% | 239.5 MiB/s |   1.9 MiB |  00m00s
[15/25] Installing python3-flake8-0:6.1 100% | 150.1 MiB/s | 461.2 KiB |  00m00s
[16/25] Installing python3-pg8000-0:1.3 100% | 169.4 MiB/s | 346.9 KiB |  00m00s
[17/25] Installing python3-jinja2-0:3.1 100% | 324.2 MiB/s |   2.9 MiB |  00m00s
[18/25] Installing python3-sqlalchemy1. 100% | 351.5 MiB/s |  17.2 MiB |  00m00s
[19/25] Installing python3-psycopg2-0:2 100% | 206.7 MiB/s | 634.9 KiB |  00m00s
[20/25] Installing python3-PyMySQL-0:1. 100% | 100.3 MiB/s | 411.0 KiB |  00m00s
[21/25] Installing python3-pygments-0:2 100% | 301.2 MiB/s |  10.8 MiB |  00m00s
[22/25] Installing python3-flexmock-0:0 100% |  93.8 MiB/s | 288.1 KiB |  00m00s
[23/25] Installing python3-docutils-0:0 100% | 258.3 MiB/s |   4.9 MiB |  00m00s
[24/25] Installing python3-pytz-0:2024. 100% | 223.7 MiB/s | 229.0 KiB |  00m00s
[25/25] Installing python3-isort-0:5.13 100% |  38.9 MiB/s | 756.4 KiB |  00m00s
Warning: skipped OpenPGP checks for 13 packages from repository: copr_base
Complete!
Building target platforms: x86_64
Building for target x86_64
setting SOURCE_DATE_EPOCH=1721347200
Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.12mbfr
+ umask 022
+ cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build
+ cd SQLAlchemy-Utils-0.41.1
+ echo pyproject-rpm-macros
+ echo python3-devel
+ echo 'python3dist(packaging)'
+ echo 'python3dist(pip) >= 19'
+ '[' -f pyproject.toml ']'
+ '[' -f setup.py ']'
+ echo 'python3dist(setuptools) >= 40.8'
+ rm -rfv '*.dist-info/'
+ '[' -f /usr/bin/python3 ']'
+ mkdir -p /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-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-annobin-cc1  -Wl,--build-id=sha1  '
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ CC=gcc
+ CXX=g++
+ TMPDIR=/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/.pyproject-builddir
+ RPM_TOXENV=py313
+ HOSTNAME=rpmbuild
+ /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/pyproject-wheeldir --output /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-7.fc41.x86_64-pyproject-buildrequires -x test
Handling setuptools >= 40.8 from default build backend
Requirement satisfied: setuptools >= 40.8
   (installed: setuptools 69.2.0)
running egg_info
writing SQLAlchemy_Utils.egg-info/PKG-INFO
writing dependency_links to SQLAlchemy_Utils.egg-info/dependency_links.txt
writing requirements to SQLAlchemy_Utils.egg-info/requires.txt
writing top-level names to SQLAlchemy_Utils.egg-info/top_level.txt
reading manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files found matching 'docs/_themes/.git'
adding license file 'LICENSE'
writing manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt'
Handling wheel from get_requires_for_build_wheel
Requirement satisfied: wheel
   (installed: wheel 0.43.0)
running dist_info
writing SQLAlchemy_Utils.egg-info/PKG-INFO
writing dependency_links to SQLAlchemy_Utils.egg-info/dependency_links.txt
writing requirements to SQLAlchemy_Utils.egg-info/requires.txt
writing top-level names to SQLAlchemy_Utils.egg-info/top_level.txt
reading manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files found matching 'docs/_themes/.git'
adding license file 'LICENSE'
writing manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt'
creating '/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/SQLAlchemy_Utils-0.41.1.dist-info'
Handling SQLAlchemy <2,>=1.3 from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: SQLAlchemy <2,>=1.3
   (installed: SQLAlchemy 1.4.54)
Handling importlib-metadata ; python_version < "3.8" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: importlib-metadata ; python_version < "3.8"
Handling arrow >=0.3.4 ; extra == 'arrow' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: arrow >=0.3.4 ; extra == 'arrow'
Handling Babel >=1.3 ; extra == 'babel' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: Babel >=1.3 ; extra == 'babel'
Handling colour >=0.0.4 ; extra == 'color' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: colour >=0.0.4 ; extra == 'color'
Handling cryptography >=0.6 ; extra == 'encrypted' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: cryptography >=0.6 ; extra == 'encrypted'
Handling intervals >=0.7.1 ; extra == 'intervals' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: intervals >=0.7.1 ; extra == 'intervals'
Handling passlib <2.0,>=1.6 ; extra == 'password' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: passlib <2.0,>=1.6 ; extra == 'password'
Handling pendulum >=2.0.5 ; extra == 'pendulum' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: pendulum >=2.0.5 ; extra == 'pendulum'
Handling phonenumbers >=5.9.2 ; extra == 'phone' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: phonenumbers >=5.9.2 ; extra == 'phone'
Handling pytest >=2.7.1 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: pytest >=2.7.1 ; extra == 'test'
   (installed: pytest 8.3.4)
Handling Pygments >=1.2 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: Pygments >=1.2 ; extra == 'test'
   (installed: Pygments 2.18.0)
Handling Jinja2 >=2.3 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: Jinja2 >=2.3 ; extra == 'test'
   (installed: Jinja2 3.1.5)
Handling docutils >=0.10 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: docutils >=0.10 ; extra == 'test'
   (installed: docutils 0.20.1)
Handling flexmock >=0.9.7 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: flexmock >=0.9.7 ; extra == 'test'
   (installed: flexmock 0.12.1)
Handling psycopg >=3.1.8 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: psycopg >=3.1.8 ; extra == 'test'
   (installed: psycopg 3.2.1)
Handling psycopg2 >=2.5.1 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: psycopg2 >=2.5.1 ; extra == 'test'
   (installed: psycopg2 2.9.9)
Handling pg8000 >=1.12.4 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: pg8000 >=1.12.4 ; extra == 'test'
   (installed: pg8000 1.31.1)
Handling pytz >=2014.2 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: pytz >=2014.2 ; extra == 'test'
   (installed: pytz 2024.2)
Handling python-dateutil >=2.6 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: python-dateutil >=2.6 ; extra == 'test'
   (installed: python-dateutil 2.8.2)
Handling pymysql ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: pymysql ; extra == 'test'
   (installed: pymysql 1.1.1)
Handling flake8 >=2.4.0 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: flake8 >=2.4.0 ; extra == 'test'
   (installed: flake8 6.1.0)
Handling isort >=4.2.2 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: isort >=4.2.2 ; extra == 'test'
   (installed: isort 5.13.2)
Handling backports.zoneinfo ; (python_version < "3.9") and extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: backports.zoneinfo ; (python_version < "3.9") and extra == 'test'
Handling Babel >=1.3 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: Babel >=1.3 ; extra == 'test_all'
Handling Jinja2 >=2.3 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: Jinja2 >=2.3 ; extra == 'test_all'
Handling Pygments >=1.2 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: Pygments >=1.2 ; extra == 'test_all'
Handling arrow >=0.3.4 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: arrow >=0.3.4 ; extra == 'test_all'
Handling colour >=0.0.4 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: colour >=0.0.4 ; extra == 'test_all'
Handling cryptography >=0.6 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: cryptography >=0.6 ; extra == 'test_all'
Handling docutils >=0.10 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: docutils >=0.10 ; extra == 'test_all'
Handling flake8 >=2.4.0 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: flake8 >=2.4.0 ; extra == 'test_all'
Handling flexmock >=0.9.7 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: flexmock >=0.9.7 ; extra == 'test_all'
Handling furl >=0.4.1 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: furl >=0.4.1 ; extra == 'test_all'
Handling intervals >=0.7.1 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: intervals >=0.7.1 ; extra == 'test_all'
Handling isort >=4.2.2 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: isort >=4.2.2 ; extra == 'test_all'
Handling passlib <2.0,>=1.6 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: passlib <2.0,>=1.6 ; extra == 'test_all'
Handling pendulum >=2.0.5 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: pendulum >=2.0.5 ; extra == 'test_all'
Handling pg8000 >=1.12.4 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: pg8000 >=1.12.4 ; extra == 'test_all'
Handling phonenumbers >=5.9.2 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: phonenumbers >=5.9.2 ; extra == 'test_all'
Handling psycopg2 >=2.5.1 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: psycopg2 >=2.5.1 ; extra == 'test_all'
Handling psycopg >=3.1.8 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: psycopg >=3.1.8 ; extra == 'test_all'
Handling pymysql ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: pymysql ; extra == 'test_all'
Handling pytest >=2.7.1 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: pytest >=2.7.1 ; extra == 'test_all'
Handling python-dateutil ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: python-dateutil ; extra == 'test_all'
Handling python-dateutil >=2.6 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: python-dateutil >=2.6 ; extra == 'test_all'
Handling pytz >=2014.2 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: pytz >=2014.2 ; extra == 'test_all'
Handling backports.zoneinfo ; (python_version < "3.9") and extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: backports.zoneinfo ; (python_version < "3.9") and extra == 'test_all'
Handling python-dateutil ; extra == 'timezone' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: python-dateutil ; extra == 'timezone'
Handling furl >=0.4.1 ; extra == 'url' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: furl >=0.4.1 ; extra == 'url'
+ cat /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-7.fc41.x86_64-pyproject-buildrequires
+ rm -rfv SQLAlchemy_Utils-0.41.1.dist-info/
removed 'SQLAlchemy_Utils-0.41.1.dist-info/top_level.txt'
removed 'SQLAlchemy_Utils-0.41.1.dist-info/METADATA'
removed 'SQLAlchemy_Utils-0.41.1.dist-info/LICENSE'
removed directory 'SQLAlchemy_Utils-0.41.1.dist-info/'
+ RPM_EC=0
++ jobs -p
+ exit 0
Wrote: /builddir/build/SRPMS/python-sqlalchemy-utils-0.41.1-7.fc41.buildreqs.nosrc.rpm
INFO: Going to install missing dynamic buildrequires
Updating and loading repositories:
 fedora                                 100% | 112.9 KiB/s |  31.8 KiB |  00m00s
 updates                                100% |   1.2 MiB/s |  31.0 KiB |  00m00s
 Copr repository                        100% | 117.9 KiB/s |   1.5 KiB |  00m00s
Repositories loaded.
Package "pyproject-rpm-macros-1.16.4-1.fc41.noarch" is already installed.
Package "python3-colour-0.1.5-20.fc41.noarch" is already installed.
Package "python3-devel-3.13.1-2.fc41.x86_64" is already installed.
Package "python3-phonenumbers-8.12.53-8.fc41.noarch" is already installed.
Package "python3-pytest-8.3.4-1.fc41.noarch" is already installed.
Package "python3-docutils-0.20.1-7.fc41.noarch" is already installed.
Package "python3-flake8-6.1.0-3.fc41.noarch" is already installed.
Package "python3-flexmock-0.12.1-3.fc41.noarch" is already installed.
Package "python3-isort-5.13.2-5.fc41.noarch" is already installed.
Package "python3-jinja2-3.1.5-1.fc41.noarch" is already installed.
Package "python3-packaging-24.1-2.fc41.noarch" is already installed.
Package "python3-pg8000-1.31.1-3.fc41.noarch" is already installed.
Package "python3-pip-24.2-1.fc41.noarch" is already installed.
Package "python3-psycopg3-3.2.1-3.fc41.noarch" is already installed.
Package "python3-psycopg2-2.9.9-7.fc41.x86_64" is already installed.
Package "python3-pygments-2.18.0-2.fc41.noarch" is already installed.
Package "python3-PyMySQL-1.1.1-2.fc41.noarch" is already installed.
Package "python3-pytest-8.3.4-1.fc41.noarch" is already installed.
Package "python3-dateutil-1:2.8.2-16.fc41.noarch" is already installed.
Package "python3-pytz-2024.2-1.fc41.noarch" is already installed.
Package "python3-setuptools-69.2.0-8.fc41.noarch" is already installed.
Package "python3-wheel-1:0.43.0-4.fc41.noarch" is already installed.

Nothing to do.
Building target platforms: x86_64
Building for target x86_64
setting SOURCE_DATE_EPOCH=1721347200
Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.57S8ZP
+ umask 022
+ cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build
+ cd SQLAlchemy-Utils-0.41.1
+ echo pyproject-rpm-macros
+ echo python3-devel
+ echo 'python3dist(packaging)'
+ echo 'python3dist(pip) >= 19'
+ '[' -f pyproject.toml ']'
+ '[' -f setup.py ']'
+ echo 'python3dist(setuptools) >= 40.8'
+ rm -rfv '*.dist-info/'
+ '[' -f /usr/bin/python3 ']'
+ mkdir -p /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-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-annobin-cc1  -Wl,--build-id=sha1  '
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ CC=gcc
+ CXX=g++
+ TMPDIR=/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/.pyproject-builddir
+ RPM_TOXENV=py313
+ HOSTNAME=rpmbuild
+ /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/pyproject-wheeldir --output /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-7.fc41.x86_64-pyproject-buildrequires -x test
Handling setuptools >= 40.8 from default build backend
Requirement satisfied: setuptools >= 40.8
   (installed: setuptools 69.2.0)
running egg_info
writing SQLAlchemy_Utils.egg-info/PKG-INFO
writing dependency_links to SQLAlchemy_Utils.egg-info/dependency_links.txt
writing requirements to SQLAlchemy_Utils.egg-info/requires.txt
writing top-level names to SQLAlchemy_Utils.egg-info/top_level.txt
reading manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files found matching 'docs/_themes/.git'
adding license file 'LICENSE'
writing manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt'
Handling wheel from get_requires_for_build_wheel
Requirement satisfied: wheel
   (installed: wheel 0.43.0)
running dist_info
writing SQLAlchemy_Utils.egg-info/PKG-INFO
writing dependency_links to SQLAlchemy_Utils.egg-info/dependency_links.txt
writing requirements to SQLAlchemy_Utils.egg-info/requires.txt
writing top-level names to SQLAlchemy_Utils.egg-info/top_level.txt
reading manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files found matching 'docs/_themes/.git'
adding license file 'LICENSE'
writing manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt'
creating '/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/SQLAlchemy_Utils-0.41.1.dist-info'
Handling SQLAlchemy <2,>=1.3 from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: SQLAlchemy <2,>=1.3
   (installed: SQLAlchemy 1.4.54)
Handling importlib-metadata ; python_version < "3.8" from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: importlib-metadata ; python_version < "3.8"
Handling arrow >=0.3.4 ; extra == 'arrow' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: arrow >=0.3.4 ; extra == 'arrow'
Handling Babel >=1.3 ; extra == 'babel' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: Babel >=1.3 ; extra == 'babel'
Handling colour >=0.0.4 ; extra == 'color' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: colour >=0.0.4 ; extra == 'color'
Handling cryptography >=0.6 ; extra == 'encrypted' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: cryptography >=0.6 ; extra == 'encrypted'
Handling intervals >=0.7.1 ; extra == 'intervals' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: intervals >=0.7.1 ; extra == 'intervals'
Handling passlib <2.0,>=1.6 ; extra == 'password' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: passlib <2.0,>=1.6 ; extra == 'password'
Handling pendulum >=2.0.5 ; extra == 'pendulum' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: pendulum >=2.0.5 ; extra == 'pendulum'
Handling phonenumbers >=5.9.2 ; extra == 'phone' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: phonenumbers >=5.9.2 ; extra == 'phone'
Handling pytest >=2.7.1 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: pytest >=2.7.1 ; extra == 'test'
   (installed: pytest 8.3.4)
Handling Pygments >=1.2 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: Pygments >=1.2 ; extra == 'test'
   (installed: Pygments 2.18.0)
Handling Jinja2 >=2.3 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: Jinja2 >=2.3 ; extra == 'test'
   (installed: Jinja2 3.1.5)
Handling docutils >=0.10 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: docutils >=0.10 ; extra == 'test'
   (installed: docutils 0.20.1)
Handling flexmock >=0.9.7 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: flexmock >=0.9.7 ; extra == 'test'
   (installed: flexmock 0.12.1)
Handling psycopg >=3.1.8 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: psycopg >=3.1.8 ; extra == 'test'
   (installed: psycopg 3.2.1)
Handling psycopg2 >=2.5.1 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: psycopg2 >=2.5.1 ; extra == 'test'
   (installed: psycopg2 2.9.9)
Handling pg8000 >=1.12.4 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: pg8000 >=1.12.4 ; extra == 'test'
   (installed: pg8000 1.31.1)
Handling pytz >=2014.2 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: pytz >=2014.2 ; extra == 'test'
   (installed: pytz 2024.2)
Handling python-dateutil >=2.6 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: python-dateutil >=2.6 ; extra == 'test'
   (installed: python-dateutil 2.8.2)
Handling pymysql ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: pymysql ; extra == 'test'
   (installed: pymysql 1.1.1)
Handling flake8 >=2.4.0 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: flake8 >=2.4.0 ; extra == 'test'
   (installed: flake8 6.1.0)
Handling isort >=4.2.2 ; extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Requirement satisfied: isort >=4.2.2 ; extra == 'test'
   (installed: isort 5.13.2)
Handling backports.zoneinfo ; (python_version < "3.9") and extra == 'test' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: backports.zoneinfo ; (python_version < "3.9") and extra == 'test'
Handling Babel >=1.3 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: Babel >=1.3 ; extra == 'test_all'
Handling Jinja2 >=2.3 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: Jinja2 >=2.3 ; extra == 'test_all'
Handling Pygments >=1.2 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: Pygments >=1.2 ; extra == 'test_all'
Handling arrow >=0.3.4 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: arrow >=0.3.4 ; extra == 'test_all'
Handling colour >=0.0.4 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: colour >=0.0.4 ; extra == 'test_all'
Handling cryptography >=0.6 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: cryptography >=0.6 ; extra == 'test_all'
Handling docutils >=0.10 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: docutils >=0.10 ; extra == 'test_all'
Handling flake8 >=2.4.0 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: flake8 >=2.4.0 ; extra == 'test_all'
Handling flexmock >=0.9.7 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: flexmock >=0.9.7 ; extra == 'test_all'
Handling furl >=0.4.1 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: furl >=0.4.1 ; extra == 'test_all'
Handling intervals >=0.7.1 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: intervals >=0.7.1 ; extra == 'test_all'
Handling isort >=4.2.2 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: isort >=4.2.2 ; extra == 'test_all'
Handling passlib <2.0,>=1.6 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: passlib <2.0,>=1.6 ; extra == 'test_all'
Handling pendulum >=2.0.5 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: pendulum >=2.0.5 ; extra == 'test_all'
Handling pg8000 >=1.12.4 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: pg8000 >=1.12.4 ; extra == 'test_all'
Handling phonenumbers >=5.9.2 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: phonenumbers >=5.9.2 ; extra == 'test_all'
Handling psycopg2 >=2.5.1 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: psycopg2 >=2.5.1 ; extra == 'test_all'
Handling psycopg >=3.1.8 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: psycopg >=3.1.8 ; extra == 'test_all'
Handling pymysql ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: pymysql ; extra == 'test_all'
Handling pytest >=2.7.1 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: pytest >=2.7.1 ; extra == 'test_all'
Handling python-dateutil ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: python-dateutil ; extra == 'test_all'
Handling python-dateutil >=2.6 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: python-dateutil >=2.6 ; extra == 'test_all'
Handling pytz >=2014.2 ; extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: pytz >=2014.2 ; extra == 'test_all'
Handling backports.zoneinfo ; (python_version < "3.9") and extra == 'test_all' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: backports.zoneinfo ; (python_version < "3.9") and extra == 'test_all'
Handling python-dateutil ; extra == 'timezone' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: python-dateutil ; extra == 'timezone'
Handling furl >=0.4.1 ; extra == 'url' from hook generated metadata: Requires-Dist (SQLAlchemy-Utils)
Ignoring alien requirement: furl >=0.4.1 ; extra == 'url'
+ cat /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-7.fc41.x86_64-pyproject-buildrequires
+ rm -rfv SQLAlchemy_Utils-0.41.1.dist-info/
removed 'SQLAlchemy_Utils-0.41.1.dist-info/top_level.txt'
removed 'SQLAlchemy_Utils-0.41.1.dist-info/METADATA'
removed 'SQLAlchemy_Utils-0.41.1.dist-info/LICENSE'
removed directory 'SQLAlchemy_Utils-0.41.1.dist-info/'
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.xhO7zv
+ umask 022
+ cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-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-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 SQLAlchemy-Utils-0.41.1
+ mkdir -p /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.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-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/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir
+ /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/pyproject-wheeldir
Processing /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1
  Preparing metadata (pyproject.toml): started
  Running command Preparing metadata (pyproject.toml)
  running dist_info
  creating /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir/pip-modern-metadata-bkr_hr5m/SQLAlchemy_Utils.egg-info
  writing /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir/pip-modern-metadata-bkr_hr5m/SQLAlchemy_Utils.egg-info/PKG-INFO
  writing dependency_links to /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir/pip-modern-metadata-bkr_hr5m/SQLAlchemy_Utils.egg-info/dependency_links.txt
  writing requirements to /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir/pip-modern-metadata-bkr_hr5m/SQLAlchemy_Utils.egg-info/requires.txt
  writing top-level names to /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir/pip-modern-metadata-bkr_hr5m/SQLAlchemy_Utils.egg-info/top_level.txt
  writing manifest file '/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir/pip-modern-metadata-bkr_hr5m/SQLAlchemy_Utils.egg-info/SOURCES.txt'
  reading manifest file '/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir/pip-modern-metadata-bkr_hr5m/SQLAlchemy_Utils.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no previously-included files matching '*.pyc' found under directory 'tests'
  warning: no previously-included files matching '*.pyc' found under directory 'docs'
  no previously-included directories found matching 'docs/_build'
  warning: no previously-included files found matching 'docs/_themes/.git'
  adding license file 'LICENSE'
  writing manifest file '/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir/pip-modern-metadata-bkr_hr5m/SQLAlchemy_Utils.egg-info/SOURCES.txt'
  creating '/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir/pip-modern-metadata-bkr_hr5m/SQLAlchemy_Utils-0.41.1.dist-info'
  Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: SQLAlchemy-Utils
  Building wheel for SQLAlchemy-Utils (pyproject.toml): started
  Running command Building wheel for SQLAlchemy-Utils (pyproject.toml)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib
  creating build/lib/sqlalchemy_utils
  copying sqlalchemy_utils/__init__.py -> build/lib/sqlalchemy_utils
  copying sqlalchemy_utils/aggregates.py -> build/lib/sqlalchemy_utils
  copying sqlalchemy_utils/asserts.py -> build/lib/sqlalchemy_utils
  copying sqlalchemy_utils/compat.py -> build/lib/sqlalchemy_utils
  copying sqlalchemy_utils/exceptions.py -> build/lib/sqlalchemy_utils
  copying sqlalchemy_utils/expressions.py -> build/lib/sqlalchemy_utils
  copying sqlalchemy_utils/generic.py -> build/lib/sqlalchemy_utils
  copying sqlalchemy_utils/i18n.py -> build/lib/sqlalchemy_utils
  copying sqlalchemy_utils/listeners.py -> build/lib/sqlalchemy_utils
  copying sqlalchemy_utils/models.py -> build/lib/sqlalchemy_utils
  copying sqlalchemy_utils/observer.py -> build/lib/sqlalchemy_utils
  copying sqlalchemy_utils/operators.py -> build/lib/sqlalchemy_utils
  copying sqlalchemy_utils/path.py -> build/lib/sqlalchemy_utils
  copying sqlalchemy_utils/proxy_dict.py -> build/lib/sqlalchemy_utils
  copying sqlalchemy_utils/query_chain.py -> build/lib/sqlalchemy_utils
  copying sqlalchemy_utils/utils.py -> build/lib/sqlalchemy_utils
  copying sqlalchemy_utils/view.py -> build/lib/sqlalchemy_utils
  creating build/lib/sqlalchemy_utils/functions
  copying sqlalchemy_utils/functions/__init__.py -> build/lib/sqlalchemy_utils/functions
  copying sqlalchemy_utils/functions/database.py -> build/lib/sqlalchemy_utils/functions
  copying sqlalchemy_utils/functions/foreign_keys.py -> build/lib/sqlalchemy_utils/functions
  copying sqlalchemy_utils/functions/mock.py -> build/lib/sqlalchemy_utils/functions
  copying sqlalchemy_utils/functions/orm.py -> build/lib/sqlalchemy_utils/functions
  copying sqlalchemy_utils/functions/render.py -> build/lib/sqlalchemy_utils/functions
  copying sqlalchemy_utils/functions/sort_query.py -> build/lib/sqlalchemy_utils/functions
  creating build/lib/sqlalchemy_utils/primitives
  copying sqlalchemy_utils/primitives/__init__.py -> build/lib/sqlalchemy_utils/primitives
  copying sqlalchemy_utils/primitives/country.py -> build/lib/sqlalchemy_utils/primitives
  copying sqlalchemy_utils/primitives/currency.py -> build/lib/sqlalchemy_utils/primitives
  copying sqlalchemy_utils/primitives/ltree.py -> build/lib/sqlalchemy_utils/primitives
  copying sqlalchemy_utils/primitives/weekday.py -> build/lib/sqlalchemy_utils/primitives
  copying sqlalchemy_utils/primitives/weekdays.py -> build/lib/sqlalchemy_utils/primitives
  creating build/lib/sqlalchemy_utils/relationships
  copying sqlalchemy_utils/relationships/__init__.py -> build/lib/sqlalchemy_utils/relationships
  copying sqlalchemy_utils/relationships/chained_join.py -> build/lib/sqlalchemy_utils/relationships
  creating build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/__init__.py -> build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/arrow.py -> build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/bit.py -> build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/choice.py -> build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/color.py -> build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/country.py -> build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/currency.py -> build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/email.py -> build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/ip_address.py -> build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/json.py -> build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/locale.py -> build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/ltree.py -> build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/password.py -> build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/pg_composite.py -> build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/phone_number.py -> build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/range.py -> build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/scalar_coercible.py -> build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/scalar_list.py -> build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/timezone.py -> build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/ts_vector.py -> build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/url.py -> build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/uuid.py -> build/lib/sqlalchemy_utils/types
  copying sqlalchemy_utils/types/weekdays.py -> build/lib/sqlalchemy_utils/types
  creating build/lib/sqlalchemy_utils/types/encrypted
  copying sqlalchemy_utils/types/encrypted/__init__.py -> build/lib/sqlalchemy_utils/types/encrypted
  copying sqlalchemy_utils/types/encrypted/encrypted_type.py -> build/lib/sqlalchemy_utils/types/encrypted
  copying sqlalchemy_utils/types/encrypted/padding.py -> build/lib/sqlalchemy_utils/types/encrypted
  creating build/lib/sqlalchemy_utils/types/enriched_datetime
  copying sqlalchemy_utils/types/enriched_datetime/__init__.py -> build/lib/sqlalchemy_utils/types/enriched_datetime
  copying sqlalchemy_utils/types/enriched_datetime/arrow_datetime.py -> build/lib/sqlalchemy_utils/types/enriched_datetime
  copying sqlalchemy_utils/types/enriched_datetime/enriched_date_type.py -> build/lib/sqlalchemy_utils/types/enriched_datetime
  copying sqlalchemy_utils/types/enriched_datetime/enriched_datetime_type.py -> build/lib/sqlalchemy_utils/types/enriched_datetime
  copying sqlalchemy_utils/types/enriched_datetime/pendulum_date.py -> build/lib/sqlalchemy_utils/types/enriched_datetime
  copying sqlalchemy_utils/types/enriched_datetime/pendulum_datetime.py -> build/lib/sqlalchemy_utils/types/enriched_datetime
  running egg_info
  writing SQLAlchemy_Utils.egg-info/PKG-INFO
  writing dependency_links to SQLAlchemy_Utils.egg-info/dependency_links.txt
  writing requirements to SQLAlchemy_Utils.egg-info/requires.txt
  writing top-level names to SQLAlchemy_Utils.egg-info/top_level.txt
  reading manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no previously-included files matching '*.pyc' found under directory 'tests'
  warning: no previously-included files matching '*.pyc' found under directory 'docs'
  no previously-included directories found matching 'docs/_build'
  warning: no previously-included files found matching 'docs/_themes/.git'
  adding license file 'LICENSE'
  writing manifest file 'SQLAlchemy_Utils.egg-info/SOURCES.txt'
  installing to build/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating build/bdist.linux-x86_64
  creating build/bdist.linux-x86_64/wheel
  creating build/bdist.linux-x86_64/wheel/sqlalchemy_utils
  copying build/lib/sqlalchemy_utils/__init__.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils
  copying build/lib/sqlalchemy_utils/aggregates.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils
  copying build/lib/sqlalchemy_utils/asserts.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils
  copying build/lib/sqlalchemy_utils/compat.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils
  copying build/lib/sqlalchemy_utils/exceptions.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils
  copying build/lib/sqlalchemy_utils/expressions.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils
  copying build/lib/sqlalchemy_utils/generic.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils
  copying build/lib/sqlalchemy_utils/i18n.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils
  copying build/lib/sqlalchemy_utils/listeners.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils
  copying build/lib/sqlalchemy_utils/models.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils
  copying build/lib/sqlalchemy_utils/observer.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils
  copying build/lib/sqlalchemy_utils/operators.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils
  copying build/lib/sqlalchemy_utils/path.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils
  copying build/lib/sqlalchemy_utils/proxy_dict.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils
  copying build/lib/sqlalchemy_utils/query_chain.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils
  copying build/lib/sqlalchemy_utils/utils.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils
  copying build/lib/sqlalchemy_utils/view.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils
  creating build/bdist.linux-x86_64/wheel/sqlalchemy_utils/functions
  copying build/lib/sqlalchemy_utils/functions/__init__.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/functions
  copying build/lib/sqlalchemy_utils/functions/database.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/functions
  copying build/lib/sqlalchemy_utils/functions/foreign_keys.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/functions
  copying build/lib/sqlalchemy_utils/functions/mock.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/functions
  copying build/lib/sqlalchemy_utils/functions/orm.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/functions
  copying build/lib/sqlalchemy_utils/functions/render.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/functions
  copying build/lib/sqlalchemy_utils/functions/sort_query.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/functions
  creating build/bdist.linux-x86_64/wheel/sqlalchemy_utils/primitives
  copying build/lib/sqlalchemy_utils/primitives/__init__.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/primitives
  copying build/lib/sqlalchemy_utils/primitives/country.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/primitives
  copying build/lib/sqlalchemy_utils/primitives/currency.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/primitives
  copying build/lib/sqlalchemy_utils/primitives/ltree.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/primitives
  copying build/lib/sqlalchemy_utils/primitives/weekday.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/primitives
  copying build/lib/sqlalchemy_utils/primitives/weekdays.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/primitives
  creating build/bdist.linux-x86_64/wheel/sqlalchemy_utils/relationships
  copying build/lib/sqlalchemy_utils/relationships/__init__.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/relationships
  copying build/lib/sqlalchemy_utils/relationships/chained_join.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/relationships
  creating build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/__init__.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/arrow.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/bit.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/choice.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/color.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/country.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/currency.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/email.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/ip_address.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/json.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/locale.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/ltree.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/password.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/pg_composite.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/phone_number.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/range.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/scalar_coercible.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/scalar_list.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/timezone.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/ts_vector.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/url.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/uuid.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  copying build/lib/sqlalchemy_utils/types/weekdays.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types
  creating build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types/encrypted
  copying build/lib/sqlalchemy_utils/types/encrypted/__init__.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types/encrypted
  copying build/lib/sqlalchemy_utils/types/encrypted/encrypted_type.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types/encrypted
  copying build/lib/sqlalchemy_utils/types/encrypted/padding.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types/encrypted
  creating build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types/enriched_datetime
  copying build/lib/sqlalchemy_utils/types/enriched_datetime/__init__.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types/enriched_datetime
  copying build/lib/sqlalchemy_utils/types/enriched_datetime/arrow_datetime.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types/enriched_datetime
  copying build/lib/sqlalchemy_utils/types/enriched_datetime/enriched_date_type.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types/enriched_datetime
  copying build/lib/sqlalchemy_utils/types/enriched_datetime/enriched_datetime_type.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types/enriched_datetime
  copying build/lib/sqlalchemy_utils/types/enriched_datetime/pendulum_date.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types/enriched_datetime
  copying build/lib/sqlalchemy_utils/types/enriched_datetime/pendulum_datetime.py -> build/bdist.linux-x86_64/wheel/sqlalchemy_utils/types/enriched_datetime
  running install_egg_info
  Copying SQLAlchemy_Utils.egg-info to build/bdist.linux-x86_64/wheel/SQLAlchemy_Utils-0.41.1-py3.13.egg-info
  running install_scripts
  creating build/bdist.linux-x86_64/wheel/SQLAlchemy_Utils-0.41.1.dist-info/WHEEL
  creating '/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir/pip-wheel-030ffikk/.tmp-w5q9j1bv/SQLAlchemy_Utils-0.41.1-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
  adding 'sqlalchemy_utils/__init__.py'
  adding 'sqlalchemy_utils/aggregates.py'
  adding 'sqlalchemy_utils/asserts.py'
  adding 'sqlalchemy_utils/compat.py'
  adding 'sqlalchemy_utils/exceptions.py'
  adding 'sqlalchemy_utils/expressions.py'
  adding 'sqlalchemy_utils/generic.py'
  adding 'sqlalchemy_utils/i18n.py'
  adding 'sqlalchemy_utils/listeners.py'
  adding 'sqlalchemy_utils/models.py'
  adding 'sqlalchemy_utils/observer.py'
  adding 'sqlalchemy_utils/operators.py'
  adding 'sqlalchemy_utils/path.py'
  adding 'sqlalchemy_utils/proxy_dict.py'
  adding 'sqlalchemy_utils/query_chain.py'
  adding 'sqlalchemy_utils/utils.py'
  adding 'sqlalchemy_utils/view.py'
  adding 'sqlalchemy_utils/functions/__init__.py'
  adding 'sqlalchemy_utils/functions/database.py'
  adding 'sqlalchemy_utils/functions/foreign_keys.py'
  adding 'sqlalchemy_utils/functions/mock.py'
  adding 'sqlalchemy_utils/functions/orm.py'
  adding 'sqlalchemy_utils/functions/render.py'
  adding 'sqlalchemy_utils/functions/sort_query.py'
  adding 'sqlalchemy_utils/primitives/__init__.py'
  adding 'sqlalchemy_utils/primitives/country.py'
  adding 'sqlalchemy_utils/primitives/currency.py'
  adding 'sqlalchemy_utils/primitives/ltree.py'
  adding 'sqlalchemy_utils/primitives/weekday.py'
  adding 'sqlalchemy_utils/primitives/weekdays.py'
  adding 'sqlalchemy_utils/relationships/__init__.py'
  adding 'sqlalchemy_utils/relationships/chained_join.py'
  adding 'sqlalchemy_utils/types/__init__.py'
  adding 'sqlalchemy_utils/types/arrow.py'
  adding 'sqlalchemy_utils/types/bit.py'
  adding 'sqlalchemy_utils/types/choice.py'
  adding 'sqlalchemy_utils/types/color.py'
  adding 'sqlalchemy_utils/types/country.py'
  adding 'sqlalchemy_utils/types/currency.py'
  adding 'sqlalchemy_utils/types/email.py'
  adding 'sqlalchemy_utils/types/ip_address.py'
  adding 'sqlalchemy_utils/types/json.py'
  adding 'sqlalchemy_utils/types/locale.py'
  adding 'sqlalchemy_utils/types/ltree.py'
  adding 'sqlalchemy_utils/types/password.py'
  adding 'sqlalchemy_utils/types/pg_composite.py'
  adding 'sqlalchemy_utils/types/phone_number.py'
  adding 'sqlalchemy_utils/types/range.py'
  adding 'sqlalchemy_utils/types/scalar_coercible.py'
  adding 'sqlalchemy_utils/types/scalar_list.py'
  adding 'sqlalchemy_utils/types/timezone.py'
  adding 'sqlalchemy_utils/types/ts_vector.py'
  adding 'sqlalchemy_utils/types/url.py'
  adding 'sqlalchemy_utils/types/uuid.py'
  adding 'sqlalchemy_utils/types/weekdays.py'
  adding 'sqlalchemy_utils/types/encrypted/__init__.py'
  adding 'sqlalchemy_utils/types/encrypted/encrypted_type.py'
  adding 'sqlalchemy_utils/types/encrypted/padding.py'
  adding 'sqlalchemy_utils/types/enriched_datetime/__init__.py'
  adding 'sqlalchemy_utils/types/enriched_datetime/arrow_datetime.py'
  adding 'sqlalchemy_utils/types/enriched_datetime/enriched_date_type.py'
  adding 'sqlalchemy_utils/types/enriched_datetime/enriched_datetime_type.py'
  adding 'sqlalchemy_utils/types/enriched_datetime/pendulum_date.py'
  adding 'sqlalchemy_utils/types/enriched_datetime/pendulum_datetime.py'
  adding 'SQLAlchemy_Utils-0.41.1.dist-info/LICENSE'
  adding 'SQLAlchemy_Utils-0.41.1.dist-info/METADATA'
  adding 'SQLAlchemy_Utils-0.41.1.dist-info/WHEEL'
  adding 'SQLAlchemy_Utils-0.41.1.dist-info/top_level.txt'
  adding 'SQLAlchemy_Utils-0.41.1.dist-info/RECORD'
  removing build/bdist.linux-x86_64/wheel
  Building wheel for SQLAlchemy-Utils (pyproject.toml): finished with status 'done'
  Created wheel for SQLAlchemy-Utils: filename=SQLAlchemy_Utils-0.41.1-py3-none-any.whl size=92132 sha256=04e1dcbd828f1096b35155af4a9defaddfee4e346c002ecc700c10b1bceeb1af
  Stored in directory: /builddir/.cache/pip/wheels/2a/ef/30/4ad8a41f56d0e979b2f39ad341c81c69103e29a73a21e9393e
Successfully built SQLAlchemy-Utils
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Od99ik
+ umask 022
+ cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build
+ '[' /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT '!=' / ']'
+ rm -rf /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT
++ dirname /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT
+ mkdir -p /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build
+ mkdir /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-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-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 SQLAlchemy-Utils-0.41.1
++ ls /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/pyproject-wheeldir/SQLAlchemy_Utils-0.41.1-py3-none-any.whl
++ xargs basename --multiple
++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/'
+ specifier=SQLAlchemy_Utils==0.41.1
+ '[' -z SQLAlchemy_Utils==0.41.1 ']'
+ TMPDIR=/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir
+ /usr/bin/python3 -m pip install --root /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-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/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/pyproject-wheeldir SQLAlchemy_Utils==0.41.1
Using pip 24.2 from /usr/lib/python3.13/site-packages/pip (python 3.13)
Looking in links: /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/pyproject-wheeldir
Processing ./pyproject-wheeldir/SQLAlchemy_Utils-0.41.1-py3-none-any.whl
Installing collected packages: SQLAlchemy_Utils
Successfully installed SQLAlchemy_Utils-0.41.1
+ '[' -d /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/bin ']'
+ rm -f /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-7.fc41.x86_64-pyproject-ghost-distinfo
+ site_dirs=()
+ '[' -d /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages ']'
+ site_dirs+=("/usr/lib/python3.13/site-packages")
+ '[' /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib64/python3.13/site-packages '!=' /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages ']'
+ '[' -d /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib64/python3.13/site-packages ']'
+ for site_dir in ${site_dirs[@]}
+ for distinfo in /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT$site_dir/*.dist-info
+ echo '%ghost /usr/lib/python3.13/site-packages/SQLAlchemy_Utils-0.41.1.dist-info'
+ sed -i s/pip/rpm/ /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/SQLAlchemy_Utils-0.41.1.dist-info/INSTALLER
+ PYTHONPATH=/usr/lib/rpm/redhat
+ /usr/bin/python3 -B /usr/lib/rpm/redhat/pyproject_preprocess_record.py --buildroot /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT --record /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/SQLAlchemy_Utils-0.41.1.dist-info/RECORD --output /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-7.fc41.x86_64-pyproject-record
+ rm -fv /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/SQLAlchemy_Utils-0.41.1.dist-info/RECORD
removed '/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/SQLAlchemy_Utils-0.41.1.dist-info/RECORD'
+ rm -fv /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/SQLAlchemy_Utils-0.41.1.dist-info/REQUESTED
removed '/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/SQLAlchemy_Utils-0.41.1.dist-info/REQUESTED'
++ wc -l /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-7.fc41.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/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-7.fc41.x86_64-pyproject-files --output-modules /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-7.fc41.x86_64-pyproject-modules --buildroot /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT --sitelib /usr/lib/python3.13/site-packages --sitearch /usr/lib64/python3.13/site-packages --python-version 3.13 --pyproject-record /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/python-sqlalchemy-utils-0.41.1-7.fc41.x86_64-pyproject-record --prefix /usr sqlalchemy_utils
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
+ /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/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/check-rpaths
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
+ /usr/lib/rpm/brp-remove-la-files
+ env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j4
Bytecompiling .py files below /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13 using python3.13
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/bin/add-determinism --brp -j4 /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/functions/__pycache__/__init__.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/functions/__pycache__/database.cpython-313.pyc: replacing with normalized version
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/functions/__pycache__/render.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/functions/__pycache__/sort_query.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/functions/__pycache__/foreign_keys.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/primitives/__pycache__/__init__.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/functions/__pycache__/orm.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/primitives/__pycache__/country.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/primitives/__pycache__/currency.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/functions/__pycache__/database.cpython-313.opt-1.pyc: replacing with normalized version
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/primitives/__pycache__/weekday.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/primitives/__pycache__/weekdays.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/primitives/__pycache__/ltree.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/relationships/__pycache__/chained_join.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/relationships/__pycache__/__init__.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/functions/__pycache__/mock.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/encrypted/__pycache__/padding.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/encrypted/__pycache__/encrypted_type.cpython-313.pyc: replacing with normalized version
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/enriched_datetime/__pycache__/__init__.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/enriched_datetime/__pycache__/arrow_datetime.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/enriched_datetime/__pycache__/enriched_date_type.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/encrypted/__pycache__/encrypted_type.cpython-313.opt-1.pyc: replacing with normalized version
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/enriched_datetime/__pycache__/enriched_datetime_type.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/enriched_datetime/__pycache__/pendulum_date.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/enriched_datetime/__pycache__/pendulum_datetime.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/__init__.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/arrow.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/bit.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/encrypted/__pycache__/__init__.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/choice.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/currency.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/email.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/ip_address.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/json.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/locale.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/ltree.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/password.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/phone_number.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/pg_composite.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/scalar_coercible.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/scalar_list.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/timezone.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/range.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/ts_vector.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/url.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/uuid.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/weekdays.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/__pycache__/__init__.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/__pycache__/aggregates.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/__pycache__/asserts.cpython-313.pyc: replacing with normalized version
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/__pycache__/exceptions.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/__pycache__/compat.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/__pycache__/expressions.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/__pycache__/generic.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/__pycache__/i18n.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/__pycache__/listeners.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/__pycache__/models.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/__pycache__/observer.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/__pycache__/operators.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/__pycache__/proxy_dict.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/__pycache__/path.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/__pycache__/query_chain.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/__pycache__/utils.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/__pycache__/asserts.cpython-313.opt-1.pyc: replacing with normalized version
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/__pycache__/view.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/color.cpython-313.pyc: rewriting with normalized contents
/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages/sqlalchemy_utils/types/__pycache__/country.cpython-313.pyc: rewriting with normalized contents
Scanned 20 directories and 197 files,
               processed 67 inodes,
               67 modified (6 replaced + 61 rewritten),
               0 unsupported format, 0 errors
Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.1MIWU0
+ umask 022
+ cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-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-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 SQLAlchemy-Utils-0.41.1
+ 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-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '
+ PATH=/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin
+ PYTHONPATH=/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib64/python3.13/site-packages:/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/lib/python3.13/site-packages
+ PYTHONDONTWRITEBYTECODE=1
+ PYTEST_ADDOPTS=' --ignore=/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/.pyproject-builddir'
+ PYTEST_XDIST_AUTO_NUM_WORKERS=4
+ /usr/bin/pytest
============================= test session starts ==============================
platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0
rootdir: /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1
plugins: flexmock-0.12.1
collected 2684 items

tests/aggregate/test_backrefs.py ...                                     [  0%]
tests/aggregate/test_custom_select_expressions.py EE                     [  0%]
tests/aggregate/test_join_table_inheritance.py .EEEE                     [  0%]
tests/aggregate/test_m2m.py EE                                           [  0%]
tests/aggregate/test_m2m_m2m.py E                                        [  0%]
tests/aggregate/test_multiple_aggregates_per_class.py ...                [  0%]
tests/aggregate/test_o2m_m2m.py E                                        [  0%]
tests/aggregate/test_o2m_o2m.py E                                        [  0%]
tests/aggregate/test_o2m_o2m_o2m.py EE                                   [  0%]
tests/aggregate/test_search_vectors.py E                                 [  0%]
tests/aggregate/test_simple_paths.py ...                                 [  0%]
tests/aggregate/test_with_column_alias.py ...                            [  1%]
tests/aggregate/test_with_ondelete_cascade.py E                          [  1%]
tests/functions/test_cast_if.py ......                                   [  1%]
tests/functions/test_database.py ....FFFFFsFFFs                          [  1%]
tests/functions/test_dependent_objects.py .......                        [  2%]
tests/functions/test_escape_like.py .                                    [  2%]
tests/functions/test_get_bind.py ....                                    [  2%]
tests/functions/test_get_class_by_table.py .....                         [  2%]
tests/functions/test_get_column_key.py ...                               [  2%]
tests/functions/test_get_columns.py .........                            [  2%]
tests/functions/test_get_hybrid_properties.py ...                        [  2%]
tests/functions/test_get_mapper.py ................                      [  3%]
tests/functions/test_get_primary_keys.py .....                           [  3%]
tests/functions/test_get_referencing_foreign_keys.py ....                [  3%]
tests/functions/test_get_tables.py ........                              [  4%]
tests/functions/test_get_type.py ......                                  [  4%]
tests/functions/test_getdotattr.py ...                                   [  4%]
tests/functions/test_has_changes.py ......                               [  4%]
tests/functions/test_has_index.py ........                               [  5%]
tests/functions/test_has_unique_index.py .........                       [  5%]
tests/functions/test_identity.py ......                                  [  5%]
tests/functions/test_is_loaded.py ..                                     [  5%]
tests/functions/test_json_sql.py EEEEEEEE                                [  5%]
tests/functions/test_jsonb_sql.py EEEEEEEE                               [  6%]
tests/functions/test_make_order_by_deterministic.py ..........           [  6%]
tests/functions/test_merge_references.py .....                           [  6%]
tests/functions/test_naturally_equivalent.py ..                          [  6%]
tests/functions/test_non_indexed_foreign_keys.py .                       [  6%]
tests/functions/test_quote.py ..                                         [  7%]
tests/functions/test_render.py ......                                    [  7%]
tests/functions/test_table_name.py ...                                   [  7%]
tests/generic_relationship/test_abstract_base_class.py .......           [  7%]
tests/generic_relationship/test_column_aliases.py .......                [  7%]
tests/generic_relationship/test_composite_keys.py .......                [  8%]
tests/generic_relationship/test_hybrid_properties.py .                   [  8%]
tests/generic_relationship/test_single_table_inheritance.py ........     [  8%]
tests/observes/test_column_property.py EEEE                              [  8%]
tests/observes/test_dynamic_relationship.py EE                           [  8%]
tests/observes/test_m2m_m2m_m2m.py EEEEE                                 [  8%]
tests/observes/test_o2m_o2m_o2m.py EEEEE                                 [  9%]
tests/observes/test_o2m_o2o_o2m.py EEEEE                                 [  9%]
tests/observes/test_o2o_o2o.py E                                         [  9%]
tests/observes/test_o2o_o2o_o2o.py EEE                                   [  9%]
tests/primitives/test_country.py sssssssssssssssssssssss                 [ 10%]
tests/primitives/test_currency.py sssssssssssss                          [ 10%]
tests/primitives/test_ltree.py ......................................... [ 12%]
.......................                                                  [ 13%]
tests/primitives/test_weekdays.py ssssssssssssssssssssssssssssssssssssss [ 14%]
                                                                         [ 14%]
tests/relationships/test_chained_join.py .........                       [ 14%]
tests/relationships/test_select_correlated_expression.py EEEEEEEEEEE     [ 15%]
tests/test_asserts.py EEEEEEEEEEEEEEEEE                                  [ 15%]
tests/test_auto_delete_orphans.py ...                                    [ 16%]
tests/test_case_insensitive_comparator.py ....                           [ 16%]
tests/test_compat.py ........                                            [ 16%]
tests/test_expressions.py .....                                          [ 16%]
tests/test_instant_defaults_listener.py ...                              [ 16%]
tests/test_instrumented_list.py ..                                       [ 16%]
tests/test_models.py .....                                               [ 17%]
tests/test_path.py ............................                          [ 18%]
tests/test_proxy_dict.py ........                                        [ 18%]
tests/test_query_chain.py .........                                      [ 18%]
tests/test_translation_hybrid.py sssssssssssss                           [ 19%]
tests/test_views.py EEEEEE.x                                             [ 19%]
tests/types/encrypted/test_padding.py ....                               [ 19%]
tests/types/test_arrow.py sssssss                                        [ 19%]
tests/types/test_choice.py .................                             [ 20%]
tests/types/test_color.py .....                                          [ 20%]
tests/types/test_composite.py EEEEsssssssssEE                            [ 21%]
tests/types/test_country.py ssss                                         [ 21%]
tests/types/test_currency.py ssss                                        [ 21%]
tests/types/test_date_range.py ssssssssssss                              [ 22%]
tests/types/test_datetime_range.py sssssssssss                           [ 22%]
tests/types/test_email.py ....                                           [ 22%]
tests/types/test_encrypted.py ssssssssssssssssssssssssssssssssssssssssss [ 24%]
sssssssssssssssssssssss......sssssssssssssssssss                         [ 25%]
tests/types/test_enriched_date_pendulum.py ssssss                        [ 26%]
tests/types/test_enriched_datetime_arrow.py sssssss                      [ 26%]
tests/types/test_enriched_datetime_pendulum.py sssss                     [ 26%]
tests/types/test_int_range.py ssssssssssssssssssssssssssssssssssssssssss [ 28%]
sssssssssssssss                                                          [ 28%]
tests/types/test_ip_address.py ..                                        [ 28%]
tests/types/test_json.py .....EEEEE                                      [ 29%]
tests/types/test_locale.py sssssss                                       [ 29%]
tests/types/test_ltree.py E.EE                                           [ 29%]
tests/types/test_numeric_range.py ssssssssssssssssss                     [ 30%]
tests/types/test_password.py sssssssssssssssssss                         [ 30%]
tests/types/test_phonenumber.py .........................                [ 31%]
tests/types/test_scalar_list.py .....                                    [ 32%]
tests/types/test_timezone.py ........................................... [ 33%]
........................................................................ [ 36%]
........................................................................ [ 39%]
........................................................................ [ 41%]
........................................................................ [ 44%]
........................................................................ [ 47%]
........................................................................ [ 49%]
........................................................................ [ 52%]
........................................................................ [ 55%]
........................................................................ [ 57%]
........................................................................ [ 60%]
........................................................................ [ 63%]
........................................................................ [ 65%]
........................................................................ [ 68%]
........................................................................ [ 71%]
........................................................................ [ 73%]
........................................................................ [ 76%]
........................................................................ [ 79%]
........................................................................ [ 82%]
........................................................................ [ 84%]
........................................................................ [ 87%]
........................................................................ [ 90%]
........................................................................ [ 92%]
........................................................................ [ 95%]
........................................................................ [ 98%]
...........................                                              [ 99%]
tests/types/test_tsvector.py .E.E.EE                                     [ 99%]
tests/types/test_url.py sss                                              [ 99%]
tests/types/test_uuid.py .....                                           [ 99%]
tests/types/test_weekdays.py sssssssss                                   [100%]

==================================== ERRORS ====================================
_ ERROR at setup of TestLazyEvaluatedSelectExpressionsForAggregates.test_assigns_aggregates_on_insert _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bd3c1be0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestLazyEvaluatedSelectExpressionsForAggregates.test_assigns_aggregates_on_update _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcb9a990>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestLazyEvaluatedSelectExpressionsForAggregates.test_assigns_aggregates_on_insert[simple] _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcb9b390>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestLazyEvaluatedSelectExpressionsForAggregates.test_assigns_aggregates_on_insert[child] _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcc208a0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestLazyEvaluatedSelectExpressionsForAggregates.test_assigns_aggregates_on_update[simple] _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bd1cda70>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestLazyEvaluatedSelectExpressionsForAggregates.test_assigns_aggregates_on_update[child] _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcbaa210>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestAggregatesWithManyToManyRelationships.test_assigns_aggregates_on_insert _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcbc1f20>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestAggregatesWithManyToManyRelationships.test_updates_aggregates_on_delete _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcc70f30>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
______ ERROR at setup of TestAggregateManyToManyAndManyToMany.test_insert ______

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcbec950>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
______ ERROR at setup of TestAggregateOneToManyAndManyToMany.test_insert _______

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc562350>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestAggregateOneToManyAndOneToMany.test_assigns_aggregates _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcc2f890>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
______ ERROR at setup of Test3LevelDeepOneToMany.test_assigns_aggregates _______

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcbf9e50>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of Test3LevelDeepOneToMany.test_only_updates_affected_aggregates _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcbae6d0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestSearchVectorAggregates.test_assigns_aggregates_on_insert _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcc07690>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestAggregateValueGenerationWithCascadeDelete.test_something _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcbade10>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
___________ ERROR at setup of TestJSONSQL.test_compiled_scalars[1-1] ___________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc459470>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_______ ERROR at setup of TestJSONSQL.test_compiled_scalars[14.14-14.14] _______

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bdb92510>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_____ ERROR at setup of TestJSONSQL.test_compiled_scalars[value2-result2] ______

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcc07d90>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_____ ERROR at setup of TestJSONSQL.test_compiled_scalars[value3-result3] ______

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bdb92510>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_____ ERROR at setup of TestJSONSQL.test_compiled_scalars[value4-result4] ______

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcc05fd0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_____ ERROR at setup of TestJSONSQL.test_compiled_scalars[value5-result5] ______

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc765390>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_____ ERROR at setup of TestJSONSQL.test_compiled_scalars[value6-result6] ______

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcc065f0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_____ ERROR at setup of TestJSONSQL.test_compiled_scalars[value7-result7] ______

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc765e10>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
__________ ERROR at setup of TestJSONBSQL.test_compiled_scalars[1-1] ___________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcd37070>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
______ ERROR at setup of TestJSONBSQL.test_compiled_scalars[14.14-14.14] _______

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc767770>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_____ ERROR at setup of TestJSONBSQL.test_compiled_scalars[value2-result2] _____

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcd36cf0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_____ ERROR at setup of TestJSONBSQL.test_compiled_scalars[value3-result3] _____

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc767af0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_____ ERROR at setup of TestJSONBSQL.test_compiled_scalars[value4-result4] _____

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc7e1a90>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_____ ERROR at setup of TestJSONBSQL.test_compiled_scalars[value5-result5] _____

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc765c50>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_____ ERROR at setup of TestJSONBSQL.test_compiled_scalars[value6-result6] _____

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcc133f0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_____ ERROR at setup of TestJSONBSQL.test_compiled_scalars[value7-result7] _____

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc7674d0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
__________ ERROR at setup of TestObservesForColumn.test_simple_insert __________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc02f770>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestObservesForColumnWithoutActualChanges.test_only_notifies_observer_on_actual_changes _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc0fecf0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestObservesForMultipleColumns.test_only_notifies_observer_on_actual_changes _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc0ff5b0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestObservesForMultipleColumnsFiresOnlyOnce.test_only_notifies_observer_on_actual_changes _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc0ff850>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestObservesForDynamicRelationship.test_add_observed_object _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc525630>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestObservesForDynamicRelationship.test_add_observed_object_from_backref _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc0fd390>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
__ ERROR at setup of TestObservesForManyToManyToManyToMany.test_simple_insert __

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc5251d0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestObservesForManyToManyToManyToMany.test_add_leaf_object _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc9f1a90>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestObservesForManyToManyToManyToMany.test_remove_leaf_object _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc5249f0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestObservesForManyToManyToManyToMany.test_delete_intermediate_object _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc9f19b0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestObservesForManyToManyToManyToMany.test_gathered_objects_are_distinct _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc9f27b0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
___ ERROR at setup of TestObservesFor3LevelDeepOneToMany.test_simple_insert ____

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc9f3230>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
__ ERROR at setup of TestObservesFor3LevelDeepOneToMany.test_add_leaf_object ___

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc9f2970>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestObservesFor3LevelDeepOneToMany.test_remove_leaf_object _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc9f3310>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestObservesFor3LevelDeepOneToMany.test_delete_intermediate_object _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcc30bb0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestObservesFor3LevelDeepOneToMany.test_gathered_objects_are_distinct _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc9f1d30>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
___ ERROR at setup of TestObservesForOneToManyToOneToMany.test_simple_insert ___

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcc327b0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
__ ERROR at setup of TestObservesForOneToManyToOneToMany.test_add_leaf_object __

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc9f0e50>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestObservesForOneToManyToOneToMany.test_remove_leaf_object _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc9f1b70>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestObservesForOneToManyToOneToMany.test_delete_intermediate_object _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc9f33f0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestObservesForOneToManyToOneToMany.test_gathered_objects_are_distinct _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc9f2190>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestObservesForOneToManyToOneToMany.test_observable_root_obj_is_none _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc9f3690>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
____ ERROR at setup of TestObservesForOneToOneToOneToOne.test_simple_insert ____

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc9f3e70>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestObservesForOneToOneToOneToOne.test_replace_leaf_object _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc9f2b30>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestObservesForOneToOneToOneToOne.test_delete_leaf_object __

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc9f2f90>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestSelectCorrelatedExpression.test_returns_correct_results[categories-categories-subcategories-result0] _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc254590>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestSelectCorrelatedExpression.test_returns_correct_results[articles-comments-comments-result1] _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc5e0210>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestSelectCorrelatedExpression.test_returns_correct_results[users-groups-groups-result2] _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc5e1550>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestSelectCorrelatedExpression.test_returns_correct_results[users-users-all_friends-result3] _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc5e33f0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestSelectCorrelatedExpression.test_returns_correct_results[users-users-all_friends.all_friends-result4] _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc5e18d0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestSelectCorrelatedExpression.test_returns_correct_results[users-users-groups.users-result5] _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc5e0130>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestSelectCorrelatedExpression.test_returns_correct_results[groups-articles-users.authored_articles-result6] _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc5e35b0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestSelectCorrelatedExpression.test_returns_correct_results[categories-categories-subcategories.subcategories-result7] _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcbc9ef0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestSelectCorrelatedExpression.test_returns_correct_results[categories-categories-subcategories.subcategories.subcategories-result8] _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcc12190>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestSelectCorrelatedExpression.test_order_by_intermediate_table_column _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcc133f0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestSelectCorrelatedExpression.test_with_non_aggregate_function _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc2e90f0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_____ ERROR at setup of TestAssertMaxLengthWithArray.test_with_max_length ______

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc9f0590>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestAssertMaxLengthWithArray.test_smaller_than_max_length __

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc2e9c50>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
__ ERROR at setup of TestAssertMaxLengthWithArray.test_bigger_than_max_length __

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc5e3d90>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_______ ERROR at setup of TestAssertNonNullable.test_non_nullable_column _______

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcbc8130>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_________ ERROR at setup of TestAssertNonNullable.test_nullable_column _________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcc47310>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
__________ ERROR at setup of TestAssertNullable.test_nullable_column ___________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcbc9c50>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
________ ERROR at setup of TestAssertNullable.test_non_nullable_column _________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcc06510>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
__________ ERROR at setup of TestAssertMaxLength.test_with_max_length __________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcbc84b0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_____ ERROR at setup of TestAssertMaxLength.test_with_non_nullable_column ______

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bdbf51d0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
______ ERROR at setup of TestAssertMaxLength.test_smaller_than_max_length ______

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc2c5010>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
______ ERROR at setup of TestAssertMaxLength.test_bigger_than_max_length _______

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc525550>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
___________ ERROR at setup of TestAssertMinValue.test_with_min_value ___________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc9e3e70>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_______ ERROR at setup of TestAssertMinValue.test_smaller_than_min_value _______

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcbf0ad0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_______ ERROR at setup of TestAssertMinValue.test_bigger_than_min_value ________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcc32510>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
___________ ERROR at setup of TestAssertMaxValue.test_with_min_value ___________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc524e50>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_______ ERROR at setup of TestAssertMaxValue.test_smaller_than_max_value _______

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc02d630>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_______ ERROR at setup of TestAssertMaxValue.test_bigger_than_max_value ________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc81cbb0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
____ ERROR at setup of TestMaterializedViews.test_refresh_materialized_view ____

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bbdf9fd0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
__________ ERROR at setup of TestMaterializedViews.test_querying_view __________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc2544b0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_____ ERROR at setup of TestPostgresTrivialView.test_life_cycle_no_cascade _____

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bbbe3d90>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
______ ERROR at setup of TestPostgresTrivialView.test_life_cycle_cascade _______

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bbda6eb0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
______ ERROR at setup of TestMySqlTrivialView.test_life_cycle_no_cascade _______

self = <pymysql.connections.Connection object at 0x7f47bbb8d6d0>, sock = None

    def connect(self, sock=None):
        self._closed = False
        try:
            if sock is None:
                if self.unix_socket:
                    sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
                    sock.settimeout(self.connect_timeout)
                    sock.connect(self.unix_socket)
                    self.host_info = "Localhost via UNIX socket"
                    self._secure = True
                    if DEBUG:
                        print("connected using unix_socket")
                else:
                    kwargs = {}
                    if self.bind_address is not None:
                        kwargs["source_address"] = (self.bind_address, 0)
                    while True:
                        try:
>                           sock = socket.create_connection(
                                (self.host, self.port), self.connect_timeout, **kwargs
                            )

/usr/lib/python3.13/site-packages/pymysql/connections.py:649: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/socket.py:864: in create_connection
    raise exceptions[0]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

address = ('localhost', 3306), timeout = 10, source_address = None

    def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT,
                          source_address=None, *, all_errors=False):
        """Connect to *address* and return the socket object.
    
        Convenience function.  Connect to *address* (a 2-tuple ``(host,
        port)``) and return the socket object.  Passing the optional
        *timeout* parameter will set the timeout on the socket instance
        before attempting to connect.  If no *timeout* is supplied, the
        global default timeout setting returned by :func:`getdefaulttimeout`
        is used.  If *source_address* is set it must be a tuple of (host, port)
        for the socket to bind as a source address before making the connection.
        A host of '' or port 0 tells the OS to use the default. When a connection
        cannot be created, raises the last error if *all_errors* is False,
        and an ExceptionGroup of all errors if *all_errors* is True.
        """
    
        host, port = address
        exceptions = []
        for res in getaddrinfo(host, port, 0, SOCK_STREAM):
            af, socktype, proto, canonname, sa = res
            sock = None
            try:
                sock = socket(af, socktype, proto)
                if timeout is not _GLOBAL_DEFAULT_TIMEOUT:
                    sock.settimeout(timeout)
                if source_address:
                    sock.bind(source_address)
>               sock.connect(sa)
E               ConnectionRefusedError: [Errno 111] Connection refused

/usr/lib64/python3.13/socket.py:849: ConnectionRefusedError

During handling of the above exception, another exception occurred:

self = Engine(mysql+pymysql://root@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bbda7770>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
/usr/lib/python3.13/site-packages/pymysql/connections.py:361: in __init__
    self.connect()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pymysql.connections.Connection object at 0x7f47bbb8d6d0>, sock = None

    def connect(self, sock=None):
        self._closed = False
        try:
            if sock is None:
                if self.unix_socket:
                    sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
                    sock.settimeout(self.connect_timeout)
                    sock.connect(self.unix_socket)
                    self.host_info = "Localhost via UNIX socket"
                    self._secure = True
                    if DEBUG:
                        print("connected using unix_socket")
                else:
                    kwargs = {}
                    if self.bind_address is not None:
                        kwargs["source_address"] = (self.bind_address, 0)
                    while True:
                        try:
                            sock = socket.create_connection(
                                (self.host, self.port), self.connect_timeout, **kwargs
                            )
                            break
                        except OSError as e:
                            if e.errno == errno.EINTR:
                                continue
                            raise
                    self.host_info = "socket %s:%d" % (self.host, self.port)
                    if DEBUG:
                        print("connected using socket")
                    sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
                    sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
                sock.settimeout(None)
    
            self._sock = sock
            self._rfile = sock.makefile("rb")
            self._next_seq_id = 0
    
            self._get_server_information()
            self._request_authentication()
    
            # Send "SET NAMES" query on init for:
            # - Ensure charaset (and collation) is set to the server.
            #   - collation_id in handshake packet may be ignored.
            # - If collation is not specified, we don't know what is server's
            #   default collation for the charset. For example, default collation
            #   of utf8mb4 is:
            #   - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci
            #   - MySQL 8.0: utf8mb4_0900_ai_ci
            #
            # Reference:
            # - https://github.com/PyMySQL/PyMySQL/issues/1092
            # - https://github.com/wagtail/wagtail/issues/9477
            # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese)
            self.set_character_set(self.charset, self.collation)
    
            if self.sql_mode is not None:
                c = self.cursor()
                c.execute("SET sql_mode=%s", (self.sql_mode,))
                c.close()
    
            if self.init_command is not None:
                c = self.cursor()
                c.execute(self.init_command)
                c.close()
    
            if self.autocommit_mode is not None:
                self.autocommit(self.autocommit_mode)
        except BaseException as e:
            self._rfile = None
            if sock is not None:
                try:
                    sock.close()
                except:  # noqa
                    pass
    
            if isinstance(e, (OSError, IOError)):
                exc = err.OperationalError(
                    CR.CR_CONN_HOST_ERROR,
                    f"Can't connect to MySQL server on {self.host!r} ({e})",
                )
                # Keep original exception and traceback to investigate error.
                exc.original_exception = e
                exc.traceback = traceback.format_exc()
                if DEBUG:
                    print(exc.traceback)
>               raise exc
E               pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)")

/usr/lib/python3.13/site-packages/pymysql/connections.py:716: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(mysql+pymysql://root@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
/usr/lib/python3.13/site-packages/pymysql/connections.py:361: in __init__
    self.connect()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pymysql.connections.Connection object at 0x7f47bbb8d6d0>, sock = None

    def connect(self, sock=None):
        self._closed = False
        try:
            if sock is None:
                if self.unix_socket:
                    sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
                    sock.settimeout(self.connect_timeout)
                    sock.connect(self.unix_socket)
                    self.host_info = "Localhost via UNIX socket"
                    self._secure = True
                    if DEBUG:
                        print("connected using unix_socket")
                else:
                    kwargs = {}
                    if self.bind_address is not None:
                        kwargs["source_address"] = (self.bind_address, 0)
                    while True:
                        try:
                            sock = socket.create_connection(
                                (self.host, self.port), self.connect_timeout, **kwargs
                            )
                            break
                        except OSError as e:
                            if e.errno == errno.EINTR:
                                continue
                            raise
                    self.host_info = "socket %s:%d" % (self.host, self.port)
                    if DEBUG:
                        print("connected using socket")
                    sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
                    sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
                sock.settimeout(None)
    
            self._sock = sock
            self._rfile = sock.makefile("rb")
            self._next_seq_id = 0
    
            self._get_server_information()
            self._request_authentication()
    
            # Send "SET NAMES" query on init for:
            # - Ensure charaset (and collation) is set to the server.
            #   - collation_id in handshake packet may be ignored.
            # - If collation is not specified, we don't know what is server's
            #   default collation for the charset. For example, default collation
            #   of utf8mb4 is:
            #   - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci
            #   - MySQL 8.0: utf8mb4_0900_ai_ci
            #
            # Reference:
            # - https://github.com/PyMySQL/PyMySQL/issues/1092
            # - https://github.com/wagtail/wagtail/issues/9477
            # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese)
            self.set_character_set(self.charset, self.collation)
    
            if self.sql_mode is not None:
                c = self.cursor()
                c.execute("SET sql_mode=%s", (self.sql_mode,))
                c.close()
    
            if self.init_command is not None:
                c = self.cursor()
                c.execute(self.init_command)
                c.close()
    
            if self.autocommit_mode is not None:
                self.autocommit(self.autocommit_mode)
        except BaseException as e:
            self._rfile = None
            if sock is not None:
                try:
                    sock.close()
                except:  # noqa
                    pass
    
            if isinstance(e, (OSError, IOError)):
                exc = err.OperationalError(
                    CR.CR_CONN_HOST_ERROR,
                    f"Can't connect to MySQL server on {self.host!r} ({e})",
                )
                # Keep original exception and traceback to investigate error.
                exc.original_exception = e
                exc.traceback = traceback.format_exc()
                if DEBUG:
                    print(exc.traceback)
>               raise exc
E               sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)")
E               (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib/python3.13/site-packages/pymysql/connections.py:716: OperationalError
________ ERROR at setup of TestMySqlTrivialView.test_life_cycle_cascade ________

self = <pymysql.connections.Connection object at 0x7f47bbb8f750>, sock = None

    def connect(self, sock=None):
        self._closed = False
        try:
            if sock is None:
                if self.unix_socket:
                    sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
                    sock.settimeout(self.connect_timeout)
                    sock.connect(self.unix_socket)
                    self.host_info = "Localhost via UNIX socket"
                    self._secure = True
                    if DEBUG:
                        print("connected using unix_socket")
                else:
                    kwargs = {}
                    if self.bind_address is not None:
                        kwargs["source_address"] = (self.bind_address, 0)
                    while True:
                        try:
>                           sock = socket.create_connection(
                                (self.host, self.port), self.connect_timeout, **kwargs
                            )

/usr/lib/python3.13/site-packages/pymysql/connections.py:649: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/socket.py:864: in create_connection
    raise exceptions[0]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

address = ('localhost', 3306), timeout = 10, source_address = None

    def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT,
                          source_address=None, *, all_errors=False):
        """Connect to *address* and return the socket object.
    
        Convenience function.  Connect to *address* (a 2-tuple ``(host,
        port)``) and return the socket object.  Passing the optional
        *timeout* parameter will set the timeout on the socket instance
        before attempting to connect.  If no *timeout* is supplied, the
        global default timeout setting returned by :func:`getdefaulttimeout`
        is used.  If *source_address* is set it must be a tuple of (host, port)
        for the socket to bind as a source address before making the connection.
        A host of '' or port 0 tells the OS to use the default. When a connection
        cannot be created, raises the last error if *all_errors* is False,
        and an ExceptionGroup of all errors if *all_errors* is True.
        """
    
        host, port = address
        exceptions = []
        for res in getaddrinfo(host, port, 0, SOCK_STREAM):
            af, socktype, proto, canonname, sa = res
            sock = None
            try:
                sock = socket(af, socktype, proto)
                if timeout is not _GLOBAL_DEFAULT_TIMEOUT:
                    sock.settimeout(timeout)
                if source_address:
                    sock.bind(source_address)
>               sock.connect(sa)
E               ConnectionRefusedError: [Errno 111] Connection refused

/usr/lib64/python3.13/socket.py:849: ConnectionRefusedError

During handling of the above exception, another exception occurred:

self = Engine(mysql+pymysql://root@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bbda7690>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
/usr/lib/python3.13/site-packages/pymysql/connections.py:361: in __init__
    self.connect()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pymysql.connections.Connection object at 0x7f47bbb8f750>, sock = None

    def connect(self, sock=None):
        self._closed = False
        try:
            if sock is None:
                if self.unix_socket:
                    sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
                    sock.settimeout(self.connect_timeout)
                    sock.connect(self.unix_socket)
                    self.host_info = "Localhost via UNIX socket"
                    self._secure = True
                    if DEBUG:
                        print("connected using unix_socket")
                else:
                    kwargs = {}
                    if self.bind_address is not None:
                        kwargs["source_address"] = (self.bind_address, 0)
                    while True:
                        try:
                            sock = socket.create_connection(
                                (self.host, self.port), self.connect_timeout, **kwargs
                            )
                            break
                        except OSError as e:
                            if e.errno == errno.EINTR:
                                continue
                            raise
                    self.host_info = "socket %s:%d" % (self.host, self.port)
                    if DEBUG:
                        print("connected using socket")
                    sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
                    sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
                sock.settimeout(None)
    
            self._sock = sock
            self._rfile = sock.makefile("rb")
            self._next_seq_id = 0
    
            self._get_server_information()
            self._request_authentication()
    
            # Send "SET NAMES" query on init for:
            # - Ensure charaset (and collation) is set to the server.
            #   - collation_id in handshake packet may be ignored.
            # - If collation is not specified, we don't know what is server's
            #   default collation for the charset. For example, default collation
            #   of utf8mb4 is:
            #   - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci
            #   - MySQL 8.0: utf8mb4_0900_ai_ci
            #
            # Reference:
            # - https://github.com/PyMySQL/PyMySQL/issues/1092
            # - https://github.com/wagtail/wagtail/issues/9477
            # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese)
            self.set_character_set(self.charset, self.collation)
    
            if self.sql_mode is not None:
                c = self.cursor()
                c.execute("SET sql_mode=%s", (self.sql_mode,))
                c.close()
    
            if self.init_command is not None:
                c = self.cursor()
                c.execute(self.init_command)
                c.close()
    
            if self.autocommit_mode is not None:
                self.autocommit(self.autocommit_mode)
        except BaseException as e:
            self._rfile = None
            if sock is not None:
                try:
                    sock.close()
                except:  # noqa
                    pass
    
            if isinstance(e, (OSError, IOError)):
                exc = err.OperationalError(
                    CR.CR_CONN_HOST_ERROR,
                    f"Can't connect to MySQL server on {self.host!r} ({e})",
                )
                # Keep original exception and traceback to investigate error.
                exc.original_exception = e
                exc.traceback = traceback.format_exc()
                if DEBUG:
                    print(exc.traceback)
>               raise exc
E               pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)")

/usr/lib/python3.13/site-packages/pymysql/connections.py:716: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(mysql+pymysql://root@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
/usr/lib/python3.13/site-packages/pymysql/connections.py:361: in __init__
    self.connect()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pymysql.connections.Connection object at 0x7f47bbb8f750>, sock = None

    def connect(self, sock=None):
        self._closed = False
        try:
            if sock is None:
                if self.unix_socket:
                    sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
                    sock.settimeout(self.connect_timeout)
                    sock.connect(self.unix_socket)
                    self.host_info = "Localhost via UNIX socket"
                    self._secure = True
                    if DEBUG:
                        print("connected using unix_socket")
                else:
                    kwargs = {}
                    if self.bind_address is not None:
                        kwargs["source_address"] = (self.bind_address, 0)
                    while True:
                        try:
                            sock = socket.create_connection(
                                (self.host, self.port), self.connect_timeout, **kwargs
                            )
                            break
                        except OSError as e:
                            if e.errno == errno.EINTR:
                                continue
                            raise
                    self.host_info = "socket %s:%d" % (self.host, self.port)
                    if DEBUG:
                        print("connected using socket")
                    sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
                    sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
                sock.settimeout(None)
    
            self._sock = sock
            self._rfile = sock.makefile("rb")
            self._next_seq_id = 0
    
            self._get_server_information()
            self._request_authentication()
    
            # Send "SET NAMES" query on init for:
            # - Ensure charaset (and collation) is set to the server.
            #   - collation_id in handshake packet may be ignored.
            # - If collation is not specified, we don't know what is server's
            #   default collation for the charset. For example, default collation
            #   of utf8mb4 is:
            #   - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci
            #   - MySQL 8.0: utf8mb4_0900_ai_ci
            #
            # Reference:
            # - https://github.com/PyMySQL/PyMySQL/issues/1092
            # - https://github.com/wagtail/wagtail/issues/9477
            # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese)
            self.set_character_set(self.charset, self.collation)
    
            if self.sql_mode is not None:
                c = self.cursor()
                c.execute("SET sql_mode=%s", (self.sql_mode,))
                c.close()
    
            if self.init_command is not None:
                c = self.cursor()
                c.execute(self.init_command)
                c.close()
    
            if self.autocommit_mode is not None:
                self.autocommit(self.autocommit_mode)
        except BaseException as e:
            self._rfile = None
            if sock is not None:
                try:
                    sock.close()
                except:  # noqa
                    pass
    
            if isinstance(e, (OSError, IOError)):
                exc = err.OperationalError(
                    CR.CR_CONN_HOST_ERROR,
                    f"Can't connect to MySQL server on {self.host!r} ({e})",
                )
                # Keep original exception and traceback to investigate error.
                exc.original_exception = e
                exc.traceback = traceback.format_exc()
                if DEBUG:
                    print(exc.traceback)
>               raise exc
E               sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)")
E               (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib/python3.13/site-packages/pymysql/connections.py:716: OperationalError
_ ERROR at setup of TestCompositeTypeWithRegularTypes.test_parameter_processing _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcc32350>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
___ ERROR at setup of TestCompositeTypeWithRegularTypes.test_non_ascii_chars ___

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc5244b0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_____ ERROR at setup of TestCompositeTypeWithRegularTypes.test_dict_input ______

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bbda65f0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
___ ERROR at setup of TestCompositeTypeWithRegularTypes.test_incomplete_dict ___

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc524590>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ ERROR at setup of TestCompositeTypeWhenTypeAlreadyExistsInDatabase.test_parameter_processing _

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc255a90>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
__ ERROR at setup of TestCompositeTypeWithMixedCase.test_parameter_processing __

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc524bb0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_______________ ERROR at setup of TestPostgresJSONType.test_list _______________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcc319b0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_______ ERROR at setup of TestPostgresJSONType.test_parameter_processing _______

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc256dd0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_________ ERROR at setup of TestPostgresJSONType.test_non_ascii_chars __________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcd37a10>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
___________ ERROR at setup of TestPostgresJSONType.test_compilation ____________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc0ffaf0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_________ ERROR at setup of TestPostgresJSONType.test_unhashable_type __________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bbda4d70>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_________________ ERROR at setup of TestLTREE.test_saves_path __________________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bbbe2270>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
________________ ERROR at setup of TestLTREE.test_literal_param ________________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bbda4f30>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_________________ ERROR at setup of TestLTREE.test_compilation _________________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bbda5470>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_____________ ERROR at setup of TestTSVector.test_type_reflection ______________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bbbe0210>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_________ ERROR at setup of TestTSVector.test_catalog_passed_to_match __________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc529e10>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
___________ ERROR at setup of TestTSVector.test_match_concatenation ____________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bbda7150>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
____________ ERROR at setup of TestTSVector.test_match_with_catalog ____________

self = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc52b850>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

engine = Engine(postgresql://postgres:***@localhost/sqlalchemy_utils_test)

    @pytest.fixture
    def connection(engine):
>       return engine.connect()

conftest.py:152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=sqlalchemy_utils_test'
connection_factory = None, cursor_factory = None
kwargs = {'database': 'sqlalchemy_utils_test', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
=================================== FAILURES ===================================
____________________ TestDatabaseMySQL.test_create_and_drop ____________________

self = <pymysql.connections.Connection object at 0x7f47bd3c38c0>, sock = None

    def connect(self, sock=None):
        self._closed = False
        try:
            if sock is None:
                if self.unix_socket:
                    sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
                    sock.settimeout(self.connect_timeout)
                    sock.connect(self.unix_socket)
                    self.host_info = "Localhost via UNIX socket"
                    self._secure = True
                    if DEBUG:
                        print("connected using unix_socket")
                else:
                    kwargs = {}
                    if self.bind_address is not None:
                        kwargs["source_address"] = (self.bind_address, 0)
                    while True:
                        try:
>                           sock = socket.create_connection(
                                (self.host, self.port), self.connect_timeout, **kwargs
                            )

/usr/lib/python3.13/site-packages/pymysql/connections.py:649: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/socket.py:864: in create_connection
    raise exceptions[0]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

address = ('localhost', 3306), timeout = 10, source_address = None

    def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT,
                          source_address=None, *, all_errors=False):
        """Connect to *address* and return the socket object.
    
        Convenience function.  Connect to *address* (a 2-tuple ``(host,
        port)``) and return the socket object.  Passing the optional
        *timeout* parameter will set the timeout on the socket instance
        before attempting to connect.  If no *timeout* is supplied, the
        global default timeout setting returned by :func:`getdefaulttimeout`
        is used.  If *source_address* is set it must be a tuple of (host, port)
        for the socket to bind as a source address before making the connection.
        A host of '' or port 0 tells the OS to use the default. When a connection
        cannot be created, raises the last error if *all_errors* is False,
        and an ExceptionGroup of all errors if *all_errors* is True.
        """
    
        host, port = address
        exceptions = []
        for res in getaddrinfo(host, port, 0, SOCK_STREAM):
            af, socktype, proto, canonname, sa = res
            sock = None
            try:
                sock = socket(af, socktype, proto)
                if timeout is not _GLOBAL_DEFAULT_TIMEOUT:
                    sock.settimeout(timeout)
                if source_address:
                    sock.bind(source_address)
>               sock.connect(sa)
E               ConnectionRefusedError: [Errno 111] Connection refused

/usr/lib64/python3.13/socket.py:849: ConnectionRefusedError

During handling of the above exception, another exception occurred:

self = Engine(mysql+pymysql://root@localhost)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc0fc590>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
/usr/lib/python3.13/site-packages/pymysql/connections.py:361: in __init__
    self.connect()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pymysql.connections.Connection object at 0x7f47bd3c38c0>, sock = None

    def connect(self, sock=None):
        self._closed = False
        try:
            if sock is None:
                if self.unix_socket:
                    sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
                    sock.settimeout(self.connect_timeout)
                    sock.connect(self.unix_socket)
                    self.host_info = "Localhost via UNIX socket"
                    self._secure = True
                    if DEBUG:
                        print("connected using unix_socket")
                else:
                    kwargs = {}
                    if self.bind_address is not None:
                        kwargs["source_address"] = (self.bind_address, 0)
                    while True:
                        try:
                            sock = socket.create_connection(
                                (self.host, self.port), self.connect_timeout, **kwargs
                            )
                            break
                        except OSError as e:
                            if e.errno == errno.EINTR:
                                continue
                            raise
                    self.host_info = "socket %s:%d" % (self.host, self.port)
                    if DEBUG:
                        print("connected using socket")
                    sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
                    sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
                sock.settimeout(None)
    
            self._sock = sock
            self._rfile = sock.makefile("rb")
            self._next_seq_id = 0
    
            self._get_server_information()
            self._request_authentication()
    
            # Send "SET NAMES" query on init for:
            # - Ensure charaset (and collation) is set to the server.
            #   - collation_id in handshake packet may be ignored.
            # - If collation is not specified, we don't know what is server's
            #   default collation for the charset. For example, default collation
            #   of utf8mb4 is:
            #   - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci
            #   - MySQL 8.0: utf8mb4_0900_ai_ci
            #
            # Reference:
            # - https://github.com/PyMySQL/PyMySQL/issues/1092
            # - https://github.com/wagtail/wagtail/issues/9477
            # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese)
            self.set_character_set(self.charset, self.collation)
    
            if self.sql_mode is not None:
                c = self.cursor()
                c.execute("SET sql_mode=%s", (self.sql_mode,))
                c.close()
    
            if self.init_command is not None:
                c = self.cursor()
                c.execute(self.init_command)
                c.close()
    
            if self.autocommit_mode is not None:
                self.autocommit(self.autocommit_mode)
        except BaseException as e:
            self._rfile = None
            if sock is not None:
                try:
                    sock.close()
                except:  # noqa
                    pass
    
            if isinstance(e, (OSError, IOError)):
                exc = err.OperationalError(
                    CR.CR_CONN_HOST_ERROR,
                    f"Can't connect to MySQL server on {self.host!r} ({e})",
                )
                # Keep original exception and traceback to investigate error.
                exc.original_exception = e
                exc.traceback = traceback.format_exc()
                if DEBUG:
                    print(exc.traceback)
>               raise exc
E               pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)")

/usr/lib/python3.13/site-packages/pymysql/connections.py:716: OperationalError

The above exception was the direct cause of the following exception:

self = <tests.functions.test_database.TestDatabaseMySQL object at 0x7f47bdb00690>
dsn = 'mysql+pymysql://root@localhost/db_test_sqlalchemy_util'

    def test_create_and_drop(self, dsn):
>       assert not database_exists(dsn)

tests/functions/test_database.py:18: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sqlalchemy_utils/functions/database.py:498: in database_exists
    return bool(_get_scalar_result(engine, sa.text(text)))
sqlalchemy_utils/functions/database.py:442: in _get_scalar_result
    with engine.connect() as conn:
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
/usr/lib/python3.13/site-packages/pymysql/connections.py:361: in __init__
    self.connect()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pymysql.connections.Connection object at 0x7f47bd3c38c0>, sock = None

    def connect(self, sock=None):
        self._closed = False
        try:
            if sock is None:
                if self.unix_socket:
                    sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
                    sock.settimeout(self.connect_timeout)
                    sock.connect(self.unix_socket)
                    self.host_info = "Localhost via UNIX socket"
                    self._secure = True
                    if DEBUG:
                        print("connected using unix_socket")
                else:
                    kwargs = {}
                    if self.bind_address is not None:
                        kwargs["source_address"] = (self.bind_address, 0)
                    while True:
                        try:
                            sock = socket.create_connection(
                                (self.host, self.port), self.connect_timeout, **kwargs
                            )
                            break
                        except OSError as e:
                            if e.errno == errno.EINTR:
                                continue
                            raise
                    self.host_info = "socket %s:%d" % (self.host, self.port)
                    if DEBUG:
                        print("connected using socket")
                    sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
                    sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
                sock.settimeout(None)
    
            self._sock = sock
            self._rfile = sock.makefile("rb")
            self._next_seq_id = 0
    
            self._get_server_information()
            self._request_authentication()
    
            # Send "SET NAMES" query on init for:
            # - Ensure charaset (and collation) is set to the server.
            #   - collation_id in handshake packet may be ignored.
            # - If collation is not specified, we don't know what is server's
            #   default collation for the charset. For example, default collation
            #   of utf8mb4 is:
            #   - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci
            #   - MySQL 8.0: utf8mb4_0900_ai_ci
            #
            # Reference:
            # - https://github.com/PyMySQL/PyMySQL/issues/1092
            # - https://github.com/wagtail/wagtail/issues/9477
            # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese)
            self.set_character_set(self.charset, self.collation)
    
            if self.sql_mode is not None:
                c = self.cursor()
                c.execute("SET sql_mode=%s", (self.sql_mode,))
                c.close()
    
            if self.init_command is not None:
                c = self.cursor()
                c.execute(self.init_command)
                c.close()
    
            if self.autocommit_mode is not None:
                self.autocommit(self.autocommit_mode)
        except BaseException as e:
            self._rfile = None
            if sock is not None:
                try:
                    sock.close()
                except:  # noqa
                    pass
    
            if isinstance(e, (OSError, IOError)):
                exc = err.OperationalError(
                    CR.CR_CONN_HOST_ERROR,
                    f"Can't connect to MySQL server on {self.host!r} ({e})",
                )
                # Keep original exception and traceback to investigate error.
                exc.original_exception = e
                exc.traceback = traceback.format_exc()
                if DEBUG:
                    print(exc.traceback)
>               raise exc
E               sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)")
E               (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib/python3.13/site-packages/pymysql/connections.py:716: OperationalError
_____________ TestDatabaseMySQLWithQuotedName.test_create_and_drop _____________

self = <pymysql.connections.Connection object at 0x7f47bcbe8cd0>, sock = None

    def connect(self, sock=None):
        self._closed = False
        try:
            if sock is None:
                if self.unix_socket:
                    sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
                    sock.settimeout(self.connect_timeout)
                    sock.connect(self.unix_socket)
                    self.host_info = "Localhost via UNIX socket"
                    self._secure = True
                    if DEBUG:
                        print("connected using unix_socket")
                else:
                    kwargs = {}
                    if self.bind_address is not None:
                        kwargs["source_address"] = (self.bind_address, 0)
                    while True:
                        try:
>                           sock = socket.create_connection(
                                (self.host, self.port), self.connect_timeout, **kwargs
                            )

/usr/lib/python3.13/site-packages/pymysql/connections.py:649: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/socket.py:864: in create_connection
    raise exceptions[0]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

address = ('localhost', 3306), timeout = 10, source_address = None

    def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT,
                          source_address=None, *, all_errors=False):
        """Connect to *address* and return the socket object.
    
        Convenience function.  Connect to *address* (a 2-tuple ``(host,
        port)``) and return the socket object.  Passing the optional
        *timeout* parameter will set the timeout on the socket instance
        before attempting to connect.  If no *timeout* is supplied, the
        global default timeout setting returned by :func:`getdefaulttimeout`
        is used.  If *source_address* is set it must be a tuple of (host, port)
        for the socket to bind as a source address before making the connection.
        A host of '' or port 0 tells the OS to use the default. When a connection
        cannot be created, raises the last error if *all_errors* is False,
        and an ExceptionGroup of all errors if *all_errors* is True.
        """
    
        host, port = address
        exceptions = []
        for res in getaddrinfo(host, port, 0, SOCK_STREAM):
            af, socktype, proto, canonname, sa = res
            sock = None
            try:
                sock = socket(af, socktype, proto)
                if timeout is not _GLOBAL_DEFAULT_TIMEOUT:
                    sock.settimeout(timeout)
                if source_address:
                    sock.bind(source_address)
>               sock.connect(sa)
E               ConnectionRefusedError: [Errno 111] Connection refused

/usr/lib64/python3.13/socket.py:849: ConnectionRefusedError

During handling of the above exception, another exception occurred:

self = Engine(mysql+pymysql://root@localhost)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc02e0b0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
/usr/lib/python3.13/site-packages/pymysql/connections.py:361: in __init__
    self.connect()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pymysql.connections.Connection object at 0x7f47bcbe8cd0>, sock = None

    def connect(self, sock=None):
        self._closed = False
        try:
            if sock is None:
                if self.unix_socket:
                    sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
                    sock.settimeout(self.connect_timeout)
                    sock.connect(self.unix_socket)
                    self.host_info = "Localhost via UNIX socket"
                    self._secure = True
                    if DEBUG:
                        print("connected using unix_socket")
                else:
                    kwargs = {}
                    if self.bind_address is not None:
                        kwargs["source_address"] = (self.bind_address, 0)
                    while True:
                        try:
                            sock = socket.create_connection(
                                (self.host, self.port), self.connect_timeout, **kwargs
                            )
                            break
                        except OSError as e:
                            if e.errno == errno.EINTR:
                                continue
                            raise
                    self.host_info = "socket %s:%d" % (self.host, self.port)
                    if DEBUG:
                        print("connected using socket")
                    sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
                    sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
                sock.settimeout(None)
    
            self._sock = sock
            self._rfile = sock.makefile("rb")
            self._next_seq_id = 0
    
            self._get_server_information()
            self._request_authentication()
    
            # Send "SET NAMES" query on init for:
            # - Ensure charaset (and collation) is set to the server.
            #   - collation_id in handshake packet may be ignored.
            # - If collation is not specified, we don't know what is server's
            #   default collation for the charset. For example, default collation
            #   of utf8mb4 is:
            #   - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci
            #   - MySQL 8.0: utf8mb4_0900_ai_ci
            #
            # Reference:
            # - https://github.com/PyMySQL/PyMySQL/issues/1092
            # - https://github.com/wagtail/wagtail/issues/9477
            # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese)
            self.set_character_set(self.charset, self.collation)
    
            if self.sql_mode is not None:
                c = self.cursor()
                c.execute("SET sql_mode=%s", (self.sql_mode,))
                c.close()
    
            if self.init_command is not None:
                c = self.cursor()
                c.execute(self.init_command)
                c.close()
    
            if self.autocommit_mode is not None:
                self.autocommit(self.autocommit_mode)
        except BaseException as e:
            self._rfile = None
            if sock is not None:
                try:
                    sock.close()
                except:  # noqa
                    pass
    
            if isinstance(e, (OSError, IOError)):
                exc = err.OperationalError(
                    CR.CR_CONN_HOST_ERROR,
                    f"Can't connect to MySQL server on {self.host!r} ({e})",
                )
                # Keep original exception and traceback to investigate error.
                exc.original_exception = e
                exc.traceback = traceback.format_exc()
                if DEBUG:
                    print(exc.traceback)
>               raise exc
E               pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)")

/usr/lib/python3.13/site-packages/pymysql/connections.py:716: OperationalError

The above exception was the direct cause of the following exception:

self = <tests.functions.test_database.TestDatabaseMySQLWithQuotedName object at 0x7f47bdb007d0>
dsn = 'mysql+pymysql://root@localhost/db_test_sqlalchemy-util'

    def test_create_and_drop(self, dsn):
>       assert not database_exists(dsn)

tests/functions/test_database.py:18: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sqlalchemy_utils/functions/database.py:498: in database_exists
    return bool(_get_scalar_result(engine, sa.text(text)))
sqlalchemy_utils/functions/database.py:442: in _get_scalar_result
    with engine.connect() as conn:
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
/usr/lib/python3.13/site-packages/pymysql/connections.py:361: in __init__
    self.connect()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pymysql.connections.Connection object at 0x7f47bcbe8cd0>, sock = None

    def connect(self, sock=None):
        self._closed = False
        try:
            if sock is None:
                if self.unix_socket:
                    sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
                    sock.settimeout(self.connect_timeout)
                    sock.connect(self.unix_socket)
                    self.host_info = "Localhost via UNIX socket"
                    self._secure = True
                    if DEBUG:
                        print("connected using unix_socket")
                else:
                    kwargs = {}
                    if self.bind_address is not None:
                        kwargs["source_address"] = (self.bind_address, 0)
                    while True:
                        try:
                            sock = socket.create_connection(
                                (self.host, self.port), self.connect_timeout, **kwargs
                            )
                            break
                        except OSError as e:
                            if e.errno == errno.EINTR:
                                continue
                            raise
                    self.host_info = "socket %s:%d" % (self.host, self.port)
                    if DEBUG:
                        print("connected using socket")
                    sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
                    sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
                sock.settimeout(None)
    
            self._sock = sock
            self._rfile = sock.makefile("rb")
            self._next_seq_id = 0
    
            self._get_server_information()
            self._request_authentication()
    
            # Send "SET NAMES" query on init for:
            # - Ensure charaset (and collation) is set to the server.
            #   - collation_id in handshake packet may be ignored.
            # - If collation is not specified, we don't know what is server's
            #   default collation for the charset. For example, default collation
            #   of utf8mb4 is:
            #   - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci
            #   - MySQL 8.0: utf8mb4_0900_ai_ci
            #
            # Reference:
            # - https://github.com/PyMySQL/PyMySQL/issues/1092
            # - https://github.com/wagtail/wagtail/issues/9477
            # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese)
            self.set_character_set(self.charset, self.collation)
    
            if self.sql_mode is not None:
                c = self.cursor()
                c.execute("SET sql_mode=%s", (self.sql_mode,))
                c.close()
    
            if self.init_command is not None:
                c = self.cursor()
                c.execute(self.init_command)
                c.close()
    
            if self.autocommit_mode is not None:
                self.autocommit(self.autocommit_mode)
        except BaseException as e:
            self._rfile = None
            if sock is not None:
                try:
                    sock.close()
                except:  # noqa
                    pass
    
            if isinstance(e, (OSError, IOError)):
                exc = err.OperationalError(
                    CR.CR_CONN_HOST_ERROR,
                    f"Can't connect to MySQL server on {self.host!r} ({e})",
                )
                # Keep original exception and traceback to investigate error.
                exc.original_exception = e
                exc.traceback = traceback.format_exc()
                if DEBUG:
                    print(exc.traceback)
>               raise exc
E               sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)")
E               (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib/python3.13/site-packages/pymysql/connections.py:716: OperationalError
__________________ TestDatabasePostgres.test_create_and_drop ___________________

self = Engine(postgresql://postgres:***@localhost/postgres)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc0fcad0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=postgres', connection_factory = None
cursor_factory = None
kwargs = {'database': 'postgres', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

self = <tests.functions.test_database.TestDatabasePostgres object at 0x7f47bdb00a50>
dsn = 'postgresql://postgres:@localhost/db_test_sqlalchemy_util'

    def test_create_and_drop(self, dsn):
        assert not database_exists(dsn)
>       create_database(dsn)

tests/functions/test_database.py:19: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sqlalchemy_utils/functions/database.py:568: in create_database
    with engine.begin() as conn:
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3153: in begin
    conn = self.connect(close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=postgres', connection_factory = None
cursor_factory = None
kwargs = {'database': 'postgres', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
______________________ TestDatabasePostgres.test_template ______________________

self = Engine(postgresql://postgres:***@localhost/postgres)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc02f4d0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=postgres', connection_factory = None
cursor_factory = None
kwargs = {'database': 'postgres', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

self = <tests.functions.test_database.TestDatabasePostgres object at 0x7f47bdb00910>
postgresql_db_user = 'postgres', postgresql_db_password = ''

    def test_template(self, postgresql_db_user, postgresql_db_password):
        dsn = 'postgresql://{}:{}@localhost/db_test_sqlalchemy_util'.format(
            postgresql_db_user,
            postgresql_db_password
        )
        with pytest.raises(sa.exc.ProgrammingError) as excinfo:
>           create_database(dsn, template='my_template')

tests/functions/test_database.py:77: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sqlalchemy_utils/functions/database.py:568: in create_database
    with engine.begin() as conn:
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3153: in begin
    conn = self.connect(close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=postgres', connection_factory = None
cursor_factory = None
kwargs = {'database': 'postgres', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_______________ TestDatabasePostgresPg8000.test_create_and_drop ________________

unix_sock = None, orig_sock = None, host = 'localhost', port = 5432
timeout = None, source_address = None, tcp_keepalive = True
orig_ssl_context = None

    def _make_socket(
        unix_sock,
        orig_sock,
        host,
        port,
        timeout,
        source_address,
        tcp_keepalive,
        orig_ssl_context,
    ):
        if unix_sock is not None:
            if orig_sock is not None:
                raise InterfaceError("If unix_sock is provided, sock must be None")
    
            try:
                if not hasattr(socket, "AF_UNIX"):
                    raise InterfaceError(
                        "attempt to connect to unix socket on unsupported platform"
                    )
                sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
                sock.settimeout(timeout)
                sock.connect(unix_sock)
                if tcp_keepalive:
                    sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
            except socket.error as e:
                if sock is not None:
                    sock.close()
                raise InterfaceError("communication error") from e
    
        elif orig_sock is not None:
            sock = orig_sock
    
        elif host is not None:
            try:
>               sock = socket.create_connection((host, port), timeout, source_address)

/usr/lib/python3.13/site-packages/pg8000/core.py:206: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/socket.py:864: in create_connection
    raise exceptions[0]
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

address = ('localhost', 5432), timeout = None, source_address = None

    def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT,
                          source_address=None, *, all_errors=False):
        """Connect to *address* and return the socket object.
    
        Convenience function.  Connect to *address* (a 2-tuple ``(host,
        port)``) and return the socket object.  Passing the optional
        *timeout* parameter will set the timeout on the socket instance
        before attempting to connect.  If no *timeout* is supplied, the
        global default timeout setting returned by :func:`getdefaulttimeout`
        is used.  If *source_address* is set it must be a tuple of (host, port)
        for the socket to bind as a source address before making the connection.
        A host of '' or port 0 tells the OS to use the default. When a connection
        cannot be created, raises the last error if *all_errors* is False,
        and an ExceptionGroup of all errors if *all_errors* is True.
        """
    
        host, port = address
        exceptions = []
        for res in getaddrinfo(host, port, 0, SOCK_STREAM):
            af, socktype, proto, canonname, sa = res
            sock = None
            try:
                sock = socket(af, socktype, proto)
                if timeout is not _GLOBAL_DEFAULT_TIMEOUT:
                    sock.settimeout(timeout)
                if source_address:
                    sock.bind(source_address)
>               sock.connect(sa)
E               ConnectionRefusedError: [Errno 111] Connection refused

/usr/lib64/python3.13/socket.py:849: ConnectionRefusedError

The above exception was the direct cause of the following exception:

self = Engine(postgresql+pg8000://postgres:***@localhost/db_to_test_create_and_drop_via_pg8000_driver)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcc47cb0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
/usr/lib/python3.13/site-packages/pg8000/__init__.py:111: in connect
    return Connection(
/usr/lib/python3.13/site-packages/pg8000/legacy.py:443: in __init__
    super().__init__(*args, **kwargs)
/usr/lib/python3.13/site-packages/pg8000/core.py:320: in __init__
    self.channel_binding, self._usock = _make_socket(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

unix_sock = None, orig_sock = None, host = 'localhost', port = 5432
timeout = None, source_address = None, tcp_keepalive = True
orig_ssl_context = None

    def _make_socket(
        unix_sock,
        orig_sock,
        host,
        port,
        timeout,
        source_address,
        tcp_keepalive,
        orig_ssl_context,
    ):
        if unix_sock is not None:
            if orig_sock is not None:
                raise InterfaceError("If unix_sock is provided, sock must be None")
    
            try:
                if not hasattr(socket, "AF_UNIX"):
                    raise InterfaceError(
                        "attempt to connect to unix socket on unsupported platform"
                    )
                sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
                sock.settimeout(timeout)
                sock.connect(unix_sock)
                if tcp_keepalive:
                    sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
            except socket.error as e:
                if sock is not None:
                    sock.close()
                raise InterfaceError("communication error") from e
    
        elif orig_sock is not None:
            sock = orig_sock
    
        elif host is not None:
            try:
                sock = socket.create_connection((host, port), timeout, source_address)
            except socket.error as e:
>               raise InterfaceError(
                    f"Can't create a connection to host {host} and port {port} "
                    f"(timeout is {timeout} and source_address is {source_address})."
                ) from e
E               pg8000.exceptions.InterfaceError: Can't create a connection to host localhost and port 5432 (timeout is None and source_address is None).

/usr/lib/python3.13/site-packages/pg8000/core.py:208: InterfaceError

The above exception was the direct cause of the following exception:

self = <tests.functions.test_database.TestDatabasePostgresPg8000 object at 0x7f47bdb9b610>
dsn = 'postgresql+pg8000://postgres:@localhost/db_to_test_create_and_drop_via_pg8000_driver'

    def test_create_and_drop(self, dsn):
>       assert not database_exists(dsn)

tests/functions/test_database.py:18: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sqlalchemy_utils/functions/database.py:488: in database_exists
    return bool(_get_scalar_result(engine, sa.text(text)))
sqlalchemy_utils/functions/database.py:442: in _get_scalar_result
    with engine.connect() as conn:
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
/usr/lib/python3.13/site-packages/pg8000/__init__.py:111: in connect
    return Connection(
/usr/lib/python3.13/site-packages/pg8000/legacy.py:443: in __init__
    super().__init__(*args, **kwargs)
/usr/lib/python3.13/site-packages/pg8000/core.py:320: in __init__
    self.channel_binding, self._usock = _make_socket(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

unix_sock = None, orig_sock = None, host = 'localhost', port = 5432
timeout = None, source_address = None, tcp_keepalive = True
orig_ssl_context = None

    def _make_socket(
        unix_sock,
        orig_sock,
        host,
        port,
        timeout,
        source_address,
        tcp_keepalive,
        orig_ssl_context,
    ):
        if unix_sock is not None:
            if orig_sock is not None:
                raise InterfaceError("If unix_sock is provided, sock must be None")
    
            try:
                if not hasattr(socket, "AF_UNIX"):
                    raise InterfaceError(
                        "attempt to connect to unix socket on unsupported platform"
                    )
                sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
                sock.settimeout(timeout)
                sock.connect(unix_sock)
                if tcp_keepalive:
                    sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)
            except socket.error as e:
                if sock is not None:
                    sock.close()
                raise InterfaceError("communication error") from e
    
        elif orig_sock is not None:
            sock = orig_sock
    
        elif host is not None:
            try:
                sock = socket.create_connection((host, port), timeout, source_address)
            except socket.error as e:
>               raise InterfaceError(
                    f"Can't create a connection to host {host} and port {port} "
                    f"(timeout is {timeout} and source_address is {source_address})."
                ) from e
E               sqlalchemy.exc.InterfaceError: (pg8000.exceptions.InterfaceError) Can't create a connection to host localhost and port 5432 (timeout is None and source_address is None).
E               (Background on this error at: https://sqlalche.me/e/14/rvf5)

/usr/lib/python3.13/site-packages/pg8000/core.py:208: InterfaceError
___________ TestDatabasePostgresWithQuotedName.test_create_and_drop ____________

self = Engine(postgresql://postgres:***@localhost/postgres)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcc133f0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=postgres', connection_factory = None
cursor_factory = None
kwargs = {'database': 'postgres', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

self = <tests.functions.test_database.TestDatabasePostgresWithQuotedName object at 0x7f47bdb00e10>
dsn = 'postgresql://postgres:@localhost/db_test_sqlalchemy-util'

    def test_create_and_drop(self, dsn):
        assert not database_exists(dsn)
>       create_database(dsn)

tests/functions/test_database.py:19: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sqlalchemy_utils/functions/database.py:568: in create_database
    with engine.begin() as conn:
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3153: in begin
    conn = self.connect(close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=postgres', connection_factory = None
cursor_factory = None
kwargs = {'database': 'postgres', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_______________ TestDatabasePostgresWithQuotedName.test_template _______________

self = Engine(postgresql://postgres:***@localhost/postgres)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bcc10910>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=postgres', connection_factory = None
cursor_factory = None
kwargs = {'database': 'postgres', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

self = <tests.functions.test_database.TestDatabasePostgresWithQuotedName object at 0x7f47bdb00cd0>
postgresql_db_user = 'postgres', postgresql_db_password = ''

    def test_template(self, postgresql_db_user, postgresql_db_password):
        dsn = 'postgresql://{}:{}@localhost/db_test_sqlalchemy-util'.format(
            postgresql_db_user,
            postgresql_db_password
        )
        with pytest.raises(sa.exc.ProgrammingError) as excinfo:
>           create_database(dsn, template='my-template')

tests/functions/test_database.py:130: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sqlalchemy_utils/functions/database.py:568: in create_database
    with engine.begin() as conn:
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3153: in begin
    conn = self.connect(close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=postgres', connection_factory = None
cursor_factory = None
kwargs = {'database': 'postgres', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
_ TestDatabasePostgresCreateDatabaseCloseConnection.test_create_database_twice _

self = Engine(postgresql://postgres:***@localhost/postgres)
fn = <bound method Pool.connect of <sqlalchemy.pool.impl.QueuePool object at 0x7f47bc52d9b0>>
connection = None

    def _wrap_pool_connect(self, fn, connection):
        dialect = self.dialect
        try:
>           return fn()

/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=postgres', connection_factory = None
cursor_factory = None
kwargs = {'database': 'postgres', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError

The above exception was the direct cause of the following exception:

self = <tests.functions.test_database.TestDatabasePostgresCreateDatabaseCloseConnection object at 0x7f47bdb00f50>
postgresql_db_user = 'postgres', postgresql_db_password = ''

    def test_create_database_twice(
        self,
        postgresql_db_user,
        postgresql_db_password
    ):
        dsn_list = [
            'postgresql://{}:{}@localhost/db_test_sqlalchemy-util-a'.format(
                postgresql_db_user,
                postgresql_db_password
            ),
            'postgresql://{}:{}@localhost/db_test_sqlalchemy-util-b'.format(
                postgresql_db_user,
                postgresql_db_password
            ),
        ]
        for dsn_item in dsn_list:
            assert not database_exists(dsn_item)
>           create_database(dsn_item, template="template1")

tests/functions/test_database.py:153: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
sqlalchemy_utils/functions/database.py:568: in create_database
    with engine.begin() as conn:
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3153: in begin
    conn = self.connect(close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3325: in connect
    return self._connection_cls(self, close_with_result=close_with_result)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:96: in __init__
    else engine.raw_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3404: in raw_connection
    return self._wrap_pool_connect(self.pool.connect, _connection)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3374: in _wrap_pool_connect
    Connection._handle_dbapi_exception_noconnection(
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:2208: in _handle_dbapi_exception_noconnection
    util.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/base.py:3371: in _wrap_pool_connect
    return fn()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:327: in connect
    return _ConnectionFairy._checkout(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:894: in _checkout
    fairy = _ConnectionRecord.checkout(pool)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:493: in checkout
    rec = pool._do_get()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:145: in _do_get
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/impl.py:143: in _do_get
    return self._create_connection()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:273: in _create_connection
    return _ConnectionRecord(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:388: in __init__
    self.__connect()
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:690: in __connect
    with util.safe_reraise():
/usr/lib64/python3.13/site-packages/sqlalchemy/util/langhelpers.py:70: in __exit__
    compat.raise_(
/usr/lib64/python3.13/site-packages/sqlalchemy/util/compat.py:211: in raise_
    raise exception
/usr/lib64/python3.13/site-packages/sqlalchemy/pool/base.py:686: in __connect
    self.dbapi_connection = connection = pool._invoke_creator(self)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/create.py:574: in connect
    return dialect.connect(*cargs, **cparams)
/usr/lib64/python3.13/site-packages/sqlalchemy/engine/default.py:598: in connect
    return self.dbapi.connect(*cargs, **cparams)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dsn = 'host=localhost user=postgres dbname=postgres', connection_factory = None
cursor_factory = None
kwargs = {'database': 'postgres', 'host': 'localhost', 'user': 'postgres'}
kwasync = {}

    def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs):
        """
        Create a new database connection.
    
        The connection parameters can be specified as a string:
    
            conn = psycopg2.connect("dbname=test user=postgres password=secret")
    
        or using a set of keyword arguments:
    
            conn = psycopg2.connect(database="test", user="postgres", password="secret")
    
        Or as a mix of both. The basic connection parameters are:
    
        - *dbname*: the database name
        - *database*: the database name (only as keyword argument)
        - *user*: user name used to authenticate
        - *password*: password used to authenticate
        - *host*: database host address (defaults to UNIX socket if not provided)
        - *port*: connection port number (defaults to 5432 if not provided)
    
        Using the *connection_factory* parameter a different class or connections
        factory can be specified. It should be a callable object taking a dsn
        argument.
    
        Using the *cursor_factory* parameter, a new default cursor factory will be
        used by cursor().
    
        Using *async*=True an asynchronous connection will be created. *async_* is
        a valid alias (for Python versions where ``async`` is a keyword).
    
        Any other keyword parameter will be passed to the underlying client
        library: the list of supported parameters depends on the library version.
    
        """
        kwasync = {}
        if 'async' in kwargs:
            kwasync['async'] = kwargs.pop('async')
        if 'async_' in kwargs:
            kwasync['async_'] = kwargs.pop('async_')
    
        dsn = _ext.make_dsn(dsn, **kwargs)
>       conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
E       sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
E       	Is the server running on that host and accepting TCP/IP connections?
E       
E       (Background on this error at: https://sqlalche.me/e/14/e3q8)

/usr/lib64/python3.13/site-packages/psycopg2/__init__.py:122: OperationalError
=============================== warnings summary ===============================
tests/test_models.py::TestTimestamp::test_created
  /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/tests/test_models.py:20: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    then = datetime.utcnow()

tests/test_models.py::TestTimestamp::test_created
tests/test_models.py::TestTimestamp::test_created
tests/test_models.py::TestTimestamp::test_updated
tests/test_models.py::TestTimestamp::test_updated
  /usr/lib64/python3.13/site-packages/sqlalchemy/sql/schema.py:2783: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    return util.wrap_callable(lambda ctx: fn(), fn)

tests/test_models.py::TestTimestamp::test_created
  /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/tests/test_models.py:26: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    assert article.created >= then and article.created <= datetime.utcnow()

tests/test_models.py::TestTimestamp::test_updated
  /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/tests/test_models.py:34: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    then = datetime.utcnow()

tests/test_models.py::TestTimestamp::test_updated
  /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/sqlalchemy_utils/models.py:33: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    target.updated = datetime.utcnow()

tests/test_models.py::TestTimestamp::test_updated
  /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/tests/test_models.py:39: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    assert article.updated >= then and article.updated <= datetime.utcnow()

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/functions/test_database.py::TestDatabaseMySQL::test_create_and_drop
FAILED tests/functions/test_database.py::TestDatabaseMySQLWithQuotedName::test_create_and_drop
FAILED tests/functions/test_database.py::TestDatabasePostgres::test_create_and_drop
FAILED tests/functions/test_database.py::TestDatabasePostgres::test_template
FAILED tests/functions/test_database.py::TestDatabasePostgresPg8000::test_create_and_drop
FAILED tests/functions/test_database.py::TestDatabasePostgresWithQuotedName::test_create_and_drop
FAILED tests/functions/test_database.py::TestDatabasePostgresWithQuotedName::test_template
FAILED tests/functions/test_database.py::TestDatabasePostgresCreateDatabaseCloseConnection::test_create_database_twice
ERROR tests/aggregate/test_custom_select_expressions.py::TestLazyEvaluatedSelectExpressionsForAggregates::test_assigns_aggregates_on_insert
ERROR tests/aggregate/test_custom_select_expressions.py::TestLazyEvaluatedSelectExpressionsForAggregates::test_assigns_aggregates_on_update
ERROR tests/aggregate/test_join_table_inheritance.py::TestLazyEvaluatedSelectExpressionsForAggregates::test_assigns_aggregates_on_insert[simple]
ERROR tests/aggregate/test_join_table_inheritance.py::TestLazyEvaluatedSelectExpressionsForAggregates::test_assigns_aggregates_on_insert[child]
ERROR tests/aggregate/test_join_table_inheritance.py::TestLazyEvaluatedSelectExpressionsForAggregates::test_assigns_aggregates_on_update[simple]
ERROR tests/aggregate/test_join_table_inheritance.py::TestLazyEvaluatedSelectExpressionsForAggregates::test_assigns_aggregates_on_update[child]
ERROR tests/aggregate/test_m2m.py::TestAggregatesWithManyToManyRelationships::test_assigns_aggregates_on_insert
ERROR tests/aggregate/test_m2m.py::TestAggregatesWithManyToManyRelationships::test_updates_aggregates_on_delete
ERROR tests/aggregate/test_m2m_m2m.py::TestAggregateManyToManyAndManyToMany::test_insert
ERROR tests/aggregate/test_o2m_m2m.py::TestAggregateOneToManyAndManyToMany::test_insert
ERROR tests/aggregate/test_o2m_o2m.py::TestAggregateOneToManyAndOneToMany::test_assigns_aggregates
ERROR tests/aggregate/test_o2m_o2m_o2m.py::Test3LevelDeepOneToMany::test_assigns_aggregates
ERROR tests/aggregate/test_o2m_o2m_o2m.py::Test3LevelDeepOneToMany::test_only_updates_affected_aggregates
ERROR tests/aggregate/test_search_vectors.py::TestSearchVectorAggregates::test_assigns_aggregates_on_insert
ERROR tests/aggregate/test_with_ondelete_cascade.py::TestAggregateValueGenerationWithCascadeDelete::test_something
ERROR tests/functions/test_json_sql.py::TestJSONSQL::test_compiled_scalars[1-1]
ERROR tests/functions/test_json_sql.py::TestJSONSQL::test_compiled_scalars[14.14-14.14]
ERROR tests/functions/test_json_sql.py::TestJSONSQL::test_compiled_scalars[value2-result2]
ERROR tests/functions/test_json_sql.py::TestJSONSQL::test_compiled_scalars[value3-result3]
ERROR tests/functions/test_json_sql.py::TestJSONSQL::test_compiled_scalars[value4-result4]
ERROR tests/functions/test_json_sql.py::TestJSONSQL::test_compiled_scalars[value5-result5]
ERROR tests/functions/test_json_sql.py::TestJSONSQL::test_compiled_scalars[value6-result6]
ERROR tests/functions/test_json_sql.py::TestJSONSQL::test_compiled_scalars[value7-result7]
ERROR tests/functions/test_jsonb_sql.py::TestJSONBSQL::test_compiled_scalars[1-1]
ERROR tests/functions/test_jsonb_sql.py::TestJSONBSQL::test_compiled_scalars[14.14-14.14]
ERROR tests/functions/test_jsonb_sql.py::TestJSONBSQL::test_compiled_scalars[value2-result2]
ERROR tests/functions/test_jsonb_sql.py::TestJSONBSQL::test_compiled_scalars[value3-result3]
ERROR tests/functions/test_jsonb_sql.py::TestJSONBSQL::test_compiled_scalars[value4-result4]
ERROR tests/functions/test_jsonb_sql.py::TestJSONBSQL::test_compiled_scalars[value5-result5]
ERROR tests/functions/test_jsonb_sql.py::TestJSONBSQL::test_compiled_scalars[value6-result6]
ERROR tests/functions/test_jsonb_sql.py::TestJSONBSQL::test_compiled_scalars[value7-result7]
ERROR tests/observes/test_column_property.py::TestObservesForColumn::test_simple_insert
ERROR tests/observes/test_column_property.py::TestObservesForColumnWithoutActualChanges::test_only_notifies_observer_on_actual_changes
ERROR tests/observes/test_column_property.py::TestObservesForMultipleColumns::test_only_notifies_observer_on_actual_changes
ERROR tests/observes/test_column_property.py::TestObservesForMultipleColumnsFiresOnlyOnce::test_only_notifies_observer_on_actual_changes
ERROR tests/observes/test_dynamic_relationship.py::TestObservesForDynamicRelationship::test_add_observed_object
ERROR tests/observes/test_dynamic_relationship.py::TestObservesForDynamicRelationship::test_add_observed_object_from_backref
ERROR tests/observes/test_m2m_m2m_m2m.py::TestObservesForManyToManyToManyToMany::test_simple_insert
ERROR tests/observes/test_m2m_m2m_m2m.py::TestObservesForManyToManyToManyToMany::test_add_leaf_object
ERROR tests/observes/test_m2m_m2m_m2m.py::TestObservesForManyToManyToManyToMany::test_remove_leaf_object
ERROR tests/observes/test_m2m_m2m_m2m.py::TestObservesForManyToManyToManyToMany::test_delete_intermediate_object
ERROR tests/observes/test_m2m_m2m_m2m.py::TestObservesForManyToManyToManyToMany::test_gathered_objects_are_distinct
ERROR tests/observes/test_o2m_o2m_o2m.py::TestObservesFor3LevelDeepOneToMany::test_simple_insert
ERROR tests/observes/test_o2m_o2m_o2m.py::TestObservesFor3LevelDeepOneToMany::test_add_leaf_object
ERROR tests/observes/test_o2m_o2m_o2m.py::TestObservesFor3LevelDeepOneToMany::test_remove_leaf_object
ERROR tests/observes/test_o2m_o2m_o2m.py::TestObservesFor3LevelDeepOneToMany::test_delete_intermediate_object
ERROR tests/observes/test_o2m_o2m_o2m.py::TestObservesFor3LevelDeepOneToMany::test_gathered_objects_are_distinct
ERROR tests/observes/test_o2m_o2o_o2m.py::TestObservesForOneToManyToOneToMany::test_simple_insert
ERROR tests/observes/test_o2m_o2o_o2m.py::TestObservesForOneToManyToOneToMany::test_add_leaf_object
ERROR tests/observes/test_o2m_o2o_o2m.py::TestObservesForOneToManyToOneToMany::test_remove_leaf_object
ERROR tests/observes/test_o2m_o2o_o2m.py::TestObservesForOneToManyToOneToMany::test_delete_intermediate_object
ERROR tests/observes/test_o2m_o2o_o2m.py::TestObservesForOneToManyToOneToMany::test_gathered_objects_are_distinct
ERROR tests/observes/test_o2o_o2o.py::TestObservesForOneToManyToOneToMany::test_observable_root_obj_is_none
ERROR tests/observes/test_o2o_o2o_o2o.py::TestObservesForOneToOneToOneToOne::test_simple_insert
ERROR tests/observes/test_o2o_o2o_o2o.py::TestObservesForOneToOneToOneToOne::test_replace_leaf_object
ERROR tests/observes/test_o2o_o2o_o2o.py::TestObservesForOneToOneToOneToOne::test_delete_leaf_object
ERROR tests/relationships/test_select_correlated_expression.py::TestSelectCorrelatedExpression::test_returns_correct_results[categories-categories-subcategories-result0]
ERROR tests/relationships/test_select_correlated_expression.py::TestSelectCorrelatedExpression::test_returns_correct_results[articles-comments-comments-result1]
ERROR tests/relationships/test_select_correlated_expression.py::TestSelectCorrelatedExpression::test_returns_correct_results[users-groups-groups-result2]
ERROR tests/relationships/test_select_correlated_expression.py::TestSelectCorrelatedExpression::test_returns_correct_results[users-users-all_friends-result3]
ERROR tests/relationships/test_select_correlated_expression.py::TestSelectCorrelatedExpression::test_returns_correct_results[users-users-all_friends.all_friends-result4]
ERROR tests/relationships/test_select_correlated_expression.py::TestSelectCorrelatedExpression::test_returns_correct_results[users-users-groups.users-result5]
ERROR tests/relationships/test_select_correlated_expression.py::TestSelectCorrelatedExpression::test_returns_correct_results[groups-articles-users.authored_articles-result6]
ERROR tests/relationships/test_select_correlated_expression.py::TestSelectCorrelatedExpression::test_returns_correct_results[categories-categories-subcategories.subcategories-result7]
ERROR tests/relationships/test_select_correlated_expression.py::TestSelectCorrelatedExpression::test_returns_correct_results[categories-categories-subcategories.subcategories.subcategories-result8]
ERROR tests/relationships/test_select_correlated_expression.py::TestSelectCorrelatedExpression::test_order_by_intermediate_table_column
ERROR tests/relationships/test_select_correlated_expression.py::TestSelectCorrelatedExpression::test_with_non_aggregate_function
ERROR tests/test_asserts.py::TestAssertMaxLengthWithArray::test_with_max_length
ERROR tests/test_asserts.py::TestAssertMaxLengthWithArray::test_smaller_than_max_length
ERROR tests/test_asserts.py::TestAssertMaxLengthWithArray::test_bigger_than_max_length
ERROR tests/test_asserts.py::TestAssertNonNullable::test_non_nullable_column
ERROR tests/test_asserts.py::TestAssertNonNullable::test_nullable_column - sq...
ERROR tests/test_asserts.py::TestAssertNullable::test_nullable_column - sqlal...
ERROR tests/test_asserts.py::TestAssertNullable::test_non_nullable_column - s...
ERROR tests/test_asserts.py::TestAssertMaxLength::test_with_max_length - sqla...
ERROR tests/test_asserts.py::TestAssertMaxLength::test_with_non_nullable_column
ERROR tests/test_asserts.py::TestAssertMaxLength::test_smaller_than_max_length
ERROR tests/test_asserts.py::TestAssertMaxLength::test_bigger_than_max_length
ERROR tests/test_asserts.py::TestAssertMinValue::test_with_min_value - sqlalc...
ERROR tests/test_asserts.py::TestAssertMinValue::test_smaller_than_min_value
ERROR tests/test_asserts.py::TestAssertMinValue::test_bigger_than_min_value
ERROR tests/test_asserts.py::TestAssertMaxValue::test_with_min_value - sqlalc...
ERROR tests/test_asserts.py::TestAssertMaxValue::test_smaller_than_max_value
ERROR tests/test_asserts.py::TestAssertMaxValue::test_bigger_than_max_value
ERROR tests/test_views.py::TestMaterializedViews::test_refresh_materialized_view
ERROR tests/test_views.py::TestMaterializedViews::test_querying_view - sqlalc...
ERROR tests/test_views.py::TestPostgresTrivialView::test_life_cycle_no_cascade
ERROR tests/test_views.py::TestPostgresTrivialView::test_life_cycle_cascade
ERROR tests/test_views.py::TestMySqlTrivialView::test_life_cycle_no_cascade
ERROR tests/test_views.py::TestMySqlTrivialView::test_life_cycle_cascade - sq...
ERROR tests/types/test_composite.py::TestCompositeTypeWithRegularTypes::test_parameter_processing
ERROR tests/types/test_composite.py::TestCompositeTypeWithRegularTypes::test_non_ascii_chars
ERROR tests/types/test_composite.py::TestCompositeTypeWithRegularTypes::test_dict_input
ERROR tests/types/test_composite.py::TestCompositeTypeWithRegularTypes::test_incomplete_dict
ERROR tests/types/test_composite.py::TestCompositeTypeWhenTypeAlreadyExistsInDatabase::test_parameter_processing
ERROR tests/types/test_composite.py::TestCompositeTypeWithMixedCase::test_parameter_processing
ERROR tests/types/test_json.py::TestPostgresJSONType::test_list - sqlalchemy....
ERROR tests/types/test_json.py::TestPostgresJSONType::test_parameter_processing
ERROR tests/types/test_json.py::TestPostgresJSONType::test_non_ascii_chars - ...
ERROR tests/types/test_json.py::TestPostgresJSONType::test_compilation - sqla...
ERROR tests/types/test_json.py::TestPostgresJSONType::test_unhashable_type - ...
ERROR tests/types/test_ltree.py::TestLTREE::test_saves_path - sqlalchemy.exc....
ERROR tests/types/test_ltree.py::TestLTREE::test_literal_param - sqlalchemy.e...
ERROR tests/types/test_ltree.py::TestLTREE::test_compilation - sqlalchemy.exc...
ERROR tests/types/test_tsvector.py::TestTSVector::test_type_reflection - sqla...
ERROR tests/types/test_tsvector.py::TestTSVector::test_catalog_passed_to_match
ERROR tests/types/test_tsvector.py::TestTSVector::test_match_concatenation - ...
ERROR tests/types/test_tsvector.py::TestTSVector::test_match_with_catalog - s...
= 8 failed, 2216 passed, 351 skipped, 1 xfailed, 9 warnings, 108 errors in 24.50s =
+ :
+ RPM_EC=0
++ jobs -p
+ exit 0
Processing files: python3-sqlalchemy-utils-0.41.1-7.fc41.noarch
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.ahosE2
+ umask 022
+ cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build
+ cd SQLAlchemy-Utils-0.41.1
+ DOCDIR=/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/share/doc/python3-sqlalchemy-utils
+ export LC_ALL=C.UTF-8
+ LC_ALL=C.UTF-8
+ export DOCDIR
+ /usr/bin/mkdir -p /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/share/doc/python3-sqlalchemy-utils
+ cp -pr /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/README.rst /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/share/doc/python3-sqlalchemy-utils
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.PjDbnP
+ umask 022
+ cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build
+ cd SQLAlchemy-Utils-0.41.1
+ LICENSEDIR=/builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/share/licenses/python3-sqlalchemy-utils
+ export LC_ALL=C.UTF-8
+ LC_ALL=C.UTF-8
+ export LICENSEDIR
+ /usr/bin/mkdir -p /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/share/licenses/python3-sqlalchemy-utils
+ cp -pr /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/SQLAlchemy-Utils-0.41.1/LICENSE /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT/usr/share/licenses/python3-sqlalchemy-utils
+ RPM_EC=0
++ jobs -p
+ exit 0
Provides: python-sqlalchemy-utils = 0.41.1-7.fc41 python3-sqlalchemy-utils = 0.41.1-7.fc41 python3.13-sqlalchemy-utils = 0.41.1-7.fc41 python3.13dist(sqlalchemy-utils) = 0.41.1 python3dist(sqlalchemy-utils) = 0.41.1
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: (python3.13dist(sqlalchemy) < 2~~ with python3.13dist(sqlalchemy) >= 1.3) python(abi) = 3.13
Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build/BUILDROOT
Wrote: /builddir/build/SRPMS/python-sqlalchemy-utils-0.41.1-7.fc41.src.rpm
Wrote: /builddir/build/RPMS/python3-sqlalchemy-utils-0.41.1-7.fc41.noarch.rpm
Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.Ozda7G
+ umask 022
+ cd /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build
+ test -d /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build
+ rm -rf /builddir/build/BUILD/python-sqlalchemy-utils-0.41.1-build
+ RPM_EC=0
++ jobs -p
+ exit 0
Finish: rpmbuild python-sqlalchemy-utils-0.41.1-7.fc41.src.rpm
Finish: build phase for python-sqlalchemy-utils-0.41.1-7.fc41.src.rpm
INFO: chroot_scan: 1 files copied to /var/lib/copr-rpmbuild/results/chroot_scan
INFO: /var/lib/mock/fedora-41-x86_64-1737918962.995286/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
INFO: Done(/var/lib/copr-rpmbuild/results/python-sqlalchemy-utils-0.41.1-7.fc41.src.rpm) Config(child) 0 minutes 40 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
Finish: run
Running RPMResults tool
Package info:
{
    "packages": [
        {
            "name": "python3-sqlalchemy-utils",
            "epoch": null,
            "version": "0.41.1",
            "release": "7.fc41",
            "arch": "noarch"
        },
        {
            "name": "python-sqlalchemy-utils",
            "epoch": null,
            "version": "0.41.1",
            "release": "7.fc41",
            "arch": "src"
        }
    ]
}
RPMResults finished